summaryrefslogtreecommitdiff
path: root/design/templates/admin/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/admin/index.html')
-rw-r--r--design/templates/admin/index.html148
1 files changed, 148 insertions, 0 deletions
diff --git a/design/templates/admin/index.html b/design/templates/admin/index.html
new file mode 100644
index 0000000..fc857f2
--- /dev/null
+++ b/design/templates/admin/index.html
@@ -0,0 +1,148 @@
+{% extends "admin/base_site.html" %}
+{% load i18n admin_static %}
+
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
+<style>
+.module caption {
+ padding: 5px;
+}
+td, th {
+ font-size: 12px;
+ padding: 5px 8px;
+}
+.module {
+ margin-bottom: 20px;
+}
+</style>
+{% endblock %}
+
+{% block coltype %}colMS{% endblock %}
+
+{% block bodyclass %}dashboard{% endblock %}
+
+{% block breadcrumbs %}{% endblock %}
+
+{% block content %}
+<div id="content-main">
+
+{% if app_list %}
+ <div class="module">
+ <table>
+ <caption><a href="{{ app.app_url }}" class="section" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">Frequently Used</a></caption>
+ <tr>
+ <th scope="row"><a href="/admin/django_comments/comment/">moderate comments</a></th>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/jrnl/entry/">jrnl</a></th>
+ <td><a href="/admin/jrnl/entry/add/" class="addlink">{% trans 'Add' %}</a></td></tr>
+ <tr>
+ <th scope="row"><a href="/admin/photos/luximage/">photos</a></th>
+ <td><a href="/admin/photos/luximage/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/sightings/sighting/">sightings</a></th>
+ <td><a href="/admin/sightings/sighting/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/fieldnotes/fieldnote/">fieldnotes</a></th>
+ <td><a href="/admin/fieldnotes/fieldnote/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/locations/checkin/">check ins</a></th>
+ <td><a href="/admin/locations/checkin/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/locations/location/">locations</a></th>
+ <td><a href="/admin/locations/location/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/sightings/ap/">dialogue</a></th>
+ <td><a href="/admin/sightings/ap/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/locations/campsite/">campsite</a></th>
+ <td><a href="/admin/locations/campsite/add/" class="addlink">Add</a></td>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/jrnl/home/1/change/">homepage</a></th>
+ </tr>
+ <tr>
+ <th scope="row"><a href="/admin/pages/page/">pages</a></th>
+ <td><a href="/admin/pages/page/add/" class="addlink">Add</a></td>
+ </tr>
+ </table>
+ </div>
+ {% for app in app_list %}
+ <div class="module">
+ <table>
+ <caption>
+ <a href="{{ app.app_url }}" class="section" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">
+ {% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
+ </a>
+ </caption>
+ {% for model in app.models %}
+ <tr>
+ {% if model.admin_url %}
+ <th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
+ {% else %}
+ <th scope="row">{{ model.name }}</th>
+ {% endif %}
+
+ {% if model.add_url %}
+ <td><a href="{{ model.add_url }}" class="addlink">{% trans 'Add' %}</a></td>
+ {% else %}
+ <td>&nbsp;</td>
+ {% endif %}
+
+ {% if model.admin_url %}
+ <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
+ {% else %}
+ <td>&nbsp;</td>
+ {% endif %}
+ </tr>
+ {% if model.name == "Gigs"%}
+ <tr> <th scope="row"><a href="{{ model.admin_url }}monthly/">Income for month</a></th></tr>
+ {% endif %}
+ {% endfor %}
+ </table>
+ </div>
+ {% endfor %}
+{% else %}
+ <p>{% trans "You don't have permission to edit anything." %}</p>
+{% endif %}
+</div>
+{% endblock %}
+
+{% block sidebar %}
+
+<div id="content-related">
+{% include 'admin/buttons.html' %}
+ <div class="module" id="recent-actions-module">
+ <h2>{% trans 'Recent Actions' %}</h2>
+ <h3>{% trans 'My Actions' %}</h3>
+ {% load log %}
+ {% get_admin_log 10 as admin_log for_user user %}
+ {% if not admin_log %}
+ <p>{% trans 'None available' %}</p>
+ {% else %}
+ <ul class="actionlist">
+ {% for entry in admin_log %}
+ <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
+ {% if entry.is_deletion or not entry.get_admin_url %}
+ {{ entry.object_repr }}
+ {% else %}
+ <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
+ {% endif %}
+ <br/>
+ {% if entry.content_type %}
+ <span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span>
+ {% else %}
+ <span class="mini quiet">{% trans 'Unknown content' %}</span>
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </div>
+</div>
+{% endblock %}