3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

Return last seen string in tooltip

This commit is contained in:
Sam Nicholls 2013-01-23 18:00:27 +00:00
parent c77cb09f87
commit 098f19078d
2 changed files with 11 additions and 9 deletions

View File

@ -21,6 +21,7 @@ block content
}
} );
$('.tip').tooltip();
$('.data').dataTable({
"aoColumnDefs": [
{ "sType": "forcenum",
@ -61,12 +62,12 @@ block content
#{key}
span
if chan.online
if chan.active
span.label.label-success Active
if chan.active.active
span.label.label-success.tip(data-original-title="#{chan.active.ago}", data-placement="right") Active
else
span.label.label-important Inactive
span.label.label-important.tip(data-original-title="#{chan.active.ago}", data-placement="right") Inactive
else
span.label Offline
span.label.tip(data-original-title="#{chan.active.ago}", data-placement="right") Offline
td
#{chan.fields.lines.data}
td

View File

@ -21,6 +21,7 @@ block content
}
} );
$('.tip').tooltip();
$('.data').dataTable({
"aoColumnDefs": [
{ "aDataSort": [ 1, 0 ], "asSorting": [ "asc" ], "aTargets": [ 0 ] },
@ -61,15 +62,15 @@ block content
#{nick.display}
span
if nick.online
if nick.active
span.label.label-success Active
if nick.active.active
span.label.label-success.tip(data-original-title="#{nick.active.ago}", data-placement="right") Active
else
span.label.label-important Inactive
span.label.label-important.tip(data-original-title="#{nick.active.ago}", data-placement="right") Inactive
else
span.label Offline
span.label.tip(data-original-title="#{nick.active.ago}", data-placement="right") Offline
td
if nick.online
if nick.active
if nick.active.active
-1
else
0