1 {% load i18n adminmedia fb_tags fb_versions %}
2 <tr class="{% cycle 'row1' 'row2' %}">
4 <!-- FILESELECT FOR FILEBROWSEFIELD -->
5 {% ifequal query.pop '1' %}
6 {% if results_var.select_total %}
8 {% selectable file.filetype query.type %}
10 <a href="javascript://" onclick="FileSubmit('{{ file.url_save }}', '{{ file.url_thumbnail }}', '{{ file.filetype }}');" class="fb_selectlink" title="{% trans 'Select' %}"></a>
12 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
18 <!-- FILESELECT FOR RTE/TINYMCE -->
19 {% ifequal query.pop '2' %}
20 {% if results_var.select_total %}
22 {% selectable file.filetype query.type %}
24 <a href="javascript:FileBrowserDialogue.fileSubmit('{{ file.url_save }}');" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
26 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
32 <!-- FILESELECT FOR CKEDITOR (FORMER "FCKEDITOR") -->
33 {% ifequal query.pop '3' %}
34 {% if results_var.select_total %}
36 {% selectable file.filetype query.type %}
38 <a href="#" onclick="OpenFile(ProtectPath('{{ file.url_save }}'));return false;" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
40 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
46 <!-- SHOW VERSIONS -->
47 {% if settings_var.ADMIN_VERSIONS and results_var.images_total %}
49 {% ifequal file.filetype 'Image' %}<a href="{% url fb_versions %}{% query_string %}&filename={{ file.filename }}" class="fb_showversionslink" title="{% trans 'Show Versions' %}"></a>{% endifequal %}
54 <td class="fb_icon"><img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_type_{{ file.filetype|lower }}.gif" /></td>
57 {% if results_var.images_total %}
59 {% ifequal file.filetype 'Image' %}
60 <a href="{{ file.url_full }}"><img src="{% version file.path settings_var.ADMIN_THUMBNAIL %}" title="{% trans 'View Image' %}" /></a>
65 <!-- FILENAME/DIMENSIONS -->
66 {% ifequal file.filetype 'Folder' %}
67 <td><b><a href="{% url fb_browse %}{% query_string "" "dir" %}&dir={{ file.path_relative_directory|urlencode }}">{{ file.filename }}</a></b></td>
69 <td><b><a href="{{ file.url_full }}">{{ file.filename }}</a></b>{% if file.dimensions %}<br /><span class="tiny">{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px</span>{% endif %}</td>
73 <td class="fb_icon"><a href="{% url fb_rename %}{% query_string %}&filename={{ file.filename }}" class="fb_renamelink" title="{% trans 'Rename' %}"></a></td>
76 <td>{{ file.filesize|filesizeformat }}</td>
79 <td>{{ file.datetime|date:"N j, Y" }}</td>
82 {% if results_var.delete_total %}
84 {% ifnotequal file.filetype 'Folder' %}
85 <a href="{% url fb_delete %}{% query_string %}&filename={{ file.filename }}&filetype={{ file.filetype }}" class="fb_deletelink" onclick="return confirm('{% trans "Are you sure you want to delete this file?" %}');" title="{% trans 'Delete File' %}"></a>
87 {% if file.is_empty %}
88 <a href="{% url fb_delete %}{% query_string %}&filename={{ file.filename }}&filetype={{ file.filetype }}" class="fb_deletelink" onclick="return confirm('{% trans "Are you sure you want to delete this Folder?" %}');" title="{% trans 'Delete Folder' %}"></a>
95 {% if settings_var.DEBUG %}
97 <strong>Filename</strong> {{ file.filename }}<br />
98 <strong>Filetype</strong> {{ file.filetype }}<br />
99 <strong>Filesize</strong> {{ file.filesize }}<br />
100 <strong>Extension</strong> {{ file.extension }}<br />
101 <strong>Date</strong> {{ file.date }}<br />
102 <strong>Datetime Object</strong> {{ file.datetime }}<br /><br />
103 <strong>Relative Path</strong> {{ file.path_relative }}<br />
104 <strong>Full Path</strong> {{ file.path_full }}<br />
105 <strong>Relative URL</strong> {{ file.url_relative }}<br />
106 <strong>Full URL</strong> {{ file.url_full }}<br /><br />
107 <strong>URL for FileBrowseField</strong> {{ file.url_save }}<br />
108 <strong>Thumbnail URL</strong> {{ file.url_thumbnail }}
109 {% ifequal file.filetype 'Image' %}<br /><br />
110 <strong>Dimensions</strong> {{ file.dimensions }}<br />
111 <strong>Width</strong> {{ file.width }}<br />
112 <strong>Height</strong> {{ file.height }}<br />
113 <strong>Orientation</strong> {{ file.orientation }}
115 {% ifequal file.filetype 'Folder' %}<br /><br />
116 <strong>Is Empty</strong> {{ file.is_empty }}