Browse Source

Fix case where no peers and can't get own avatar

This actually happened (my ISP sucks even in 3rd world standards)

I also replaced the (usually @nobody) user link with static badge
The iframe on the left should be enough.
master
The Dod 11 years ago
parent
commit
4ddfc0f88c
  1. 3
      templates/message.html
  2. 2
      templates/standard.html

3
templates/message.html

@ -18,7 +18,8 @@ @@ -18,7 +18,8 @@
<span class="glyphicon glyphicon-retweet"></span>
</small>
{{/rt_username}}
<a href="{{site_root}}/user/{{username}}" title="@{{username}}'s profile"><strong>@{{username}}</strong></a>
{{^is_promoted}}<a href="{{site_root}}/user/{{username}}" title="@{{username}}'s profile"><strong>@{{username}}</strong></a>{{/is_promoted}}
{{#is_promoted}}<div class="badge"><span class="glyphicon glyphicon-glass"></span> Promoted post</div>{{/is_promoted}}
{{^is_twist}}{{#reply}}
<small>
<span class="glyphicon glyphicon-share-alt"></span>

2
templates/standard.html

@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
<div class="media avatars32">
<a class="pull-left thumbnail" href="{{site_root}}/user/{{username}}"
title="@{{username}}'s profile">
<img class="media-object avatar" src="{{avatar}}" alt="{{fullname}}">
<img class="media-object avatar" src="{{#avatar}}{{.}}{{/avatar}}{{^avatar}}/assets/img/twister-64.jpg{{/avatar}}" alt="{{fullname}}">
</a>
<div class="media-body">
<ul class="nav nav-pills">

Loading…
Cancel
Save