mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: add events to detailed profile view
Export events to detailed dive view and add events to the profile. Events names must appear on mouse hover. 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
f7f8c0b1b2
commit
11d2364c12
2 changed files with 33 additions and 4 deletions
|
@ -17,7 +17,7 @@ void put_HTML_bookmarks(struct membuffer *b, struct dive *dive)
|
|||
put_string(b, "\"events\":[");
|
||||
while (ev) {
|
||||
put_format(b, "{\"name\":\"%s\",", ev->name);
|
||||
put_format(b, "\"time\":\"%d:%02d min\",},", FRACTION(ev->time.seconds, 60));
|
||||
put_format(b, "\"time\":\"%d\",},", ev->time.seconds);
|
||||
ev = ev->next;
|
||||
}
|
||||
put_string(b, "],");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue