Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evgeniy Negometyanov
committed
Feb 5, 2016
1 parent
4659fd5
commit 0459093
Showing
4 changed files
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,8 @@ body { | |
width: 180px; | ||
height: 180px; | ||
} | ||
|
||
.file-duplicates { | ||
clear: both; | ||
padding: 20px 0 0 0; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
{% extends "admin/change_form.html" %} | ||
{% load i18n admin_modify staticfiles %} | ||
|
||
{% block extrahead %}{{ block.super }} | ||
{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
{% with original as instance %} | ||
{% include "admin/filer/breadcrumbs.html" %} | ||
{% endwith %} | ||
{% with original as instance %} | ||
{% include "admin/filer/breadcrumbs.html" %} | ||
{% endwith %} | ||
{% endblock %} | ||
|
||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link rel="stylesheet" type="text/css" href="{% static 'filer/css/admin_filer.css' %}"> | ||
{{ block.super }} | ||
<link rel="stylesheet" type="text/css" href="{% static 'filer/css/admin_filer.css' %}"> | ||
{% endblock %} | ||
|
||
|
||
{% block after_field_sets %} | ||
{% if is_popup and select_folder %} | ||
<input type="hidden" name="select_folder" value="1"> | ||
<input type="hidden" name="select_folder" value="1"> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block sidebar %} | ||
{% block file_sidebar %} | ||
{% with original.duplicates as duplicates %} | ||
{% if duplicates %} | ||
<h3>{% trans "duplicates" %}</h3> | ||
<ul> | ||
{% for duplicate in duplicates %} | ||
<li><a href="{{ duplicate.get_admin_url_path }}">{{ duplicate }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endwith %} | ||
{% endblock %} | ||
{% block file_sidebar %} | ||
{% with original.duplicates as duplicates %} | ||
{% if duplicates %} | ||
<div class="file-duplicates"> | ||
<h3>{% trans "Duplicates" %}</h3> | ||
<ul> | ||
{% for duplicate in duplicates %} | ||
<li><a href="{{ duplicate.get_admin_url_path }}">{{ duplicate }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
{% endwith %} | ||
{% endblock %} | ||
{% endblock %} |