summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-07 21:23:42 -0600
committerDan McGee <dan@archlinux.org>2011-03-07 21:23:42 -0600
commite82a4d5b9c17fbc5ee63d14a1c87ef12718fa343 (patch)
tree557bae2bf96ac4d885d30e1d00382d420410d879
parent0c6ee81eb469734dae380f428149f316fdbf75bd (diff)
downloadarchweb-e82a4d5b9c17fbc5ee63d14a1c87ef12718fa343.tar.gz
archweb-e82a4d5b9c17fbc5ee63d14a1c87ef12718fa343.zip
Todo list styling and info cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--media/archweb.css9
-rw-r--r--templates/todolists/list.html2
-rw-r--r--templates/todolists/public_list.html11
-rw-r--r--templates/todolists/view.html4
4 files changed, 13 insertions, 13 deletions
diff --git a/media/archweb.css b/media/archweb.css
index 47abba7b..aec78f87 100644
--- a/media/archweb.css
+++ b/media/archweb.css
@@ -248,18 +248,15 @@ table.dash-stats .key { width: 50%; }
span.dash-click { font-weight: normal; font-size: 0.8em; color: #888; }
div.dash-stats h3 { color: #07b; }
-/* read only (public) todo lists */
-#public_todo_lists .todo_list {
- margin-left: 2em;
-}
-
/* dev dashboard: admin actions (add news items, todo list, etc) */
ul.admin-actions { float: right; list-style: none; margin-top: -2.5em; }
ul.admin-actions li { display: inline; padding-left: 1.5em; }
-/* dev: todo list */
+/* todo lists (public and private) */
.todo-table .complete { color: green; }
.todo-table .incomplete { color: red; }
+.todo-info { margin: 0; color: #999; }
+.todo-list h4 { margin-top: 0; margin-bottom: 0.4em; }
/* dev: signoff page */
#dev-signoffs ul { list-style: none; margin: 0; padding: 0; }
diff --git a/templates/todolists/list.html b/templates/todolists/list.html
index 2e75bdac..78acabfb 100644
--- a/templates/todolists/list.html
+++ b/templates/todolists/list.html
@@ -32,7 +32,7 @@
title="View todo list: {{ list.name }}">{{ list.name }}</a></td>
<td>{{ list.date_added }}</td>
<td>{{ list.creator.get_full_name }}</td>
- <td class="wrap">{{ list.description|safe }}</td>
+ <td class="wrap">{{ list.description|urlize }}</td>
<td>{{ list.pkg_count }}</td>
<td>{{ list.incomplete_count }}</td>
<td>{% ifequal list.incomplete_count 0 %}<span class="complete">Complete</span>
diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html
index d84a548f..0d14250d 100644
--- a/templates/todolists/public_list.html
+++ b/templates/todolists/public_list.html
@@ -22,13 +22,14 @@
</div>
</div>
{% if todo_lists %}
-<div id="public_todo_lists">
+<div id="public-todo-lists">
{% for list in todo_lists %}
<div class="box">
- <a name="{{ list.id }}"></a>
- <h4>{{ list.name }}</h4>
- <div class="todo_list">
- <div>{{ list.description|safe|linebreaks }}</div>
+ <div class="todo-list">
+ <a name="{{ list.id }}"></a>
+ <h4>{{ list.name }}</h4>
+ <p class="todo-info">{{ list.date_added|date }} - {{ list.creator.get_full_name }}</p>
+ <div>{{ list.description|urlize|linebreaks }}</div>
<table id="todo-pkglist-{{ list.id }}" class="results todo-table">
<thead>
<tr>
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index 36ecb9bf..9a6e3c0f 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -17,7 +17,9 @@
{% endif %}
</ul>
- <p>{{list.description|safe|linebreaks}}</p>
+ <p class="todo-info">{{ list.date_added|date }} - {{ list.creator.get_full_name }}</p>
+
+ <div>{{list.description|urlize|linebreaks}}</div>
<table id="dev-todo-pkglist" class="results todo-table">
<thead>