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 @@
<span class="glyphicon glyphicon-retweet"></span> <span class="glyphicon glyphicon-retweet"></span>
</small> </small>
{{/rt_username}} {{/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}} {{^is_twist}}{{#reply}}
<small> <small>
<span class="glyphicon glyphicon-share-alt"></span> <span class="glyphicon glyphicon-share-alt"></span>

2
templates/standard.html

@ -26,7 +26,7 @@
<div class="media avatars32"> <div class="media avatars32">
<a class="pull-left thumbnail" href="{{site_root}}/user/{{username}}" <a class="pull-left thumbnail" href="{{site_root}}/user/{{username}}"
title="@{{username}}'s profile"> 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> </a>
<div class="media-body"> <div class="media-body">
<ul class="nav nav-pills"> <ul class="nav nav-pills">

Loading…
Cancel
Save