diff --git a/save-html.c b/save-html.c index 652ffb411..6190c36c1 100644 --- a/save-html.c +++ b/save-html.c @@ -209,6 +209,8 @@ void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_d write_attribute(b, "location", dive->location); put_format(b, "\"rating\":%d,", dive->rating); put_format(b, "\"visibility\":%d,", dive->visibility); + put_format(b, "\"dive_duration\":\"%u:%02u min\",", + FRACTION(dive->duration.seconds, 60)); put_string(b, "\"temperature\":{"); put_HTML_airtemp(b, dive, "\"air\":\"", "\","); put_HTML_watertemp(b, dive, "\"water\":\"", "\","); diff --git a/theme/list_lib.js b/theme/list_lib.js index ade54c885..2c915ad6f 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -212,7 +212,8 @@ function getExpanded(dive) '' + '
Air temp: ' + dive.temperature.air + '    Water temp: ' + dive.temperature.water + - '
DiveMaster: ' + dive.divemaster + + '
Duration: ' + dive.dive_duration + + '
DiveMaster: ' + dive.divemaster + '

Buddy:

' + dive.buddy + '
Suit: ' + dive.suit + '
Tags: ' + putTags(dive.tags) + @@ -890,7 +891,8 @@ function get_dive_HTML(dive) '
' + '
Air temp: ' + dive.temperature.air + '    Water temp: ' + dive.temperature.water + - '
DiveMaster: ' + dive.divemaster + + '
Duration: ' + dive.dive_duration + + '
DiveMaster: ' + dive.divemaster + '

Buddy:

' + dive.buddy + '
Suit: ' + dive.suit + '
Tags: ' + putTags(dive.tags) +