[damned-lies] Only show link to comment when there is some content
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Only show link to comment when there is some content
- Date: Sat, 16 Feb 2019 14:54:36 +0000 (UTC)
commit 173925b00bfad5074dbde7de28e5cbd5e0dfed9c
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Feb 16 15:54:07 2019 +0100
Only show link to comment when there is some content
templates/vertimus/vertimus_detail.html | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/templates/vertimus/vertimus_detail.html b/templates/vertimus/vertimus_detail.html
index 7aec786f..c19169f4 100644
--- a/templates/vertimus/vertimus_detail.html
+++ b/templates/vertimus/vertimus_detail.html
@@ -189,8 +189,12 @@ $(document).ready(function() {
<div class="vertimus_action">
<div class="vertimus_action_head">
<div class="face_image">{{ action.person|people_image }}</div>
- <a href="{{ action.person.get_absolute_url }}">{{ action.person.name }}</a>
- , <br /><a name="{{ action.id }}" href="#{{ action.id }}" title="{% trans 'Link to this comment'
%}"><img alt="link comment icon" class="action_icons" src="{{ STATIC_URL }}img/share.png"></a>
+ <a href="{{ action.person.get_absolute_url }}">{{ action.person.name }}</a><br>
+ {% if action.file or action.comment %}
+ <a name="{{ action.id }}" href="#{{ action.id }}" title="{% trans 'Link to this comment' %}">
+ <img alt="link comment icon" class="action_icons" src="{{ STATIC_URL }}img/share.png">
+ </a>
+ {% endif %}
<a role="button" data-toggle="collapse" href="#{{ action.created|date:"Y_g_i_s" }}"
class="visible-xs-inline" aria-expanded="false" aria-controls="collapseExample2">
<img alt="icon for action time" class="action_icons" src="{{ STATIC_URL }}img/clock.png">
</a>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]