From c1711f002ac343c414175bf9005e96e053ba75da Mon Sep 17 00:00:00 2001 From: Thayer Williams Date: Tue, 16 Mar 2010 11:22:54 -0700 Subject: Redesigned todo list pages Signed-off-by: Dan McGee --- templates/todolists/addedtotodolist | 2 +- templates/todolists/list.html | 62 ++++++------ templates/todolists/todolist_confirm_delete.html | 37 ++++---- templates/todolists/view.html | 114 ++++++++++++----------- 4 files changed, 112 insertions(+), 103 deletions(-) diff --git a/templates/todolists/addedtotodolist b/templates/todolists/addedtotodolist index c325c470..24fded59 100644 --- a/templates/todolists/addedtotodolist +++ b/templates/todolists/addedtotodolist @@ -8,7 +8,7 @@ The following package: Repository: {{ pkg.repo.name }} ({{ weburl }}) -has been added to this to-do list: +has been added to this todo list: Creator: {{todolist.creator.get_full_name}} Name: {{todolist.name}} diff --git a/templates/todolists/list.html b/templates/todolists/list.html index ffbab2af..e4b426bb 100644 --- a/templates/todolists/list.html +++ b/templates/todolists/list.html @@ -2,34 +2,40 @@ {% block title %}Arch Linux - Todo Lists{% endblock %} {% block content %} -
- {% if perms.main.add_todolist %} -
- Add Todo List -
- {% endif %} -

Package ToDo lists

- - - - - - - - - - - +
+ +

Package Todo Lists

+ + {% if perms.main.add_todolist %} + + {% endif %} + +
NameCreation DateCreatorDescriptionStatus
+ + + + + + + + + + {% for list in lists %} - - - - - - - + + + + + + + {% endfor %} - -
NameCreation DateCreatorDescriptionStatus
{{ list.name }}{{ list.date_added }}{{ list.creator.get_full_name }}{{ list.description }}{% if list.complete %}Complete{% else %}Incomplete{% endif %}
{{ list.name }}{{ list.date_added }}{{ list.creator.get_full_name }}{{ list.description }}{% if list.complete %}Complete + {% else %}Incomplete{% endif %}
-
+ + + + {% endblock %} diff --git a/templates/todolists/todolist_confirm_delete.html b/templates/todolists/todolist_confirm_delete.html index c0742d2b..c1e87834 100644 --- a/templates/todolists/todolist_confirm_delete.html +++ b/templates/todolists/todolist_confirm_delete.html @@ -1,25 +1,22 @@ {% extends "base.html" %} -{% block title %}Arch Linux - Delete Todo List{% endblock %} +{% block title %}Arch Linux - Delete Todo List: {{object.name}}{% endblock %} {% block content %} -
-

Confirm Delete

-

- Are you sure you want to delete this todo list? -

-
-

{{object.name}}

-

- {{object.description}} -

-
-
-
- - -
+
- -
+

Delete Todo List: {{object.name}}

+ +

You are about to delete the following todo list:

+ +
+

{{object.name}}: {{object.description}}

+
+ +

Are you sure?

+ +
+

+
+ +
{% endblock %} diff --git a/templates/todolists/view.html b/templates/todolists/view.html index ae8a6563..6b6e9845 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -1,68 +1,74 @@ {% extends "base.html" %} -{% block title %}Arch Linux - Todo - {{ list.name }}{% endblock %} +{% block title %}Arch Linux - Todo: {{ list.name }}{% endblock %} {% block content %} -
-
- {% if perms.main.delete_todolist %} - Delete Todo List | - {% endif %} - {% if perms.main.change_todolist %} - Edit Todo List - {% endif %} -
-

Todo List: {{ list.name }}

- - - - - - - - - - - +
+ +

Todo List: {{ list.name }}

+ + + +

{{list.description|linebreaks}}

+ +
NameArchRepoMaintainerStatus
+ + + + + + + + + + {% for pkg in list.packages %} - - - - - - + + + + + - + + {% endfor %} - -
NameArchRepoMaintainerStatus
{{ pkg.pkg.pkgname }}{{ pkg.pkg.arch.name }}{{ pkg.pkg.repo.name|capfirst }}{{ pkg.pkg.maintainers|join:', ' }} +
{{ pkg.pkg.pkgname }}{{ pkg.pkg.arch.name }}{{ pkg.pkg.repo.name|capfirst }}{{ pkg.pkg.maintainers|join:', ' }} {% if pkg.complete %} - Complete + Complete {% else %} - Incomplete + Incomplete {% endif %} -
-
-
-

List Description

- {{list.description|linebreaks}} -
-
+ + - {% load cdn %}{% jquery %} - + }); + {% endblock %} -- cgit v1.1-4-g5e80