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:
Gehad elrobey 2014-07-04 14:37:08 +03:00 committed by Dirk Hohndel
parent f7f8c0b1b2
commit 11d2364c12
2 changed files with 33 additions and 4 deletions

View file

@ -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, "],");