b038c042d8290a225f7002d1ead15db72b8b0781
[redakcja.git] / apps / filebrowser / templates / filebrowser / .svn / text-base / versions.html.svn-base
1 {% extends "admin/base_site.html" %}
2
3 <!-- LOADING -->
4 {% load i18n adminmedia fb_tags fb_versions %}
5
6 <!-- EXTRAHEAD -->
7 {% block extrahead %}
8     {{ block.super }}
9     {% ifequal query.pop '1' %} <!-- FileBrowseField -->
10     <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_FileBrowseField.js"></script>
11     {% endifequal %}
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 %}
16     {% endifequal %}
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>
19     {% endifequal %}
20     {{ media }}
21 {% endblock %}
22
23 <!-- COLTYPE/BODYCLASS -->
24 {% block coltype %}colM{% endblock %}
25 {% block bodyclass %}change-list filebrowser{% endblock %}
26
27 <!-- EXTRASTYLE -->
28 {% block extrastyle %}
29     {{ block.super }}
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" />
32     {% if query.pop %}
33     <style type="text/css">
34     #header { display: none; }
35     </style>
36 {% endif %}
37 {% endblock %}
38
39 <!-- BREADCRUMBS -->
40 {% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
41
42 <!-- CONTENT -->
43 {% block content %}
44 <div id="content-main">
45     <div class="module" id="changelist">
46         <div class="changelist-content">
47         <table cellspacing="0">
48             <thead>
49                 <tr>
50                 <!-- SELECT -->
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>
56                 <!-- THUMB -->
57                 <th>{% trans 'Image Version' %}</th>
58                 {% if settings_var.DEBUG %}<th>{% trans "Debug" %}</th>{% endif %}
59                 </tr>
60             </thead>
61             <tbody>
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' %}
67                 <td class="fb_icon">
68                     {% selectable image_version.filetype query.type %}
69                     {% if selectable %}
70                     <a href="javascript://" onclick="FileSubmit('{{ image_version.url_save }}', '{{ image_version.url_thumbnail }}', '{{ image_version.filetype }}');" class="fb_selectlink" title="{% trans 'Select' %}"></a>
71                     {% else %}
72                     <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
73                     {% endif %}
74                 </td>
75                 {% endifequal %}
76                 <!-- Fileselect for RTE/TinyMCE -->
77                 {% ifequal query.pop '2' %}
78                 <td class="fb_icon">
79                     {% selectable image_version.filetype query.type %}
80                     {% if selectable %}
81                     <a href="javascript:FileBrowserDialogue.fileSubmit('{{ image_version.url_save }}');" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
82                     {% else %}
83                     <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
84                     {% endif %}
85                 </td>
86                 {% endifequal %}
87                 <!-- Fileselect for CKeditor (former "FCKeditor") -->
88                 {% ifequal query.pop '3' %}
89                 <td class="fb_icon">
90                     {% selectable image_version.filetype query.type %}
91                     {% if selectable %}
92                     <a href="#" onclick="OpenFile(ProtectPath('{{ image_version.url_save }}'));return false;" class="fb_selectlink" title="{% trans 'Select File' %}"></a>
93                     {% else %}
94                     <img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_icon_select_disabled.gif" width="23" height="17" />
95                     {% endif %}
96                 </td>
97                 {% endifequal %}
98                 <!-- FILENAME / DIMENSIONS  -->
99                 <td>
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 %}
104                 </td>
105                 <!-- THUMB -->
106                 <th><img src="{{ image_version.url_full }}" /></th>
107                 <!-- DEBUG -->
108                 {% if settings_var.DEBUG %}
109                 <td>
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 />
116                     
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 />
121                     
122                     <strong>URL for FileBrowseField</strong> {{ image_version.url_save }}<br />
123                     <strong>Thumbnail URL</strong> {{ image_version.url_thumbnail }}<br /><br />
124                     
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 }}
129                 </td>
130                 {% endif %}
131                 </tr>
132             {% endfor %}
133             </tbody>
134         </table>
135         </div>
136     </div>
137 </div>
138 {% endblock %}