-
Notifications
You must be signed in to change notification settings - Fork 574
/
admin_file.html
32 lines (32 loc) · 1.61 KB
/
admin_file.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% load i18n staticfiles %}{% spaceless %}
<span class="filerFile">
{% if object %}
{% if object.icons.32 %}
<a href="{{ object.url }}" target="_blank"><img id="{{ thumb_id }}" src="{{ object.icons.48 }}" alt="{{ object.label }}" /></a>
<span id="{{ span_id }}">{{ object.label }}</span>
{% else %}
<img id="{{ thumb_id }}" src="{% static "filer/icons/missingfile_48x48.png" %}" alt="{% trans 'file missing' %}" />
<span id="{{ span_id }}">{% trans 'file missing' %}</span>
{% endif %}
{% else %}
<img id="{{ thumb_id }}" src="{% static "filer/icons/nofile_48x48.png" %}" class="quiet" alt="{% trans 'no file selected' %}" />
<span id="{{ span_id }}"></span>
{% endif %}
<a href="{{ lookup_url }}" class="related-lookup" id="lookup_id_{{ lookup_name }}" title="{% trans 'Lookup' %}" onclick="return showRelatedObjectLookupPopup(this);">
<img src="{% static 'admin/img/icon_searchbox.png' %}" width="16" height="16" alt="{% trans 'Lookup' %}" />
</a>
<img id="{{ clear_id }}" class="filerClearer" src="{% static 'admin/img/icon_deletelink.gif' %}" width="10" height="10" alt="{% trans 'Clear' %}" title="{% trans 'Clear' %}"{% if not object %} style="display: none;"{% endif %} />
<br />
{{ hidden_input }}
<script type="text/javascript" id="{{id}}_javascript">
django.jQuery(document).ready(function(){
var plus = django.jQuery("#add_{{ id }}");
if (plus.length){
plus.remove();
}
{# Delete this javascript once loaded to avoid the "add new" link duplicates it #}
django.jQuery('#{{id}}_javascript').remove();
});
</script>
</span>
{% endspaceless %}