1 {% load i18n adminmedia fb_tags fb_versions %}
2 <tr class="{% cycle 'row1' 'row2' %}">
3 <!-- FILESELECT FOR FILEBROWSEFIELD -->
4 {% ifequal query.pop '1' %}
5 {% if results_var.select_total %}
7 {% selectable file.filetype query.type %}
9 <a href="javascript://" onclick="FileSubmit('{{ file.url_save }}', '{{ file.url_thumbnail }}', '{{ file.filetype }}');" class="fb_selectlink" title="{% trans 'Select' %}"></a>
11 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
17 <!-- FILESELECT FOR RTE/TINYMCE -->
18 {% ifequal query.pop '2' %}
19 {% if results_var.select_total %}
21 {% selectable file.filetype query.type %}
23 <a href="javascript:FileBrowserDialogue.fileSubmit('{{ file.url_save }}');" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
25 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
31 <!-- FILESELECT FOR CKEDITOR (FORMER "FCKEDITOR") -->
32 {% ifequal query.pop '3' %}
33 {% if results_var.select_total %}
35 {% selectable file.filetype query.type %}
37 <a href="#" onclick="OpenFile(ProtectPath('{{ file.url_save }}'));return false;" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
39 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
45 <!-- SHOW VERSIONS -->
46 {% if settings_var.ADMIN_VERSIONS and results_var.images_total %}
48 {% ifequal file.filetype 'Image' %}<a href="{% url fb_versions %}{% query_string %}&filename={{ file.filename }}" class="fb_showversionslink" title="{% trans 'Show Versions' %}"></a>{% endifequal %}
53 <td class="fb_icon"><img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_type_{{ file.filetype|lower }}.gif" /></td>
56 {% if results_var.images_total %}
58 {% ifequal file.filetype 'Image' %}
59 <a href="{{ file.url_full }}"><img src="{% version file.path settings_var.ADMIN_THUMBNAIL %}" title="{% trans 'View Image' %}" /></a>
64 <!-- FILENAME/DIMENSIONS -->
65 {% ifequal file.filetype 'Folder' %}
66 <td><b><a href="{% url fb_browse %}{% query_string '' 'dir' %}&dir={{ file.path_relative_directory|urlencode }}">{{ file.filename }}</a></b></td>
68 <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>
72 <td class="fb_icon"><a href="{% url fb_rename %}{% query_string %}&filename={{ file.filename }}" class="fb_renamelink" title="{% trans 'Rename' %}"></a></td>
75 <td>{{ file.filesize|filesizeformat }}</td>
78 <td>{{ file.datetime|date:"N j, Y" }}</td>
81 {% if results_var.delete_total %}
83 {% ifnotequal file.filetype 'Folder' %}
84 <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>
86 {% if file.is_empty %}
87 <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>
94 {% if settings_var.DEBUG %}
96 <strong>Filename</strong> {{ file.filename }}<br />
97 <strong>Filetype</strong> {{ file.filetype }}<br />
98 <strong>Filesize</strong> {{ file.filesize }}<br />
99 <strong>Extension</strong> {{ file.extension }}<br />
100 <strong>Date</strong> {{ file.date }}<br />
101 <strong>Datetime Object</strong> {{ file.datetime }}<br /><br />
102 <strong>Relative Path</strong> {{ file.path_relative }}<br />
103 <strong>Full Path</strong> {{ file.path_full }}<br />
104 <strong>Relative URL</strong> {{ file.url_relative }}<br />
105 <strong>Full URL</strong> {{ file.url_full }}<br /><br />
106 <strong>URL for FileBrowseField</strong> {{ file.url_save }}<br />
107 <strong>Thumbnail URL</strong> {{ file.url_thumbnail }}
108 {% ifequal file.filetype 'Image' %}<br /><br />
109 <strong>Dimensions</strong> {{ file.dimensions }}<br />
110 <strong>Width</strong> {{ file.width }}<br />
111 <strong>Height</strong> {{ file.height }}<br />
112 <strong>Orientation</strong> {{ file.orientation }}
114 {% ifequal file.filetype 'Folder' %}<br /><br />
115 <strong>Is Empty</strong> {{ file.is_empty }}