summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-30 06:18:41 +0100
committerMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-30 06:18:41 +0100
commit4be8496c3d0e6bb0c1415ce06c4dc36408975a05 (patch)
tree12dab8446189cfcf121dfd6e2ac6996428d4fdfd
parent4fbeb44718ca0f378baeae6fdda29388ff70b29d (diff)
Added projects templates.
-rw-r--r--sublab_project/projects/templates/projects/project_detail.html14
-rw-r--r--sublab_project/projects/templates/projects/project_list.html13
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 %}