summaryrefslogtreecommitdiff
path: root/lib/filebrowser/templates
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filebrowser/templates')
-rw-r--r--lib/filebrowser/templates/filebrowser/append.html12
-rw-r--r--lib/filebrowser/templates/filebrowser/custom_field.html26
-rw-r--r--lib/filebrowser/templates/filebrowser/include/_response.html1
-rw-r--r--lib/filebrowser/templates/filebrowser/include/breadcrumbs.html24
-rw-r--r--lib/filebrowser/templates/filebrowser/include/filelisting.html136
-rw-r--r--lib/filebrowser/templates/filebrowser/include/filter.html27
-rw-r--r--lib/filebrowser/templates/filebrowser/include/paginator.html28
-rw-r--r--lib/filebrowser/templates/filebrowser/include/search.html31
-rw-r--r--lib/filebrowser/templates/filebrowser/include/tableheader.html32
-rw-r--r--lib/filebrowser/templates/filebrowser/include/toolbar.html36
-rw-r--r--lib/filebrowser/templates/filebrowser/index.html143
-rw-r--r--lib/filebrowser/templates/filebrowser/makedir.html45
-rw-r--r--lib/filebrowser/templates/filebrowser/rename.html43
-rw-r--r--lib/filebrowser/templates/filebrowser/upload.html113
-rw-r--r--lib/filebrowser/templates/filebrowser/versions.html156
15 files changed, 853 insertions, 0 deletions
diff --git a/lib/filebrowser/templates/filebrowser/append.html b/lib/filebrowser/templates/filebrowser/append.html
new file mode 100644
index 0000000..a96b386
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/append.html
@@ -0,0 +1,12 @@
+{% load i18n %}
+
+<div class="module">
+ <table>
+ <caption>{% trans "FileBrowser" %}</caption>
+ <tr class="row2">
+ <th scope="row"><a href="{% url fb_browse %}">{% trans "FileBrowser" %}</a></th>
+ <td> </td>
+ <td> </td>
+ </tr>
+ </table>
+</div> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/custom_field.html b/lib/filebrowser/templates/filebrowser/custom_field.html
new file mode 100644
index 0000000..45c3b70
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/custom_field.html
@@ -0,0 +1,26 @@
+{% load fb_versions %}
+<input id="{{ final_attrs.id }}" type="text" class="vFileBrowseField" name="{{ final_attrs.name }}" value="{{ value }}" /><a href="javascript:FileBrowser.show('{{ final_attrs.id }}', '{% url fb_browse %}?pop=1{% if final_attrs.directory %}&amp;dir={{ final_attrs.directory }}{% endif %}{% if final_attrs.format %}&amp;type={{ final_attrs.format }}{% endif %}');" class="fb_show">
+ {% comment %}<img src="{{ final_attrs.search_icon }}" alt="" />{% endcomment %}
+</a>
+{% ifequal value.filetype "Image" %}
+<p class="help" id="help_{{ final_attrs.id }}">
+ <a href="{{ value.url_full }}" target="_blank" id="link_{{ final_attrs.id }}">
+ <img id="image_{{ final_attrs.id }}" src="{% version value.path final_attrs.ADMIN_THUMBNAIL %}" class="preview" />
+ </a>
+</p>
+{% else %}
+<p class="help" id="help_{{ final_attrs.id }}" style="display: none;">
+ <a href="javascript://" target="_self" id="link_{{ final_attrs.id }}">
+ <img id="image_{{ final_attrs.id }}" class="preview" src="" />
+ </a>
+</p>
+{% endifequal %}
+{% if final_attrs.DEBUG %}
+<p>
+ <strong>Path</strong> {{ value.path }}<br />
+ <strong>FileType</strong> {{ value.filetype }}<br /><br />
+ <strong>Directory</strong> {{ final_attrs.directory }}<br />
+ <strong>Extensions</strong> {{ final_attrs.extensions }}<br />
+ <strong>Format</strong> {{ final_attrs.format }}
+</p>
+{% endif %} \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/_response.html b/lib/filebrowser/templates/filebrowser/include/_response.html
new file mode 100644
index 0000000..e7dff2c
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/_response.html
@@ -0,0 +1 @@
+{{ response }} \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/breadcrumbs.html b/lib/filebrowser/templates/filebrowser/include/breadcrumbs.html
new file mode 100644
index 0000000..c6f539d
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/breadcrumbs.html
@@ -0,0 +1,24 @@
+{% load i18n fb_tags %}
+
+<div id="breadcrumbs">
+ {% if not query.pop %}
+ <a href="../../">{% trans "Home" %}</a> &rsaquo;
+ {% endif %}
+ {% if breadcrumbs or breadcrumbs_title %}
+ <a href="{% url fb_browse %}{% query_string "" "q,dir,filename,p" %}">{% trans 'FileBrowser' %}</a> &rsaquo;
+ {% else %}
+ {% trans 'FileBrowser' %}
+ {% endif %}
+ {% for item in breadcrumbs %}
+ {% if not forloop.last %}
+ <a href="{% url fb_browse %}{% query_string "" "q,dir,filename,p" %}&amp;dir={{ item.1 }}">{{ item.0 }}</a> &rsaquo;
+ {% else %}
+ {% if breadcrumbs_title %}
+ <a href="{% url fb_browse %}{% query_string "" "q,dir,filename,p" %}&amp;dir={{ item.1 }}">{{ item.0 }}</a> &rsaquo;
+ {% else %}
+ {{ item.0 }}
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+ {% if breadcrumbs_title %}{{ breadcrumbs_title }}{% endif %}
+</div> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/filelisting.html b/lib/filebrowser/templates/filebrowser/include/filelisting.html
new file mode 100644
index 0000000..f3ec09d
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/filelisting.html
@@ -0,0 +1,136 @@
+{% load i18n adminmedia fb_tags fb_versions %}
+
+{% for file in page.object_list %}
+ <tr class="{% cycle 'row1' 'row2' %}{% if file.filetype == "Folder" %} fb_folder{% endif %}">
+
+ <!-- FILESELECT FOR FILEBROWSEFIELD -->
+ {% if query.pop == "1" and results_var.select_total %}
+ <td class="fb_icon">
+ {% selectable file.filetype query.type %}
+ {% if selectable %}
+ <button class="button fb_selectlink" onclick="FileSubmit('{{ file.url_save }}', '{{ file.url_thumbnail }}', '{{ file.filetype }}');">{% trans "Select" %}</button>
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
+ {% endif %}
+
+ <!-- FILESELECT FOR RTE/TINYMCE -->
+ {% if query.pop == "2" and results_var.select_total %}
+ <td class="fb_icon">
+ {% selectable file.filetype query.type %}
+ {% if selectable %}
+ <button class="button fb_selectlink" onclick="FileBrowserDialogue.fileSubmit('{{ file.url_save|escapejs }}');">{% trans "Select" %}</button>
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
+ {% endif %}
+
+ <!-- FILESELECT FOR CKEDITOR (FORMER "FCKEDITOR") -->
+ {% if query.pop == "3" and results_var.select_total %}
+ <td class="fb_icon">
+ {% selectable file.filetype query.type %}
+ {% if selectable %}
+ <button class="button fb_selectlink" onclick="OpenFile(ProtectPath('{{ file.url_save|escapejs }}'));return false;">{% trans "Select" %}</button>
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
+ {% endif %}
+
+ <!-- FILEICON -->
+ <td>
+ {% comment %}<img src="{{ settings_var.URL_FILEBROWSER_MEDIA }}img/filebrowser_type_{{ file.filetype|lower }}.gif" />{% endcomment %}
+ <span class="fb_type {{ file.filetype|lower }}">{{ file.filetype }}</span>
+ </td>
+
+ <!-- THUMBNAIL -->
+ <td class="fb_thumbnail">
+ {% if file.filetype == "Image" %}
+ <a href="{{ file.url_full }}" class="fb_viewlink"><img src="{% version file.path settings_var.ADMIN_THUMBNAIL %}" title="{% trans 'View Image' %}" /></a>
+ {% endif %}
+ </td>
+
+ <!-- FILENAME/DIMENSIONS -->
+ {% if file.filetype == "Folder" %}
+ <td><a href="{% url fb_browse %}{% query_string "" "q,dir,p" %}&amp;dir={{ file.path_relative_directory|urlencode }}"><strong>{{ file.filename }}</strong></a></td>
+ {% else %}
+ <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><br clear="all" />
+ {% endif %}
+ {% comment %}
+ {% if file.filetype == "Image" %}
+ <a class="preview fb_showpreview" href="javascript://" title="{% trans 'Preview' %}">{% trans 'Preview' %}</a>
+ <div class="fb_preview_container">
+ <a href="{{ file.url_full }}" class="fb_view_image external" target="_blank"><span>{% trans 'View Image' %}</span><img src="{% version file.path settings_var.PREVIEW_VERSION %}" title="{% trans 'View Image' %}" class="fb_preview" /></a>
+ </div>
+ {% endif %}
+ {% endcomment %}
+ {% if results_var.images_total and settings_var.ADMIN_VERSIONS and file.filetype == "Image" %}
+ <a class="internal fb_showversions" href="{% url fb_versions %}{% query_string "" "p" %}&amp;filename={{ file.filename }}" title="{% trans 'Versions' %}">{% trans 'Versions' %}</a>
+ {% endif %}
+ </td>
+ {% endif %}
+
+ <!-- FOLDER -->
+ {% if q %}<td><a href="{% url fb_browse %}{% query_string "" "dir,p" %}&amp;dir={{ file.folder_for_link|urlencode }}"><strong>{{ file.folder }}</strong></a></td>{% endif %}
+
+ <!-- SIZE -->
+ <td>{{ file.filesize|filesizeformat }}</td>
+
+ <!-- DATE -->
+ <td>{{ file.datetime|date:"N j, Y" }}</td>
+
+ <!-- ACTIONS -->
+ <td>
+ <div class="pulldown-actions-container">
+ <a href="javascript://" class="pulldown-actions-handler">&nbsp;</a>
+ <ul class="pulldown-actions">
+ <li><a href="{% url fb_rename %}{% query_string %}&amp;filename={{ file.filename }}" title="{% trans 'Rename' %}">{% trans 'Rename' %}</a></li>
+ {% ifnotequal file.filetype 'Folder' %}
+ <li><a href="{% url fb_delete %}{% query_string %}&amp;filename={{ file.filename }}&amp;filetype={{ file.filetype }}" onclick="return confirm('{% trans "Are you sure you want to delete this file?" %}');" title="{% trans 'Delete File' %}">{% trans 'Delete File' %}</a></li>
+ {% else %}
+ {% if file.is_empty %}
+ <li><a href="{% url fb_delete %}{% query_string %}&amp;filename={{ file.filename }}&amp;filetype={{ file.filetype }}" onclick="return confirm('{% trans "Are you sure you want to delete this Folder?" %}');" title="{% trans 'Delete Folder' %}">{% trans 'Delete Folder' %}</a></li>
+ {% endif %}
+ {% endifnotequal %}
+ </ul>
+ </div>
+ </td>
+
+ <!-- DEBUG -->
+ {% if settings_var.DEBUG %}
+ <td>
+ <strong>Filename</strong> {{ file.filename }}<br />
+ <strong>Filetype</strong> {{ file.filetype }}<br />
+ <strong>Filesize</strong> {{ file.filesize }}<br />
+ <strong>Extension</strong> {{ file.extension }}<br />
+ <strong>Date</strong> {{ file.date }}<br />
+ <strong>Datetime Object</strong> {{ file.datetime }}<br /><br />
+ <strong>Relative Path</strong> {{ file.path_relative }}<br />
+ <strong>Full Path</strong> {{ file.path_full }}<br />
+ <strong>Relative URL</strong> {{ file.url_relative }}<br />
+ <strong>Full URL</strong> {{ file.url_full }}<br /><br />
+ <strong>URL for FileBrowseField</strong> {{ file.url_save }}<br />
+ <strong>Thumbnail URL</strong> {{ file.url_thumbnail }}
+ {% if file.filetype == "Image" %}
+ <br /><br />
+ <strong>Dimensions</strong> {{ file.dimensions }}<br />
+ <strong>Width</strong> {{ file.width }}<br />
+ <strong>Height</strong> {{ file.height }}<br />
+ <strong>Orientation</strong> {{ file.orientation }}
+ {% endif %}
+ {% if file.filetype == "Folder" %}
+ <br /><br />
+ <strong>Is Empty</strong> {{ file.is_empty }}
+ {% endif %}
+ </td>
+ {% endif %}
+
+ </tr>
+{% endfor %}
+
+ \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/filter.html b/lib/filebrowser/templates/filebrowser/include/filter.html
new file mode 100644
index 0000000..fd7966a
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/filter.html
@@ -0,0 +1,27 @@
+{% load i18n fb_tags %}
+<div id="filters" class="module filter span-6">
+ <div class="pulldown-container">
+ <a href="javascript://" class="button toggle-filters">{% trans 'Filter' %}</a>
+ <div class="filter-pulldown">
+ <div class="filter">
+ <label>{% trans "By Date" %}</label>
+ <select class="filter_choice">
+ <option value="{% query_string "" "filter_date,p" %}">{% trans "Any Date" %}</option>
+ <option value="{% query_string "" "filter_date,p" %}&amp;filter_date=today"{% if query.filter_date == "today" %} selected="selected"{% endif %}>{% trans "Today" %}</option>
+ <option value="{% query_string "" "filter_date,p" %}&amp;filter_date=past7days"{% if query.filter_date == "past7days" %} selected="selected"{% endif %}>{% trans "Past 7 days" %}</option>
+ <option value="{% query_string "" "filter_date,p" %}&amp;filter_date=thismonth"{% if query.filter_date == "thismonth" %} selected="selected"{% endif %}>{% trans "This Month" %}</option>
+ <option value="{% query_string "" "filter_date,p" %}&amp;filter_date=thisyear"{% if query.filter_date == "thisyear" %} selected="selected"{% endif %}>{% trans "This year" %}</option>
+ </select>
+ </div>
+ <div class="filter">
+ <label>{% trans "By Type" %}</label>
+ <select class="filter_choice">
+ <option value="{% query_string "" "filter_type,p" %}">{% trans "All" %}</option>
+ {% for extension in settings_var.EXTENSIONS %}
+ <option value="{% query_string "" "filter_type,p" %}&amp;filter_type={{ extension }}"{% if query.filter_type == extension %} selected="selected"{% endif %}>{% trans extension %}</option>
+ {% endfor %}
+ </select>
+ </div>
+ </div>
+ </div>
+</div> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/paginator.html b/lib/filebrowser/templates/filebrowser/include/paginator.html
new file mode 100644
index 0000000..b35e4fb
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/paginator.html
@@ -0,0 +1,28 @@
+{% load i18n fb_tags %}
+<div class="module pagination">
+ <ul class="pagination">
+ {% if results_var.results_total != results_var.results_current %}
+ <li class="results"><span>{{ results_var.results_current }} {% ifequal results_var.results_current 1 %}{% trans 'result' %}{% else %}{% trans 'results' %}{% endifequal %}</span></li>
+ {% endif %}
+ <li class="results">
+ {% if query.q or results_var.results_total != results_var.results_current %}
+ <a href="{% query_string "" "filter_date,filter_type,p,q" %}" class="total">{{ results_var.results_total }} {% trans 'total' %}</a>
+ {% else %}
+ <span>{{ results_var.results_total }} {% trans "total" %}</span>
+ {% endif %}
+ </li>
+ {% if page_range %}
+ {% for i in page_range %}
+ {% ifequal i "." %}
+ <li class="separator"><span>...</span></li>
+ {% else %}
+ {% ifequal i page_num %}
+ <li><span class="this-page">{{ i|add:"1" }}</span></li>
+ {% else %}
+ <li><a href="{% query_string "" "p" %}&amp;p={{ i|add:"1" }}">{{ i|add:"1" }}</a></li>
+ {% endifequal %}
+ {% endifequal %}
+ {% endfor %}
+ {% endif %}
+ </ul><br clear="all" />
+</div> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/search.html b/lib/filebrowser/templates/filebrowser/include/search.html
new file mode 100644
index 0000000..bff5955
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/search.html
@@ -0,0 +1,31 @@
+{% load i18n adminmedia fb_tags %}
+<div class="search-results">
+ <p>{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %}</p>
+ <span class="quiet">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</span>
+ <a href="?{% if cl.is_popup %}pop=1{% endif %}" class="align-right">{% blocktrans with cl.full_result_count as full_result_count %}Clear Restrictions{% endblocktrans %}</a></strong>
+</div>
+<h2 class="collapse-toggle collapse-open">{% trans 'Search' %}xx</h2>
+<div id="toolbar">
+ <form id="changelist-search" action="." method="get">
+ <div><!-- DIV needed for valid HTML -->
+ <label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
+ <input type="text" size="40" name="q" value="{{ q }}" id="searchbar" />
+ {% if query.filter_type %}<input type="hidden" name="filter_type" value="{{ query.filter_type }}" />{% endif %}
+ {% if query.filter_date %}<input type="hidden" name="filter_date" value="{{ query.filter_date }}" />{% endif %}
+ {% if query.o %}<input type="hidden" name="o" value="{{ query.o }}" />{% endif %}
+ {% if query.ot %}<input type="hidden" name="ot" value="{{ query.ot }}" />{% endif %}
+ {% if query.pop %}<input type="hidden" name="pop" value="{{ query.pop }}" />{% endif %}
+ {% if query.type %}<input type="hidden" name="type" value="{{ query.type }}" />{% endif %}
+ <input type="submit" value="{% trans "Go" %}" />
+
+ <p class="help"><strong>Search for:</strong> Filename</p>
+ {% if results_var.results_total %}
+ {% if query.filter_type or query.filter_date or query.q %}
+ <span class="small quiet">{% blocktrans count results_var.results_current as counter %}{{ counter }} Item found{% plural %}{{ counter }} Items found{% endblocktrans %}
+ (<strong><a href="{% query_string "" "filter_date,filter_type,q,p" %}">{% blocktrans count results_var.results_total as counter %}{{ counter }} Item total{% plural %}{{ counter }} Items total{% endblocktrans %}</a></strong>)</span>
+ {% endif %}
+ {% endif %}
+ </div>
+ </form>
+</div>
+<script type="text/javascript">document.getElementById("searchbar").focus();</script> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/tableheader.html b/lib/filebrowser/templates/filebrowser/include/tableheader.html
new file mode 100644
index 0000000..c58cd0c
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/tableheader.html
@@ -0,0 +1,32 @@
+{% load i18n fb_tags %}
+<thead>
+ <tr>
+ <!-- SELECT -->
+ {% if query.pop == "1" and results_var.select_total %}<th></th>{% endif %}
+ {% if query.pop == "2" and results_var.select_total %}<th></th>{% endif %}
+ {% if query.pop == "3" and results_var.select_total %}<th></th>{% endif %}
+ <!-- FILETYPE -->
+ {% ifequal query.o "filetype_checked" %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot,p" %}&amp;ot={% ifequal query.ot "desc" %}asc{% else %}desc{% endifequal %}&amp;o=filetype_checked">{% trans "Type" %}</a></th>{% endifequal %}
+ {% ifnotequal query.o "filetype_checked" %}<th><a href="{% query_string "" "o,ot,p" %}&amp;ot=asc&amp;o=filetype_checked">{% trans "Type" %}</a></th>{% endifnotequal %}
+ <!-- THUMB -->
+ <th>{% trans "Thumbnail" %}</th>
+ <!-- FILENAME / DIMENSIONS -->
+ {% ifequal query.o "filename_lower" %}<th class="filename sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot,p" %}&amp;ot={% ifequal query.ot "desc" %}asc{% else %}desc{% endifequal %}&amp;o=filename_lower">{% trans "Filename" %}</a></th>{% endifequal %}
+ {% ifnotequal query.o "filename_lower" %}<th class="filename"><a href="{% query_string "" "o,ot,p" %}&amp;ot=asc&amp;o=filename_lower">{% trans "Filename" %}</a></th>{% endifnotequal %}
+ <!-- FOLDER -->
+ {% if q %}
+ {% ifequal query.o 'folder' %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot,p" %}&amp;ot={% ifequal query.ot 'desc' %}asc{% else %}desc{% endifequal %}&amp;o=folder">{% trans 'Folder' %}</a></th>{% endifequal %}
+ {% ifnotequal query.o 'folder' %}<th><a href="{% query_string "" "o,ot,p" %}&amp;ot=asc&amp;o=folder">{% trans 'Folder' %}</a></th>{% endifnotequal %}
+ {% endif %}
+ <!-- SIZE -->
+ {% ifequal query.o "filesize" %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot,p" %}&amp;ot={% ifequal query.ot "desc" %}asc{% else %}desc{% endifequal %}&amp;o=filesize">{% trans "Size" %}</a></th>{% endifequal %}
+ {% ifnotequal query.o "filesize" %}<th><a href="{% query_string "" "o,ot,p" %}&amp;ot=asc&amp;o=filesize">{% trans "Size" %}</a></th>{% endifnotequal %}
+ <!-- DATE -->
+ {% ifequal query.o "date" %}<th class="sorted {{ query.ot }}ending"><a href="{% query_string "" "o,ot,p" %}&amp;ot={% ifequal query.ot "desc" %}asc{% else %}desc{% endifequal %}&amp;o=date">{% trans "Date" %}</a></th>{% endifequal %}
+ {% ifnotequal query.o "date" %}<th><a href="{% query_string "" "o,ot,p" %}&amp;ot=asc&amp;o=date">{% trans "Date" %}</a></th>{% endifnotequal %}
+ <!-- ACTIONS -->
+ <th>&nbsp;</th>
+ <!-- DEBUG -->
+ {% if settings_var.DEBUG %}<th>Debug</th>{% endif %}
+ </tr>
+</thead> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/include/toolbar.html b/lib/filebrowser/templates/filebrowser/include/toolbar.html
new file mode 100644
index 0000000..99b31aa
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/include/toolbar.html
@@ -0,0 +1,36 @@
+{% load i18n adminmedia fb_tags %}
+
+{% if results_var.results_total %}
+{% if query.filter_type or query.filter_date or query.q %}
+<div class="module results">
+ <h2>{% trans 'Results' %}</h2>
+ <div class="form-row">
+ <p>{% blocktrans count results_var.results_current as counter %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %}</p>
+ <p><a href="{% query_string "" "filter_date,filter_type,q" %}">{% blocktrans with results_var.results_total as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a></p>
+ </div>
+</div>
+{% endif %}
+{% endif %}
+
+<div class="module search">
+ <h2>{% trans "Search" %}</h2>
+ <div id="toolbar">
+ <form id="changelist-search" action="." method="get">
+ <div><!-- DIV needed for valid HTML -->
+ <div class="form-row">
+ <input type="text" size="40" name="q" value="{{ query.q }}" id="searchbar" />
+ {% if query.filter_type %}<input type="hidden" name="filter_type" value="{{ query.filter_type }}" />{% endif %}
+ {% if query.filter_date %}<input type="hidden" name="filter_date" value="{{ query.filter_date }}" />{% endif %}
+ {% if query.o %}<input type="hidden" name="o" value="{{ query.o }}" />{% endif %}
+ {% if query.ot %}<input type="hidden" name="ot" value="{{ query.ot }}" />{% endif %}
+ {% if query.pop %}<input type="hidden" name="pop" value="{{ query.pop }}" />{% endif %}
+ {% if query.type %}<input type="hidden" name="type" value="{{ query.type }}" />{% endif %}
+ {% if query.format %}<input type="hidden" name="format" value="{{ query.format }}" />{% endif %}
+ {% if query.dir %}<input type="hidden" name="dir" value="{{ query.dir }}" />{% endif %}
+ <input type="submit" value="" />
+ </div>
+ </div>
+ </form>
+ </div>
+</div>
+<script type="text/javascript">document.getElementById("searchbar").focus();</script> \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/index.html b/lib/filebrowser/templates/filebrowser/index.html
new file mode 100644
index 0000000..17896c7
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/index.html
@@ -0,0 +1,143 @@
+{% extends "admin/base_site.html" %}
+
+<!-- LOADING -->
+{% load i18n adminmedia fb_tags fb_pagination %}
+
+<!-- STYLESHEETS -->
+{% block stylesheets %}
+ {{ block.super }}
+ {# <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelist.css" /> #}
+ <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
+{% endblock %}
+
+<!-- JAVASCRIPTS -->
+{% block javascripts %}
+ {{ block.super }}
+ {% ifequal query.pop '1' %} <!-- FileBrowseField -->
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_FileBrowseField.js"></script>
+ {% endifequal %}
+ {% ifequal query.pop '2' %} <!-- TinyMCE -->
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_TINYMCE }}tiny_mce_popup.js"></script>
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_TinyMCE.js"></script>
+ {% if query.mce_rdomain %}<script language="javascript">document.domain = "{{ query.mce_rdomain }}"</script>{% endif %}
+ {% endifequal %}
+ {% ifequal query.pop '3' %} <!-- CKeditor (former "FCKeditor") -->
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_CKEditor.js"></script>
+ {% endifequal %}
+ {{ media }}
+
+ <script type="text/javascript" src="{% admin_media_prefix %}js/grappelli.change_list.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ (function($) {
+ $(document).ready(function() {
+ {% if is_popup %}
+ // UGLY HACK: REMOVE ACTIONS and LIST_EDITABLES FOR POPUPS
+ // shouldn't be there in the first place, see
+ // http://code.djangoproject.com/ticket/11700
+ $('div#actions').hide();
+ $('input.action-select').parent().hide();
+ $('input#action-toggle').parent().hide();
+ $('div.changelist-results input').attr('disabled', 'disabled');
+ $('div.changelist-results select').attr('disabled', 'disabled');
+ $('div.changelist-results textarea').attr('disabled', 'disabled').addClass("mceNoEditor");
+ $('div#submit').hide();
+ $('.related-lookup, .add-another').attr("onClick", "return false;");
+ $('.vDateField').datepicker("disable");
+ {% endif %}
+ $("a.pulldown-actions-handler").bind("click", function() {
+ if (!$(this).parent().hasClass("open")) {
+ $("tr").removeClass("selected");
+ $(".pulldown-actions-container").removeClass("open");
+ $(this).parent().addClass("open");
+ $(this).parent().parent().parent().addClass("selected");
+ } else {
+ $(this).parent().removeClass("open");
+ $(this).parent().parent().parent().removeClass("selected");
+ }
+ });
+ $("a.fb_showpreview").bind("click", function() {
+ $(this).next(".fb_preview_container").toggle();
+ });
+ $('body').change_list();
+ $(document).keypress(function(evt) {
+ if (evt.keyCode == '27') {
+ $(".pulldown-actions-container:visible").removeClass("open");
+ $(".pulldown-actions-container").parent().parent().removeClass("selected");
+ $(".fb_preview_container:visible").hide();
+ }
+ });
+ $(document).mousedown(function(evt) {
+ if ($(".pulldown-actions-container").is(":visible")) {
+ var $target = $(evt.target);
+ if (!$(evt.target).hasClass("pulldown-actions-container") && $target.parents(".pulldown-actions-container").length == 0) {
+ $(".pulldown-actions-container").removeClass("open");
+ $(".pulldown-actions-container").parent().parent().removeClass("selected");
+ }
+ }
+ if ($(".fb_preview_container").is(":visible")) {
+ var $target = $(evt.target);
+ if (!$(evt.target).is("a.fb_showpreview") &&! $(evt.target).hasClass("fb_preview_container") && $target.parents(".fb_preview_container").length == 0) {
+ $(".fb_preview_container").hide();
+ }
+ }
+ });
+ });
+ })(django.jQuery);
+ </script>
+{% endblock %}
+
+<!-- COLTYPE/BODYCLASS-- >
+{% block bodyclass %}change-list filebrowser{% if query.pop %} popup{% endif %}{% endblock %}
+{% block content-class %}content-flexible{% endblock %}
+
+<!-- BREADCRUMBS -->
+{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
+
+{% block object-tools %}
+<ul class="tools">
+ <li><a href="{% url fb_mkdir %}{% query_string '' 'p' %}">{% trans "New Folder" %}</a></li>
+ <li><a href="{% url fb_upload %}{% query_string '' 'p' %}" class="focus">{% trans "Upload" %}</a></li>
+</ul>
+{% endblock %}
+
+<!-- CONTENT -->
+{% block content %}
+ <div class="module changelist-filters">
+ <!-- PAGINATION -->
+ {% pagination %}
+ <!-- FILTERS -->
+ {% include "filebrowser/include/filter.html" %}
+ <!-- SEARCH -->
+ <div id="search" class="module search span-6">
+ <form id="changelist-search" action="." method="get">
+ <input type="text" size="40" name="q" value="{{ query.q }}" id="searchbar" />
+ {% if query.filter_type %}<input type="hidden" name="filter_type" value="{{ query.filter_type }}" />{% endif %}
+ {% if query.filter_date %}<input type="hidden" name="filter_date" value="{{ query.filter_date }}" />{% endif %}
+ {% if query.o %}<input type="hidden" name="o" value="{{ query.o }}" />{% endif %}
+ {% if query.ot %}<input type="hidden" name="ot" value="{{ query.ot }}" />{% endif %}
+ {% if query.pop %}<input type="hidden" name="pop" value="{{ query.pop }}" />{% endif %}
+ {% if query.type %}<input type="hidden" name="type" value="{{ query.type }}" />{% endif %}
+ {% if query.format %}<input type="hidden" name="format" value="{{ query.format }}" />{% endif %}
+ {% if query.dir %}<input type="hidden" name="dir" value="{{ query.dir }}" />{% endif %}
+ <button class="search" type="submit" value="">&nbsp;</button>
+ </form>
+ </div>
+ <br clear="all" />
+ </div>
+ <div id="changelist" class="container-full">
+ <!-- RESULTS -->
+ {% if results_var.results_current %}
+ <div class="module changelist-results">
+ <table cellspacing="0">
+ {% include "filebrowser/include/tableheader.html" %}
+ <tbody>
+ {% include "filebrowser/include/filelisting.html" %}
+ </tbody>
+ </table>
+ </div>
+ {% endif %}
+ <!-- PAGINATION -->
+ {% pagination %}
+ </div>
+
+{% endblock %}
diff --git a/lib/filebrowser/templates/filebrowser/makedir.html b/lib/filebrowser/templates/filebrowser/makedir.html
new file mode 100644
index 0000000..3595514
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/makedir.html
@@ -0,0 +1,45 @@
+{% extends "admin/base_site.html" %}
+
+<!-- LOADING -->
+{% load i18n adminmedia fb_tags fb_csrf %}
+
+<!-- STYLESHEETS -->
+{% block stylesheets %}
+ {{ block.super }}
+ <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
+ <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
+{% endblock %}
+
+<!-- COLTYPE/BODYCLASS -->
+{% block bodyclass %}change-form filebrowser{% if query.pop %} popup{% endif %}{% endblock %}
+{% block content-class %}content-flexible{% endblock %}
+
+<!-- BREADCRUMBS -->
+{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
+
+<!-- CONTENT -->
+{% block content %}
+<div id="content-main">
+ <form action="{% query_string '' 'p' %}" method="post">{% fb_csrf_token %}
+ {% if form.errors %}<p class="errornote">{% trans 'Please correct the following errors.' %}</p>{% endif %}
+ <fieldset class="module aligned">
+ <div class="row {% if form.dir_name.errors %}errors{% endif %}">
+ <div class="column span-4"><label class="required" for="id_dir_name">{{ form.dir_name.label }}</label></div>
+ <div class="column span-flexible">
+ {{ form.dir_name }}
+ {% if form.dir_name.errors %}<ul class="errorlist">{{ form.dir_name.errors }}</ul>{% endif %}
+ <p class="help">
+ {{ form.dir_name.help_text|safe }}
+ {% if settings_var.CONVERT_FILENAME %}<br />{% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %}{% endif %}
+ </p>
+ </div>
+ </div>
+ </fieldset>
+ <div class="module footer">
+ <ul class="submit-row">
+ <li class="submit-button-container"><input type="submit" value="{% trans 'Submit' %}" class="default" /></li>
+ </ul>
+ </div>
+ </form>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/rename.html b/lib/filebrowser/templates/filebrowser/rename.html
new file mode 100644
index 0000000..a3ecf77
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/rename.html
@@ -0,0 +1,43 @@
+{% extends "admin/base_site.html" %}
+
+<!-- LOADING -->
+{% load i18n adminmedia fb_tags fb_csrf %}
+
+<!-- STYLESHEETS -->
+{% block stylesheets %}
+ {{ block.super }}
+ <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
+ <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
+{% endblock %}
+
+<!-- COLTYPE/BODYCLASS -->
+{% block bodyclass %}change-form filebrowser{% if query.pop %} popup{% endif %}{% endblock %}
+{% block content-class %}content-flexible{% endblock %}
+
+<!-- BREADCRUMBS -->
+{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
+
+<!-- CONTENT -->
+{% block content %}
+<div id="content-main">
+ <form action="{% query_string "" "filter_date,filter_type,q,p" %}" method="post">{% fb_csrf_token %}
+ {% if form.errors %}<p class="errornote">{% trans 'Please correct the following errors.' %}</p>{% endif %}
+ <fieldset class="module aligned">
+ <div class="row {% if form.dir_name.errors %}errors{% endif %}">
+ <div class="column span-4"><label class="required" for="id_dir_name">{{ form.name.label }}</label></div>
+ <div class="column span-flexible">
+ {{ form.name }}
+ {% if file_extension %}<b>{{ file_extension }}</b>{% endif %}
+ {% if form.name.errors %}<ul class="errorlist">{{ form.name.errors }}</ul>{% endif %}
+ {% if form.name.help_text %}<p class="help">{{ form.name.help_text|safe }}</p>{% endif %}
+ </div>
+ </div>
+ </fieldset>
+ <div class="module footer">
+ <ul class="submit-row">
+ <li class="submit-button-container"><input type="submit" value="{% trans 'Submit' %}" class="default" /></li>
+ </ul>
+ </div>
+ </form>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/lib/filebrowser/templates/filebrowser/upload.html b/lib/filebrowser/templates/filebrowser/upload.html
new file mode 100644
index 0000000..aee862a
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/upload.html
@@ -0,0 +1,113 @@
+{% extends "admin/base_site.html" %}
+
+<!-- LOADING -->
+{% load i18n adminmedia fb_tags %}
+
+<!-- STYLESHEETS -->
+{% block stylesheets %}
+ {{ block.super }}
+ <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
+ <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
+ <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/uploadify.css" />
+{% endblock %}
+
+<!-- JAVASCRIPTS -->
+{% block javascripts %}
+ {{ block.super }}
+ <script type="text/javascript" src="../../jsi18n/"></script>
+ <script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
+ <script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/jquery-1.3.2.min.js"></script>
+ <script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/jquery.uploadify.v2.1.0.js"></script>
+ <script type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/swfobject.js"></script>
+ <script type="text/javascript" src="{% admin_media_prefix %}js/admin/CollapsedFieldsets.js"></script>
+ <script type="text/javascript">
+ (function($){
+ $(document).ready(function() {
+ $('#id_file').uploadify({
+ 'uploader' : '{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/uploadify.swf',
+ 'script' : '{% url fb_do_upload %}',
+ 'scriptData' : {'session_key': '{{session_key}}'},
+ 'checkScript' : '{% url fb_check %}',
+ 'cancelImg' : '{{ settings_var.URL_FILEBROWSER_MEDIA }}uploadify/cancel.png',
+ 'auto' : false,
+ 'folder' : '{{ query.dir }}',
+ 'multi' : true,
+ 'fileDesc' : '{% for extension in settings_var.EXTENSIONS.items %}{% ifnotequal extension.0 'Folder' %}{% for item in extension.1 %}*{{ item|safe }};{% endfor %}{% endifnotequal %}{% endfor %}',
+ 'fileExt' : '{% for extension in settings_var.EXTENSIONS.items %}{% ifnotequal extension.0 'Folder' %}{% for item in extension.1 %}*{{ item|safe }};{% endfor %}{% endifnotequal %}{% endfor %}',
+ 'sizeLimit' : {{ settings_var.MAX_UPLOAD_SIZE }},
+ 'scriptAccess' : 'sameDomain',
+ 'queueSizeLimit' : 50,
+ 'simUploadLimit' : 1,
+ 'width' : 300,
+ 'height' : 30,
+ 'hideButton' : false,
+ 'wmode' : 'transparent',
+ translations : {
+ browseButton: '{% trans "BROWSE" %}',
+ error: '{% trans "An Error occured" %}',
+ completed: '{% trans "Completed" %}',
+ replaceFile: '{% trans "Do you want to replace the file" %}',
+ unitKb: '{% trans "KB" %}',
+ unitMb: '{% trans "MB" %}'
+ }
+ });
+ $('input:submit').click(function(evt){
+ $('#id_file').uploadifyUpload();
+ return false;
+ });
+ $('a.cancel-link').click(function(evt){
+ $('#id_file').uploadifyClearQueue();
+ return false;
+ });
+ });
+ })(jQuery.noConflict());
+ </script>
+{% endblock %}
+
+<!-- COLTYPE/BODYCLASS -->
+{% block bodyclass %}change-form filebrowser{% if query.pop %} popup{% endif %}{% endblock %}
+{% block content-class %}content-flexible{% endblock %}
+
+<!-- BREADCRUMBS -->
+{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
+
+<!-- CONTENT -->
+{% block content %}
+<div id="content-main">
+ <form>
+ <fieldset class="module aligned">
+ <div class="row">
+ <input type="File" id="id_file" />
+ </div>
+ </fieldset>
+ <fieldset class="module aligned collapse closed">
+ <h2>{% trans "Help" %}</h2>
+ <div class="row">
+ {% for extension in settings_var.EXTENSIONS.items %}
+ {% ifnotequal extension.0 'Folder' %}
+ <div class="column span-4"><label class="required">{% if forloop.first %}{% trans "Allowed" %}:{% else %}&nbsp;{% endif %}</label></div>
+ <div class="column span-12 last"><p>{{ extension.0|safe }} ({{ extension.1|join:", "|safe }})</p></div><br clear="all" />
+ {% endifnotequal %}
+ {% endfor %}
+ </div>
+ <div class="row">
+ <div class="column span-4"><label class="required">{% trans "Max. Filesize" %}:</label></div>
+ <div class="column span-12 last"><p>{{ settings_var.MAX_UPLOAD_SIZE|filesizeformat }}</p></div><br clear="all" />
+ </div>
+ {% if settings_var.CONVERT_FILENAME %}
+ <div class="row">
+ <div class="column span-16 last"><p>
+ {% trans "The Name will be converted to lowercase. Spaces will be replaced with underscores." %}
+ </p></div><br clear="all" />
+ </div>
+ {% endif %}
+ </fieldset>
+ <div class="module footer">
+ <ul class="submit-row">
+ <li class="left cancel-link-container"><a class="cancel-link" href="javascript://">{% trans "Clear Queue" %}</a></li>
+ <li class="submit-button-container"><input class="default" type="submit" name="_save" value='{% trans "Upload" %}' /></li>
+ </ul>
+ </div>
+ </form>
+</div>
+{% endblock %}
diff --git a/lib/filebrowser/templates/filebrowser/versions.html b/lib/filebrowser/templates/filebrowser/versions.html
new file mode 100644
index 0000000..f82b15c
--- /dev/null
+++ b/lib/filebrowser/templates/filebrowser/versions.html
@@ -0,0 +1,156 @@
+{% extends "admin/base_site.html" %}
+
+<!-- LOADING -->
+{% load i18n adminmedia fb_tags fb_versions %}
+
+<!-- STYLESHEETS -->
+{% block stylesheets %}
+ {{ block.super }}
+ <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
+ <link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/filebrowser.css" />
+ {% if query.pop %}
+ <style type="text/css">
+ #header { display: none; }
+ </style>
+ {% endif %}
+{% endblock %}
+
+<!-- JAVASCRIPTS -->
+{% block javascripts %}
+ {{ block.super }}
+
+ {% ifequal query.pop '1' %}
+ <!-- FileBrowseField -->
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_FileBrowseField.js"></script>
+ {% endifequal %}
+
+ {% ifequal query.pop '2' %}
+ <!-- TinyMCE -->
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_TINYMCE }}tiny_mce_popup.js"></script>
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_TinyMCE.js"></script>
+ {% if query.mce_rdomain %}<script language="javascript">document.domain = "{{ query.mce_rdomain }}"</script>{% endif %}
+ {% endifequal %}
+
+ {% ifequal query.pop '3' %}
+ <!-- CKeditor (former "FCKeditor") -->
+ <script language="javascript" type="text/javascript" src="{{ settings_var.URL_FILEBROWSER_MEDIA }}js/FB_CKEditor.js"></script>
+ {% endifequal %}
+
+ {{ media }}
+{% endblock %}
+
+<!-- COLTYPE/BODYCLASS -->
+{% block bodyclass %}change-list filebrowser{% if query.pop %} popup{% endif %}{% endblock %}
+{% block content-class %}content-flexible{% endblock %}
+
+<!-- BREADCRBUMBS -->
+{% block breadcrumbs %}{% include "filebrowser/include/breadcrumbs.html" %}{% endblock %}
+
+<!-- CONTENT -->
+{% block content %}
+<div id="changelist" class="container-full">
+ <div class="module changelist-results">
+ <table cellspacing="0">
+ <thead>
+ <tr>
+
+ <!-- Select -->
+ {% ifequal query.pop '1' %}<th></th>{% endifequal %}
+ {% ifequal query.pop '2' %}<th></th>{% endifequal %}
+ {% ifequal query.pop '3' %}<th></th>{% endifequal %}
+
+ <!-- Filename/Dimensions -->
+ <th>{% trans 'Name' %}</th>
+
+ <!-- Version -->
+ <th>{% trans 'Image Version' %}</th>
+
+ <!-- Debug -->
+ {% if settings_var.DEBUG %}<th>{% trans "Debug" %}</th>{% endif %}
+
+ </tr>
+ </thead>
+ <tbody>
+ {% for version in settings_var.ADMIN_VERSIONS %}
+ {% version_object original version as image_version %}
+ <tr class="{% cycle 'row1' 'row2' %}">
+
+ <!-- Fileselect for FileBrowseField -->
+ {% ifequal query.pop '1' %}
+ <td class="fb_icon">
+ {% selectable image_version.filetype query.type %}
+ {% if selectable %}
+ <button class="button fb_selectlink" onclick="FileSubmit('{{ image_version.url_save }}', '{{ image_version.url_thumbnail }}', '{{ image_version.filetype }}');">{% trans "Select" %}</button>
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
+ {% endifequal %}
+
+ <!-- Fileselect for RTE/TinyMCE -->
+ {% ifequal query.pop '2' %}
+ <td class="fb_icon">
+ {% selectable image_version.filetype query.type %}
+ {% if selectable %}
+ <button class="button fb_selectlink" onclick="FileBrowserDialogue.fileSubmit('{{ image_version.url_save|escapejs }}');">{% trans "Select" %}</button>
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
+ {% endifequal %}
+
+ <!-- Fileselect for CKeditor (former "FCKeditor") -->
+ {% ifequal query.pop '3' %}
+ <td class="fb_icon">
+ {% selectable image_version.filetype query.type %}
+ {% if selectable %}
+ <button class="button fb_selectlink" onclick="OpenFile(ProtectPath('{{ image_version.url_save|escapejs }}'));return false;">{% trans "Select" %}</button>
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
+ {% endifequal %}
+
+ <!-- Filename / Dimensions -->
+ <td>
+ {% version_setting version %}
+ <strong>{{ version_setting.verbose_name }}</strong><br />
+ {% if version_setting.width %}{% trans "Width" %}: {{ version_setting.width }}px<br />{% endif %}
+ {% if version_setting.height %}{% trans "Height" %}: {{ version_setting.height }}px{% endif %}
+ </td>
+
+ <!-- Version -->
+ <th><img src="{{ image_version.url_full }}" /></th>
+
+ <!-- Debug -->
+ {% if settings_var.DEBUG %}
+ <td>
+ <strong>Filename</strong> {{ image_version.filename }}<br />
+ <strong>Filetype</strong> {{ image_version.filetype }}<br />
+ <strong>Filesize</strong> {{ image_version.filesize }}<br />
+ <strong>Extension</strong> {{ image_version.extension }}<br />
+ <strong>Date</strong> {{ image_version.date }}<br />
+ <strong>Datetime Object</strong> {{ image_version.datetime }}<br /><br />
+
+ <strong>Relative Path</strong> {{ image_version.path_relative }}<br />
+ <strong>Full Path</strong> {{ image_version.path_full }}<br />
+ <strong>Relative URL</strong> {{ image_version.url_relative }}<br />
+ <strong>Full URL</strong> {{ image_version.url_full }}<br /><br />
+
+ <strong>URL for FileBrowseField</strong> {{ image_version.url_save }}<br />
+ <strong>Thumbnail URL</strong> {{ image_version.url_thumbnail }}<br /><br />
+
+ <strong>Dimensions</strong> {{ image_version.dimensions }}<br />
+ <strong>Width</strong> {{ image_version.width }}<br />
+ <strong>Height</strong> {{ image_version.height }}<br />
+ <strong>Orientation</strong> {{ image_version.orientation }}
+ </td>
+ {% endif %}
+
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file