This repository has been archived by the owner on Nov 16, 2017. It is now read-only.
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
Showing
9 changed files
with
83 additions
and
92 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Martin Mahner <http://www.mahner.org/> | ||
Filip Noetzel <http://filip.noetzel.co.uk/> | ||
rlaager |
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
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
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
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
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,42 +1,38 @@ | ||
{% extends "templatesadmin/base.html" %} | ||
{% load i18n %} | ||
|
||
{% load i18n %}$ | ||
{% block breadcumbs %} | ||
<a href="{% url templatesadmin-overview %}">{% trans "Home" %}</a> › | ||
<a href="{% url templatesadmin-overview %}">{% trans "File selection" %}</a> › | ||
{{ short_path }} | ||
{% endblock %} | ||
|
||
<a href="{% url templatesadmin-overview %}">{% trans "Home" %}</a> ›$ | ||
<a href="{% url templatesadmin-overview %}">{% trans "File selection" %}</a> ›$ | ||
{{ short_path }} | ||
{% endblock %}$ | ||
{% block main %} | ||
<h2>{{ template_path }}</h2> | ||
<form enctype="multipart/form-data" action="" method="post" id="site_form"> | ||
{{ form.errors }} | ||
{{ form.content }} | ||
|
||
<div class="submit-row"> | ||
{% if template_writeable %} | ||
{% for field in form %} | ||
{% ifnotequal field.label "Content" %} | ||
<p class="float-left"> | ||
{{ field.label }} {{ field }} | ||
</p> | ||
{% if forloop.last %} <input type="submit" value="{% trans "Save" %}" class="default" /> {% endif %} | ||
<br clear="both"/> | ||
{% endifnotequal %} | ||
{% endfor %} | ||
{% else %} | ||
{% trans "This template is not writeable." %} | ||
<br clear="both"/> | ||
{% endif %} | ||
</div> | ||
</form> | ||
{% endblock %} | ||
|
||
<h2>{{ template_path }}</h2> | ||
<form enctype="multipart/form-data" action="" method="post" id="site_form"> | ||
{{ form.errors }}$ | ||
{{ form.content }}$ | ||
<div class="submit-row"> | ||
{% if template_writeable %} | ||
{% for field in form %} | ||
{% ifnotequal field.label "Content" %} | ||
<p class="float-left"> | ||
{{ field.label }} {{ field }} | ||
</p> | ||
{% if forloop.last %} <input type="submit" value="{% trans "Save" %}" class="default" /> {% endif %} | ||
<br clear="both"/> | ||
{% endifnotequal %} | ||
{% endfor %} | ||
{% else %} | ||
{% trans "This template is not writeable." %} | ||
<br clear="both"/> | ||
{% endif %} | ||
</div> | ||
</form> | ||
{% endblock %}$ | ||
{% block extrastyle %} | ||
textarea#id_content{ | ||
width: 99%; | ||
height: 400px; | ||
margin: 1em 0; | ||
font-family: monospace; | ||
} | ||
{% endblock %} | ||
textarea#id_content{ | ||
width: 99%; | ||
height: 400px; | ||
margin: 1em 0; | ||
font-family: monospace; | ||
} | ||
{% endblock %}$ |
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,36 +1,38 @@ | ||
{% extends "templatesadmin/base.html" %} | ||
|
||
{% load i18n %} | ||
{% load templatesadmin_tags %} | ||
{% load templatesadmin_tags %}$ | ||
|
||
{% block breadcumbs %}<a href="{% url templatesadmin-overview %}">{% trans "Home" %}</a> › {% trans "File selection" %}{% endblock %} | ||
|
||
{% block main %} | ||
{% for template in template_dict %} | ||
{% ifchanged template.rootpath %} | ||
{% if not forloop.first %} | ||
{% for template in template_dict %} | ||
{% ifchanged template.rootpath %} | ||
{% if not forloop.first %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
<div class="module"> | ||
<a name="{{ template.rootpath }}"></a> | ||
<h2>{{ template.rootpath }}</h2> | ||
<h2>{{ template.rootpath }}</h2>$ | ||
<table cellspacing="0" style="width: 100%;"> | ||
<thead> | ||
<tr> | ||
<th>{% trans "File" %}</th> | ||
<th class="r">{% trans "Modified" %}</th> | ||
<th class="r">{% trans "Modified" %}</th>$ | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% endifchanged %} | ||
{% endifchanged %} | ||
<tr class="{% cycle row1,row2 %}"> | ||
<td style="width: 99%;"> | ||
{% if not template.writeable %}{% trans "(read only)" %} {% endif %} | ||
<a href="{% url templatesadmin-edit template.abspath %}">{{ template.abspath|shortenfilepath }}</a></td> | ||
{% if not template.writeable %}{% trans "(read only)" %} {% endif %} | ||
<a href="{% url templatesadmin-edit template.abspath %}">{{ template.abspath|shortenfilepath }}</a></td> | ||
<td style="white-space: nowrap;" class="r">{{ template.modified|date:_("DATETIME_FORMAT") }}</td> | ||
</tr> | ||
{% endfor %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endblock %} | ||
{% endblock %}$ |
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
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