From 4be8496c3d0e6bb0c1415ce06c4dc36408975a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Fri, 30 Dec 2011 06:18:41 +0100 Subject: Added projects templates. --- .../projects/templates/projects/project_detail.html | 14 ++++++++++++++ .../projects/templates/projects/project_list.html | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 sublab_project/projects/templates/projects/project_detail.html create mode 100644 sublab_project/projects/templates/projects/project_list.html 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 %} +

Projekt: {{ object.name }}

+ {{ object.description_html|safe }} + {% if object.contact_email %} +

E-Mail: {{ object.contact_email }}

+ {% endif %} + {% if object.contact_url %} +

{{ object.contact_url }}

+ {% 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 %} +

sublab - Projekte

+ {% for project in project_list %} +

+ {{ project.name }} +

+ {{ project.description_html|safe|truncatewords_html:20 }} + {% endfor %} +{% endblock content %} -- cgit v1.2.1