diff options
author | Mike Crute <mcrute@gmail.com> | 2010-07-09 22:46:51 -0400 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-07-09 22:46:51 -0400 |
commit | 8bfbe74dcd1a377461a944884965d60da35fa1a1 (patch) | |
tree | 702d699c91996efb0e28007471cbb346138ff5ec | |
parent | 94d87b109f08187f64ed54232e82cef5ae842a4e (diff) | |
download | snakeplan-8bfbe74dcd1a377461a944884965d60da35fa1a1.tar.bz2 snakeplan-8bfbe74dcd1a377461a944884965d60da35fa1a1.tar.xz snakeplan-8bfbe74dcd1a377461a944884965d60da35fa1a1.zip |
Making project templates prettier.
-rw-r--r-- | snakeplan/templates/base.html | 25 | ||||
-rw-r--r-- | snakeplan/templates/projects/iteration_list.html | 16 | ||||
-rw-r--r-- | snakeplan/templates/projects/project_form.html | 3 | ||||
-rw-r--r-- | snakeplan/templates/projects/project_list.html | 42 |
4 files changed, 68 insertions, 18 deletions
diff --git a/snakeplan/templates/base.html b/snakeplan/templates/base.html index d33c21f..4506d5f 100644 --- a/snakeplan/templates/base.html +++ b/snakeplan/templates/base.html | |||
@@ -1,13 +1,18 @@ | |||
1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
2 | <html> | 2 | <html> |
3 | <head> | 3 | <head> |
4 | <title>{% block title %}SnakePlan{% endblock %}</title> | 4 | <title>{% block title %}{% endblock %} - SnakePlan</title> |
5 | <link rel="stylesheet" href="/static/css/blueprint/screen.css" type="text/css" media="screen, projection"> | 5 | <link rel="stylesheet" href="{{MEDIA_URL}}/css/screen.css" type="text/css" media="screen, projection" /> |
6 | <link rel="stylesheet" href="/static/css/blueprint/print.css" type="text/css" media="print"> | 6 | </head> |
7 | </head> | 7 | |
8 | <body> | 8 | <body> |
9 | <div class="container"> | 9 | <h1>{% block pagetitle %}SnakePlan{% endblock %}</h1> |
10 | {% block content %}{% endblock %} | 10 | |
11 | </div> | 11 | <ul class="action-bar"> |
12 | </body> | 12 | {% block actionbar %}{% endblock %} |
13 | </ul > | ||
14 | |||
15 | |||
16 | {% block content %}{% endblock %} | ||
17 | </body> | ||
13 | </html> | 18 | </html> |
diff --git a/snakeplan/templates/projects/iteration_list.html b/snakeplan/templates/projects/iteration_list.html index f48b812..4e42b52 100644 --- a/snakeplan/templates/projects/iteration_list.html +++ b/snakeplan/templates/projects/iteration_list.html | |||
@@ -1,10 +1,15 @@ | |||
1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
2 | 2 | ||
3 | {% block content %} | 3 | {% block title %}{{ project_name }} Iterations{% endblock %} |
4 | <h1>Project: {{project_name}}</h1> | 4 | {% block pagetitle %}{{ project_name }} Iterations{% endblock %} |
5 | |||
6 | {% block actionbar %} | ||
7 | <li><a href="{% url project-list %}" class="action"><img src="{{MEDIA_URL}}/images/arrow_left.png" title="Back to Projects" alt="Back to Projects" /> Project List</a></li> | ||
8 | <li><a href="{% url create-project %}" class="action"><img src="{{MEDIA_URL}}/images/add.png" title="Create" alt="Create" /> Create Iteration</a></li> | ||
9 | {% endblock %} | ||
5 | 10 | ||
6 | <h2>Iterations</h2> | 11 | {% block content %} |
7 | 12 | {% if object_list %} | |
8 | <table> | 13 | <table> |
9 | <tr> | 14 | <tr> |
10 | <th>Iteration</th> | 15 | <th>Iteration</th> |
@@ -21,4 +26,7 @@ | |||
21 | </tr> | 26 | </tr> |
22 | {% endfor %} | 27 | {% endfor %} |
23 | </table> | 28 | </table> |
29 | {% else %} | ||
30 | <div class="user-notice info">There are no iterations</div> | ||
31 | {% endif %} | ||
24 | {% endblock %} | 32 | {% endblock %} |
diff --git a/snakeplan/templates/projects/project_form.html b/snakeplan/templates/projects/project_form.html index 1587d17..0e6a574 100644 --- a/snakeplan/templates/projects/project_form.html +++ b/snakeplan/templates/projects/project_form.html | |||
@@ -1,5 +1,8 @@ | |||
1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
2 | 2 | ||
3 | {% block title %}Create Project{% endblock %} | ||
4 | {% block pagetitle %}Create Project{% endblock %} | ||
5 | |||
3 | {% block content %} | 6 | {% block content %} |
4 | <form action="" method="POST"> | 7 | <form action="" method="POST"> |
5 | <ul> | 8 | <ul> |
diff --git a/snakeplan/templates/projects/project_list.html b/snakeplan/templates/projects/project_list.html index 331d7c2..8572bc6 100644 --- a/snakeplan/templates/projects/project_list.html +++ b/snakeplan/templates/projects/project_list.html | |||
@@ -1,11 +1,45 @@ | |||
1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
2 | 2 | ||
3 | {% block title %}Project List{% endblock %} | ||
4 | {% block pagetitle %}Project List{% endblock %} | ||
5 | |||
6 | {% block actionbar %} | ||
7 | <li><a href="{% url create-project %}" class="action"><img src="{{MEDIA_URL}}/images/add.png" title="Create" alt="Create" /> Create Project</a></li> | ||
8 | {% endblock %} | ||
9 | |||
3 | {% block content %} | 10 | {% block content %} |
4 | <h1>Projects</h1> | 11 | {% if object_list %} |
12 | <table id="project-list"> | ||
13 | <tr> | ||
14 | <th>Project Name</th> | ||
15 | <th>Tags</th> | ||
16 | <th>Iteration</th> | ||
17 | <th>Actions</th> | ||
18 | </tr> | ||
5 | 19 | ||
6 | <ol> | ||
7 | {% for project in object_list %} | 20 | {% for project in object_list %} |
8 | <li><a href="/p/project/{{project.id}}/iterations/">{{project.name}}</a></li> | 21 | {% if not project.active %} |
22 | <tr class="project inactive"> | ||
23 | {% else %} | ||
24 | <tr class="project"> | ||
25 | {% endif %} | ||
26 | <td><a href="{% url project-iterations project.id %}">{{project.name}}</a></td> | ||
27 | <td>some, tags, go, here</td> | ||
28 | <td><a href="#">Some Iteration</a></td> | ||
29 | <td class="row-actions"> | ||
30 | <a href="#"><img src="{{MEDIA_URL}}/images/pencil.png" title="Edit" alt="Edit" /></a> | ||
31 | <a href="#"><img src="{{MEDIA_URL}}/images/delete.png" title="Delete" alt="Delete" /></a> | ||
32 | |||
33 | {% if not project.active %} | ||
34 | <a href="#"><img src="{{MEDIA_URL}}/images/connect.png" title="Activate" alt="Activate" /></a> | ||
35 | {% else %} | ||
36 | <a href="#"><img src="{{MEDIA_URL}}/images/disconnect.png" title="Deactive" alt="Deactivate" /></a> | ||
37 | {% endif %} | ||
38 | </td> | ||
39 | </tr> | ||
9 | {% endfor %} | 40 | {% endfor %} |
10 | </ol> | 41 | </table> |
42 | {% else %} | ||
43 | <div class="user-notice info">There are no projects!</div> | ||
44 | {% endif %} | ||
11 | {% endblock %} | 45 | {% endblock %} |