1 {% extends "admin/base_site.html" %}
4 {% load i18n adminmedia fb_tags fb_versions %}
9 {% ifequal query.pop '1' %} <!-- FileBrowseField -->
10 <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_FileBrowseField.js"></script>
12 {% ifequal query.pop '2' %} <!-- TinyMCE -->
13 <script language="javascript" type="text/javascript" src="{{ settings_var.URL_TINYMCE }}tiny_mce_popup.js"></script>
14 <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_TinyMCE.js"></script>
15 {% if query.mce_rdomain %}<script language="javascript">document.domain = "{{ query.mce_rdomain }}"</script>{% endif %}
17 {% ifequal query.pop '3' %} <!-- CKeditor (former "FCKeditor") -->
18 <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_CKeditor.js"></script>
23 <!-- COLTYPE/BODYCLASS -->
24 {% block coltype %}colM{% endblock %}
25 {% block bodyclass %}change-list filebrowser{% endblock %}
28 {% block extrastyle %}
30 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css-development/changelists.css" />
31 <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
33 <style type="text/css">
34 #header { display: none; }
40 {% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
44 <div id="content-main">
45 <div class="module" id="changelist">
46 <div class="changelist-content">
47 <table cellspacing="0">
51 {% ifequal query.pop '1' %}<th></th>{% endifequal %}
52 {% ifequal query.pop '2' %}<th></th>{% endifequal %}
53 {% ifequal query.pop '3' %}<th></th>{% endifequal %}
54 <!-- FILENAME / DIMENSIONS -->
55 <th>{% trans 'Name' %}</th>
57 <th>{% trans 'Image Version' %}</th>
58 {% if settings_var.DEBUG %}<th>{% trans "Debug" %}</th>{% endif %}
62 {% for version in settings_var.ADMIN_VERSIONS %}
63 {% version_object original version as image_version %}
64 <tr class="{% cycle 'row1' 'row2' %}">
65 <!-- Fileselect for FileBrowseField -->
66 {% ifequal query.pop '1' %}
68 {% selectable image_version.filetype query.type %}
70 <a href="javascript://" onclick="FileSubmit('{{ image_version.url_save }}', '{{ image_version.url_thumbnail }}', '{{ image_version.filetype }}');" class="fb_selectlink" title="{% trans 'Select' %}"></a>
72 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
76 <!-- Fileselect for RTE/TinyMCE -->
77 {% ifequal query.pop '2' %}
79 {% selectable image_version.filetype query.type %}
81 <a href="javascript:FileBrowserDialogue.fileSubmit('{{ image_version.url_save }}');" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
83 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
87 <!-- Fileselect for CKeditor (former "FCKeditor") -->
88 {% ifequal query.pop '3' %}
90 {% selectable image_version.filetype query.type %}
92 <a href="#" onclick="OpenFile(ProtectPath('{{ image_version.url_save }}'));return false;" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
94 <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
98 <!-- FILENAME / DIMENSIONS -->
100 {% version_setting version %}
101 <strong>{{ version_setting.verbose_name }}</strong><br />
102 {% if version_setting.width %}{% trans "Width" %}: {{ version_setting.width }}px<br />{% endif %}
103 {% if version_setting.height %}{% trans "Height" %}: {{ version_setting.height }}px{% endif %}
106 <th><img src="{{ image_version.url_full }}" /></th>
108 {% if settings_var.DEBUG %}
110 <strong>Filename</strong> {{ image_version.filename }}<br />
111 <strong>Filetype</strong> {{ image_version.filetype }}<br />
112 <strong>Filesize</strong> {{ image_version.filesize }}<br />
113 <strong>Extension</strong> {{ image_version.extension }}<br />
114 <strong>Date</strong> {{ image_version.date }}<br />
115 <strong>Datetime Object</strong> {{ image_version.datetime }}<br /><br />
117 <strong>Relative Path</strong> {{ image_version.path_relative }}<br />
118 <strong>Full Path</strong> {{ image_version.path_full }}<br />
119 <strong>Relative URL</strong> {{ image_version.url_relative }}<br />
120 <strong>Full URL</strong> {{ image_version.url_full }}<br /><br />
122 <strong>URL for FileBrowseField</strong> {{ image_version.url_save }}<br />
123 <strong>Thumbnail URL</strong> {{ image_version.url_thumbnail }}<br /><br />
125 <strong>Dimensions</strong> {{ image_version.dimensions }}<br />
126 <strong>Width</strong> {{ image_version.width }}<br />
127 <strong>Height</strong> {{ image_version.height }}<br />
128 <strong>Orientation</strong> {{ image_version.orientation }}