diff --git a/config.yaml b/config.yaml index 2a99cca..4b83101 100644 --- a/config.yaml +++ b/config.yaml @@ -270,6 +270,7 @@ views: files: - web/layouts/_partials/address_autocomplete.html - web/layouts/solidarity_transport/_partials/driver_availabilities.html + - web/layouts/solidarity_transport/_partials/driver_history.html - web/layouts/solidarity_transport/_partials/driver_documents.html - web/layouts/solidarity_transport/driver_display.html driver_journey: diff --git a/web/layouts/solidarity_transport/_partials/driver_history.html b/web/layouts/solidarity_transport/_partials/driver_history.html new file mode 100644 index 0000000..9cb7c1b --- /dev/null +++ b/web/layouts/solidarity_transport/_partials/driver_history.html @@ -0,0 +1,7 @@ +{{define "driver_history"}} +
Trajets réalisés : {{ .ViewState.stats.bookings.count }}
+Kilomètres réalisés : {{ .ViewState.stats.bookings.km}} km
+ +