diff options
Diffstat (limited to 'webapp/django/contrib/databrowse/templates/databrowse/homepage.html')
-rw-r--r-- | webapp/django/contrib/databrowse/templates/databrowse/homepage.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/webapp/django/contrib/databrowse/templates/databrowse/homepage.html b/webapp/django/contrib/databrowse/templates/databrowse/homepage.html new file mode 100644 index 0000000000..718e577416 --- /dev/null +++ b/webapp/django/contrib/databrowse/templates/databrowse/homepage.html @@ -0,0 +1,21 @@ +{% extends "databrowse/base_site.html" %} + +{% block title %}Databrowse{% endblock %} + +{% block bodyid %}homepage{% endblock %} + +{% block content %} + +{% for model in model_list %} + <div class="modelgroup {% cycle 'even' 'odd' %}"> + <h2><a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a></h2> + <p> + {% for object in model.sample_objects %} + <a href="{{ object.url }}">{{ object|escape }}</a>, + {% endfor %} + <a class="more" href="{{ model.url }}">More →</a> + </p> + </div> +{% endfor %} + +{% endblock %} |