Skip to content

Commit

Permalink
Hide link in choosing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
m1kola committed Apr 25, 2016
1 parent 24df213 commit aed9f8a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wagtailmedia/templates/wagtailmedia/media/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ <h2><a href="{% url 'wagtailmedia:media_chosen' media_file.id %}" class="media-c
<h2><a href="{% url 'wagtailmedia:edit' media_file.id %}">{{ media_file.title }}</a></h2>
{% endif %}
</td>
<td><a href="{{ media_file.url }}" class="nolink">{{ media_file.filename }}</a></td>
<td>
{% if choosing %}
{{ media_file.filename }}
{% else %}
<a href="{{ media_file.url }}" class="nolink">{{ media_file.filename }}</a>
{% endif %}
</td>
<td>{{ media_file.get_type_display }}</td>
<td><div class="human-readable-date" title="{{ media_file.created_at|date:"d M Y H:i" }}">{{ media_file.created_at|timesince }} ago</div></td>
</tr>
Expand Down

0 comments on commit aed9f8a

Please sign in to comment.