diff options
author | Guilherme Salgado <guilherme.salgado@linaro.org> | 2011-06-08 10:43:47 -0300 |
---|---|---|
committer | Guilherme Salgado <guilherme.salgado@linaro.org> | 2011-06-08 10:43:47 -0300 |
commit | 178bce9310347fa641845ff92a8b9e4e8cb23195 (patch) | |
tree | 567a7dddfcc98d067ee5d472ff8f76a6b870ee90 /templates | |
parent | f0c382f3dd16e4a0b6e8c4d3d6fd48164ca91f97 (diff) |
A new frontpage for patchmetrics
Diffstat (limited to 'templates')
-rw-r--r-- | templates/patchmetrics/base.html | 76 | ||||
-rw-r--r-- | templates/patchmetrics/frontpage.html | 9 |
2 files changed, 85 insertions, 0 deletions
diff --git a/templates/patchmetrics/base.html b/templates/patchmetrics/base.html new file mode 100644 index 0000000..227c666 --- /dev/null +++ b/templates/patchmetrics/base.html @@ -0,0 +1,76 @@ +{% load pwurl %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title>{% block title %}Patchwork{% endblock %}</title> + <link rel="stylesheet" type="text/css" href="/css/patchmetrics.css"/> + <script language="JavaScript" type="text/javascript" src="/js/common.js"> + </script> +{% block headers %}{% endblock %} + </head> + <body> + <div id="title"> + <h1 style="float: left;"> + {% block heading %}{% endblock %}</h1> + <div id="auth"> +{% if user.is_authenticated %} + Logged in as + <a href="{% url patchwork.views.user.profile %}" + ><strong>{{ user.username }}</strong></a> + <br/> + <a href="{% url patchwork.views.user.todo_lists %}">todo + ({{ user.get_profile.n_todo_patches }})</a> :: + <a href="{% url patchwork.views.bundle.bundles %}">bundles</a> + <br/> + <a href="{% url patchwork.views.user.profile %}">profile</a> :: + <a href="{% url auth_logout %}">logout</a> +{% else %} + <a href="{{ login_url }}">login</a> + <br/> + <a href="{% url patchwork.views.help path="about/" %}">about</a> +{% endif %} + </div> + <div style="clear: both;"></div> + </div> + <div id="nav"> + <div id="navleft"> + {% if project %} + <strong>Project</strong>: {{ project.linkname }} + : + <a href="{% url patchwork.views.patch.list project_id=project.linkname %}" + >patches</a> + : + <a href="{% url patchwork.views.project.project project_id=project.linkname %}" + >project info</a> + {% if other_projects %} + : + <a href="{% url patchwork.views.projects %}" + >other projects</a> + {% endif %} + {% else %} + <a href="{% url patchwork.views.projects %}" + >project list</a> + {% endif %} + </div> + <div id="navright"> + <a href="{% url patchwork.views.help path="about/" %}">about</a> + </div> + <div style="clear: both"></div> + </div> +{% if messages %} + <div id="messages"> + {% for message in messages %} + <div class="message">{{ message }}</div> + {% endfor %} + </div> +{% endif %} + <div id="content"> +{% block body %} +{% endblock %} + </div> + </body> +</html> + + + diff --git a/templates/patchmetrics/frontpage.html b/templates/patchmetrics/frontpage.html new file mode 100644 index 0000000..5a39363 --- /dev/null +++ b/templates/patchmetrics/frontpage.html @@ -0,0 +1,9 @@ +{% extends "patchmetrics/base.html" %} + +{% block title %}Linaro patches{% endblock %} +{% block heading %}Linaro patches{% endblock %} + +{% block body %} + + +{% endblock %} |