Commit 42b46a413c4936c8db61798325f310168fb9f2cc
1 parent
20a0d240
Exists in
master
and in
39 other branches
minor fix of #127
Showing
1 changed file
with
4 additions
and
6 deletions
Show diff stats
src/super_archives/templates/message-preview.html
| ... | ... | @@ -48,6 +48,8 @@ |
| 48 | 48 | {{ result.modified_by }} |
| 49 | 49 | {% endif %} |
| 50 | 50 | </a> |
| 51 | + {% elif result.modified_by and not result.modified_by_url %} | |
| 52 | + <span>{{ result.modified_by }}</span> | |
| 51 | 53 | {% elif result.fullname and result.author_url %} |
| 52 | 54 | <a href="{{ result.author_url }}"> |
| 53 | 55 | {% if query %} |
| ... | ... | @@ -57,18 +59,14 @@ |
| 57 | 59 | {% endif %} |
| 58 | 60 | </a> |
| 59 | 61 | {% else %} |
| 60 | - {% if result.modified_by %} | |
| 61 | - <span>{{ result.modified_by }}</span> | |
| 62 | - {% else %} | |
| 63 | - <span>{{ result.fullname }}</span> | |
| 64 | - {% endif %} | |
| 62 | + <span>{{ result.fullname }}</span> | |
| 65 | 63 | {% endif %} |
| 66 | 64 | </span> |
| 67 | 65 | {% else %} |
| 68 | 66 | <span class="pull-left">{% trans "by" %} {% trans "Anonymous" %}</span> |
| 69 | 67 | {% endif %} |
| 70 | 68 | {% if result.modified %} |
| 71 | - <span class="pull-right">{{ result.modified|localtime|timesince }} {% trans "ago" %}</span> | |
| 69 | + <span class="pull-right">{{ result.modified|localtime|timesince }} {% trans "ago" %}</span> | |
| 72 | 70 | {% endif %} |
| 73 | 71 | </div> |
| 74 | 72 | {% endif %} | ... | ... |