mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML: Add export list only option
Exporting small dive list only or choose to export the dive list with all the dive details like the profile, Bookmarks, dive equipments and statistics. 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
ccfdcca6e6
commit
e9c4259db4
5 changed files with 30 additions and 23 deletions
|
@ -179,7 +179,7 @@ function getlimited (dive) {
|
|||
};
|
||||
|
||||
function getExpanded (dive) {
|
||||
return '<table><tr><td class="words">Date: </td><td>'+dive.date+
|
||||
var res = '<table><tr><td class="words">Date: </td><td>'+dive.date+
|
||||
'</td><td class="words">     Time: </td><td>'+dive.time +
|
||||
'</td><td class="words">     Location: </td><td>'+'<a onclick=\"Search_list_Modules(\''+dive.location+'\')\">'+
|
||||
dive.location +'</a>'+
|
||||
|
@ -192,8 +192,11 @@ function getExpanded (dive) {
|
|||
'</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)+
|
||||
'</td></tr></table><div style="margin:10px;"><p class="words">Notes: </p>' + dive.notes +'</div>'+
|
||||
'<center><a onclick="showDiveDetails('+dive.number+')">show more details</a></center>';
|
||||
'</td></tr></table><div style="margin:10px;"><p class="words">Notes: </p>' + dive.notes +'</div>';
|
||||
if(settings.listOnly==='0'){
|
||||
res += '<center><a onclick="showDiveDetails('+dive.number+')">show more details</a></center>';
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
function putTags(tags){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue