diff options
Diffstat (limited to 'templates/admin/index.html')
-rw-r--r-- | templates/admin/index.html | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html new file mode 100644 index 0000000..78ada5b --- /dev/null +++ b/templates/admin/index.html @@ -0,0 +1,174 @@ +{% extends "admin/base_site.html" %} +{% load admin_list static i18n %} + +{% 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; +} +.homepage-flex { + display: flex; + flex-direction: row; +} +.flex-right{ + width: 84%; + margin-top: 5.5rem; +} +.flex-left { + width: 15% +} +.faux-btns { + margin: 0; + padding: 0; + list-style-type: none; +} +.faux-btns li { + display: inline-block; + margin-right: .6rem; +} +.colMS { + margin-right: 0; +} +</style> +{% endblock %} + +{% block coltype %}colMS{% endblock %} + +{% block bodyclass %}dashboard{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +<div id="content-main"> + <ul class="faux-btns"> + <li><a href="https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net" target="_blank">lxf awstats</a></li> + <li><a href="https://stats.luxagraf.net/" target="_blank">lxf stats</a></li> + <li><a href="/admin/build/build?id=buildbooks">Build Books</a></li> + <li><a href="/admin/build/build?id=pubs">Build Publications</a></li> + <li><a href="/admin/build/build?id=resume">Build Resume</a></li> + </ul> +{% 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> + <td> </td> + <td><a href="/admin/build/build?id=builddetails">Build JrnlDetails</a></td> + </tr> + <tr> + <th scope="row"><a href="/admin/posts/post/">posts</a></th> + <td><a href="/admin/posts/post/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=writingarchives">Build JrnlArc</a></td> + </tr> + <th scope="row"><a href="/admin/media/luximage/">images</a></th> + <td><a href="/admin/media/luximage/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=homepage">Build Homepage</a></td> + </tr> + <tr> + <th scope="row"><a href="/admin/lttr/newslettermailing/">newsletter mailings</a></th> + <td><a href="/admin/lttr/newslettermailing/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=sitemap">Build Sitemap</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> + <td><a href="/admin/build/build?id=buildrss">Build Jrnl RSS</a></td> + </tr> + <tr> + <th scope="row"><a href="/admin/locations/luxcheckin/">check ins</a></th> + <td><a href="/admin/locations/checkin/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=range">Build Range</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> + <td><a href="/admin/build/build?id=friends">Build Friends</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> + <td><a href="/admin/build/build?id=src">Build src</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> + <td><a href="/admin/build/build?id=pages">Build Pages</a></td> + </tr> + <tr> + <th scope="row"><a href="/admin/pages/homepage/1/change/">homepage</a></th> + <td><a href="/admin/locations/homepage/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=essays">Build Essays</a></td> + </tr> + <tr> + <th scope="row"><a href="/admin/lttr/subscriber/">subscribers</a></th> + <td><a href="/admin/lttr/subscriber/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=buildsightings">Build Dialogues</a></td> + </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> + <td><a href="/admin/build/build?id=fieldnotes">Build FieldNotes</a></td> + </tr> + <tr> + <th scope="row"><a href="/admin/links/link/">link</a></th> + <td><a href="/admin/links/link/add/" class="addlink">Add</a></td> + <td><a href="/admin/build/build?id=discursivepages">Build Discursive Pages</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> </td> + {% endif %} + + {% if model.admin_url %} + <td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> + {% else %} + <td> </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 %} +{% endblock %} +{% block adminembed %} +<div class="flex-right"> + <!--<iframe style="border:none;width:98%;height: 40%" src="https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net&framename=mainright"></iframe>--> +</div> +{% endblock %} |