Skip to content

Commit

Permalink
Delete button for admins. Fix mozillahispano#30
Browse files Browse the repository at this point in the history
  • Loading branch information
bbotella committed Nov 5, 2013
1 parent 9815725 commit 1ddf335
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mozbuzz/buzz/templates/buzz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%endfor%}
<input type="search" id="id_q" name="q" value="{{query.q}}" placeholder="{% trans "Search by keyword" %}">
</form>
<h2>Mentions</h2>
<h2>{%trans "Mentions" %}</h2>
<ul class="messages segmented mentions">
{% for mention in mentions %}
<li class="message mention">
Expand Down Expand Up @@ -66,22 +66,22 @@ <h3>{%trans "Remarks:"%}</h3>
<p>{{ followup.remarks|markdown }}</p>
</div>
{% endfor %}
<a class="add-followup-inline" href="{% url "followup_new" mention.pk %}">Add followup</a>
<a class="add-followup-inline" href="{% url "followup_new" mention.pk %}">{%trans "Add followup" %}</a>
</div>
<ul class="meta">
<li>Added by {{ mention.creation_user }} on {{ mention.creation_date }}</li>
<li>
{% if mention.followups %}
{{mention.followups|length}} Followups (<a href="#" class="followups-show">show</a>)
{{mention.followups|length}} {%trans "Followups" %} (<a href="#" class="followups-show">{%trans "show" %}</a>)
{% else %}
<a href="{% url "followup_new" mention.pk %}">Add followup</a>
<a href="{% url "followup_new" mention.pk %}">{%trans "Add followup" %}</a>
{% endif %}
</li>
{% if user.is_authenticated %}
<li><a href="{% url "edit" mention.id %}">Edit</a></li>
<li><a href="{% url "edit" mention.id %}">{%trans "Edit" %}</a></li>
{% endif %}
{% if user.is_superuser %}
<li><a href="{% url "delete" mention.id %}">Delete</a></li>
<li><a href="{% url "delete" mention.id %}">{%trans "Delete" %}</a></li>
{% endif %}
</ul>
</li>
Expand Down Expand Up @@ -161,7 +161,7 @@ <h3>{% trans "Audience" %}</h3>
{% for key,val in query.iteritems %}
<input id="input_audience_{{key}}" type="hidden" name="{{key}}" value="{{val|query_encode_val}}"/>
{%endfor%}
<input id="audience-update" type="submit" style="display:none" value="Update results" />
<input id="audience-update" type="submit" style="display:none" value="{%trans '"Update results"' %} />
</form>
</div>
</div>
Expand Down

0 comments on commit 1ddf335

Please sign in to comment.