mirror of
https://github.com/reality/dbot.git
synced 2024-12-01 00:19:29 +01:00
Merge pull request #223 from SamStudio8/master
Prevent profile breaking if no stats are returned [Fix #81]
This commit is contained in:
commit
f9c0831233
@ -71,27 +71,28 @@ block content
|
|||||||
th Verbosity
|
th Verbosity
|
||||||
th Mentions
|
th Mentions
|
||||||
tbody
|
tbody
|
||||||
for chan, key in stats
|
if stats
|
||||||
if stats.hasOwnProperty(key)
|
for chan, key in stats
|
||||||
tr
|
if stats.hasOwnProperty(key)
|
||||||
td
|
tr
|
||||||
a(href='/users/'+connection+'/'+encodeURIComponent(key))
|
td
|
||||||
#{key}
|
a(href='/users/'+connection+'/'+encodeURIComponent(key))
|
||||||
span
|
#{key}
|
||||||
if chan.online
|
span
|
||||||
if chan.active.active
|
if chan.online
|
||||||
span.label.label-success.tip(data-original-title="#{chan.active.ago}", data-placement="right") Active
|
if chan.active.active
|
||||||
else
|
span.label.label-success.tip(data-original-title="#{chan.active.ago}", data-placement="right") Active
|
||||||
span.label.label-important.tip(data-original-title="#{chan.active.ago}", data-placement="right") Inactive
|
else
|
||||||
else
|
span.label.label-important.tip(data-original-title="#{chan.active.ago}", data-placement="right") Inactive
|
||||||
span.label.tip(data-original-title="#{chan.active.ago}", data-placement="right") Offline
|
else
|
||||||
td
|
span.label.tip(data-original-title="#{chan.active.ago}", data-placement="right") Offline
|
||||||
#{chan.fields.lines.data}
|
td
|
||||||
td
|
#{chan.fields.lines.data}
|
||||||
#{chan.fields.words.data}
|
td
|
||||||
td
|
#{chan.fields.words.data}
|
||||||
#{chan.fields.lincent.data}
|
td
|
||||||
td
|
#{chan.fields.lincent.data}
|
||||||
#{chan.fields.wpl.data}
|
td
|
||||||
td
|
#{chan.fields.wpl.data}
|
||||||
#{chan.fields.in_mentions.data}
|
td
|
||||||
|
#{chan.fields.in_mentions.data}
|
||||||
|
Loading…
Reference in New Issue
Block a user