diff options
author | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-30 06:18:41 +0100 |
---|---|---|
committer | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-30 06:18:41 +0100 |
commit | 4be8496c3d0e6bb0c1415ce06c4dc36408975a05 (patch) | |
tree | 12dab8446189cfcf121dfd6e2ac6996428d4fdfd /sublab_project/projects | |
parent | 4fbeb44718ca0f378baeae6fdda29388ff70b29d (diff) |
Added projects templates.
Diffstat (limited to 'sublab_project/projects')
-rw-r--r-- | sublab_project/projects/templates/projects/project_detail.html | 14 | ||||
-rw-r--r-- | sublab_project/projects/templates/projects/project_list.html | 13 |
2 files changed, 27 insertions, 0 deletions
diff --git a/sublab_project/projects/templates/projects/project_detail.html b/sublab_project/projects/templates/projects/project_detail.html new file mode 100644 index 0000000..cbd46eb --- /dev/null +++ b/sublab_project/projects/templates/projects/project_detail.html @@ -0,0 +1,14 @@ +{% extends 'base.html' %} + +{% block title %}{{ object.title }}{% endblock %} + +{% block content %} + <h2 id="{{ object.slug }}">Projekt: {{ object.name }}</h3> + {{ object.description_html|safe }} + {% if object.contact_email %} + <p>E-Mail: {{ object.contact_email }}</p> + {% endif %} + {% if object.contact_url %} + <p><a href="{{ object.contact_url }}">{{ object.contact_url }}</a></p> + {% endif %} +{% endblock content %} diff --git a/sublab_project/projects/templates/projects/project_list.html b/sublab_project/projects/templates/projects/project_list.html new file mode 100644 index 0000000..18378b2 --- /dev/null +++ b/sublab_project/projects/templates/projects/project_list.html @@ -0,0 +1,13 @@ +{% extends 'base.html' %} + +{% block title %}Projekte{% endblock %} + +{%block content %} + <h2>sublab - Projekte</h2> + {% for project in project_list %} + <h3 id="{{ project.slug }}"> + <a href="{{ project.get_absolute_url }}">{{ project.name }}</a> + </h3> + {{ project.description_html|safe|truncatewords_html:20 }} + {% endfor %} +{% endblock content %} |