mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-21 23:01:52 +00:00
Remove unused fossils incompatible with Django 5
This commit is contained in:
parent
480b98a704
commit
521fd20e37
@ -92,17 +92,13 @@ def troggle404(request): # cannot get this to work. Handler404 in urls.py not r
|
||||
|
||||
def frontpage(request):
|
||||
"""never seen in common practice. Logon should redirect here when this is more useful"""
|
||||
# the messages system does a popup on this page if there is a recent message, e.g. from the admin site actions.
|
||||
# via django.contrib.messages.middleware.MessageMiddleware
|
||||
# this is set in the templates.
|
||||
|
||||
if request.user.is_authenticated:
|
||||
from django.contrib.admin.templatetags import log
|
||||
return render(request, "tasks.html")
|
||||
|
||||
expeditions = Expedition.objects.order_by("-year")
|
||||
logbookentry = LogbookEntry
|
||||
cave = Cave
|
||||
from django.contrib.admin.templatetags import log
|
||||
return render(request, "frontpage.html", locals())
|
||||
|
||||
|
||||
|
@ -4,33 +4,6 @@
|
||||
|
||||
{% block title %}Cambridge Expeditions to Austria{% endblock %}
|
||||
|
||||
{% block related %}
|
||||
<h2>Recent Actions - admin user</h5>
|
||||
{% load log %}
|
||||
{% get_admin_log 10 as admin_log for_user 1 %}
|
||||
{% if not admin_log %}
|
||||
<p>No recent actions</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 %}
|
||||
{{ 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 %}{{entry.content_type.name}}{% endfilter %}</span>
|
||||
{% else %}
|
||||
<span class="mini quiet">Unknown content</span>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
|
@ -4,35 +4,6 @@
|
||||
|
||||
{% block title %}Cambridge Expeditions to Austria{% endblock %}
|
||||
|
||||
{% block related %}
|
||||
<!--
|
||||
<h2>Recent Actions - expoadmin</h5>
|
||||
{% load log %}
|
||||
{% get_admin_log 10 as admin_log for_user 1 %}
|
||||
{% if not admin_log %}
|
||||
<p>No recent actions</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 %}
|
||||
{{ 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 %}{{entry.content_type.name}}{% endfilter %}</span>
|
||||
{% else %}
|
||||
<span class="mini quiet">Unknown content</span>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
-->
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<style>
|
||||
ul {list-style: disc}
|
||||
|
Loading…
Reference in New Issue
Block a user