mirror of
https://github.com/twisterarmy/swizzler.git
synced 2025-03-12 05:21:26 +00:00
Fix display of missing twist, and promoted message
Missing twists were shown "from @" Sponsored messages showed time twice :s
This commit is contained in:
parent
10a1d2bdd1
commit
775dbfb35d
@ -9,7 +9,6 @@
|
||||
{{^is_messages}}
|
||||
<span class="pull-right small">
|
||||
{{^is_promoted}}<a title="View twist details" href="{{site_root}}/twist/{{.}}/{{k}}">{{/is_promoted}}{{time}}{{^is_promoted}}</a>{{/is_promoted}}
|
||||
{{#is_promoted}}<span class="pull-right small">{{time}}</span>{{/is_promoted}}
|
||||
</span>
|
||||
{{/is_messages}}
|
||||
{{#is_messages}}<span class="pull-right small">{{time}}</span>{{/is_messages}}
|
||||
@ -31,7 +30,11 @@
|
||||
{{^username}}
|
||||
<h5 class="media-heading">
|
||||
<span class="pull-right small">{{time}}</span>
|
||||
<a href="{{site_root}}/">@{{username}}</a>
|
||||
<abbr
|
||||
title="❝𝗡𝗼𝗯𝗼𝗱𝘆 regrets
|
||||
that this twist is not here [yet?].
|
||||
Sorry for the wait❞
|
||||
— BOFH, polite Haiku edition">Nobody</abbr>
|
||||
</h5>
|
||||
{{/username}}
|
||||
{{{message}}}
|
||||
|
@ -53,8 +53,8 @@
|
||||
{{#subject}}
|
||||
<div class="media">
|
||||
<a class="pull-left thumbnail" href="{{site_root}}{{#username}}/user/{{.}}{{/username}}{{^username}}#{{/username}}"
|
||||
{{#username}}title="@{{usermame}}'s profile"{{/username}}>
|
||||
<img class="media-object avatar" src="{{#avatar}}{{.}}{{/avatar}}{{^avatar}}/assets/img/twister-64.jpg{{/avatar}}" alt="{{fullname}}">
|
||||
{{#username}}title="@{{username}}'s profile"{{/username}}>
|
||||
<img class="media-object avatar" src="{{#avatar}}{{.}}{{/avatar}}{{^avatar}}/assets/img/genericPerson.png{{/avatar}}" alt="{{fullname}}">
|
||||
</a>
|
||||
<div class="media-body">
|
||||
{{#is_user}}
|
||||
@ -72,7 +72,7 @@ title="❝Let us make a toast
|
||||
{{^is_promoted}}<span class="glyphicon glyphicon-user"></span>{{/is_promoted}}
|
||||
{{fullname}}
|
||||
{{#url}}<small><a target="_blank" href="{{.}}">{{.}}</a></small>{{/url}}</h2>
|
||||
{{{bio}}}
|
||||
<h4><small>{{{bio}}}</small></h4>
|
||||
{{/is_user}}
|
||||
{{#is_tag}}
|
||||
<h2 class="media-heading">
|
||||
|
@ -54,7 +54,7 @@ class Twister:
|
||||
#"user":self.get_user_info('nobody'),
|
||||
"k":0, # maybe something needs this
|
||||
"lastk":0, # or this
|
||||
"message":"Twist not found (maybe it's private?) 😭",
|
||||
"message":"Twist not found 😭",
|
||||
"time":"Never"
|
||||
})
|
||||
@functioncache(60,ignore_instance=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user