summaryrefslogtreecommitdiff
path: root/sublab_project
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project')
-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 %}