mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
Return last seen string in tooltip
This commit is contained in:
parent
c77cb09f87
commit
098f19078d
@ -21,6 +21,7 @@ block content
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
$('.tip').tooltip();
|
||||||
$('.data').dataTable({
|
$('.data').dataTable({
|
||||||
"aoColumnDefs": [
|
"aoColumnDefs": [
|
||||||
{ "sType": "forcenum",
|
{ "sType": "forcenum",
|
||||||
@ -61,12 +62,12 @@ block content
|
|||||||
#{key}
|
#{key}
|
||||||
span
|
span
|
||||||
if chan.online
|
if chan.online
|
||||||
if chan.active
|
if chan.active.active
|
||||||
span.label.label-success Active
|
span.label.label-success.tip(data-original-title="#{chan.active.ago}", data-placement="right") Active
|
||||||
else
|
else
|
||||||
span.label.label-important Inactive
|
span.label.label-important.tip(data-original-title="#{chan.active.ago}", data-placement="right") Inactive
|
||||||
else
|
else
|
||||||
span.label Offline
|
span.label.tip(data-original-title="#{chan.active.ago}", data-placement="right") Offline
|
||||||
td
|
td
|
||||||
#{chan.fields.lines.data}
|
#{chan.fields.lines.data}
|
||||||
td
|
td
|
||||||
|
@ -21,6 +21,7 @@ block content
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
$('.tip').tooltip();
|
||||||
$('.data').dataTable({
|
$('.data').dataTable({
|
||||||
"aoColumnDefs": [
|
"aoColumnDefs": [
|
||||||
{ "aDataSort": [ 1, 0 ], "asSorting": [ "asc" ], "aTargets": [ 0 ] },
|
{ "aDataSort": [ 1, 0 ], "asSorting": [ "asc" ], "aTargets": [ 0 ] },
|
||||||
@ -61,15 +62,15 @@ block content
|
|||||||
#{nick.display}
|
#{nick.display}
|
||||||
span
|
span
|
||||||
if nick.online
|
if nick.online
|
||||||
if nick.active
|
if nick.active.active
|
||||||
span.label.label-success Active
|
span.label.label-success.tip(data-original-title="#{nick.active.ago}", data-placement="right") Active
|
||||||
else
|
else
|
||||||
span.label.label-important Inactive
|
span.label.label-important.tip(data-original-title="#{nick.active.ago}", data-placement="right") Inactive
|
||||||
else
|
else
|
||||||
span.label Offline
|
span.label.tip(data-original-title="#{nick.active.ago}", data-placement="right") Offline
|
||||||
td
|
td
|
||||||
if nick.online
|
if nick.online
|
||||||
if nick.active
|
if nick.active.active
|
||||||
-1
|
-1
|
||||||
else
|
else
|
||||||
0
|
0
|
||||||
|
Loading…
Reference in New Issue
Block a user