mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: export dive duration value to the detailed view.
Dive duration value is missing in the dive exports Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3ebb62f153
commit
a8bca85169
2 changed files with 6 additions and 2 deletions
|
@ -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\":\"", "\",");
|
||||
|
|
|
@ -212,7 +212,8 @@ function getExpanded(dive)
|
|||
'</td></tr></table>' +
|
||||
'<table><tr><td class="words">Air temp: </td><td>' + dive.temperature.air +
|
||||
'</td><td class="words"> Water temp: </td><td>' + dive.temperature.water +
|
||||
'</td></tr></table><table><tr><td class="words">DiveMaster: </td><td>' + dive.divemaster +
|
||||
'</td></tr></table><table><tr><td class="words">Duration: </td><td>' + dive.dive_duration +
|
||||
'</td></tr><tr><td class="words">DiveMaster: </td><td>' + dive.divemaster +
|
||||
'</td></tr><tr><td class="words"><p>Buddy: </p></td><td>' + dive.buddy +
|
||||
'</td></tr><tr><td class="words">Suit: </td><td>' + dive.suit +
|
||||
'</td></tr><tr><td class="words">Tags: </td><td>' + putTags(dive.tags) +
|
||||
|
@ -890,7 +891,8 @@ function get_dive_HTML(dive)
|
|||
'</td></tr></table>' +
|
||||
'<table><tr><td class="words">Air temp: </td><td>' + dive.temperature.air +
|
||||
'</td><td class="words"> Water temp: </td><td>' + dive.temperature.water +
|
||||
'</td></tr></table><table><tr><td class="words">DiveMaster: </td><td>' + dive.divemaster +
|
||||
'</td></tr></table><table><tr><td class="words">Duration: </td><td>' + dive.dive_duration +
|
||||
'</td></tr><tr><td class="words">DiveMaster: </td><td>' + dive.divemaster +
|
||||
'</td></tr><tr><td class="words"><p>Buddy: </p></td><td>' + dive.buddy +
|
||||
'</td></tr><tr><td class="words">Suit: </td><td>' + dive.suit +
|
||||
'</td></tr><tr><td class="words">Tags: </td><td>' + putTags(dive.tags) +
|
||||
|
|
Loading…
Add table
Reference in a new issue