From e8bbf9b35660c89718a35e173548d2abb4b654f8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 22 Mar 2011 21:37:28 -0500 Subject: Simplify the dev dashboard Remove all the click to expand junk; just show the tables all the time. There is no form at the bottom of the page anymore, so if you don't want to read the tables on the bottom, just don't read them. Signed-off-by: Dan McGee --- media/archweb.css | 4 ---- templates/devel/clock.html | 2 +- templates/devel/index.html | 29 ++++++++++------------------- 3 files changed, 11 insertions(+), 24 deletions(-) diff --git a/media/archweb.css b/media/archweb.css index aec78f87..4b0b9e89 100644 --- a/media/archweb.css +++ b/media/archweb.css @@ -242,11 +242,7 @@ form#dash-pkg-notify input { vertical-align: middle; margin: 0 0.25em; } form#dash-pkg-notify input[type=submit] { margin-top: -0.25em; } form#dash-pkg-notify p { margin: 0; } -/* dev dashboard: collapse stat tables by default */ -table#stats-by-maintainer, table#stats-by-repo, table#stats-by-arch { display: none; } table.dash-stats .key { width: 50%; } -span.dash-click { font-weight: normal; font-size: 0.8em; color: #888; } -div.dash-stats h3 { color: #07b; } /* dev dashboard: admin actions (add news items, todo list, etc) */ ul.admin-actions { float: right; list-style: none; margin-top: -2.5em; } diff --git a/templates/devel/clock.html b/templates/devel/clock.html index ab1d9b9f..0f0e20c5 100644 --- a/templates/devel/clock.html +++ b/templates/devel/clock.html @@ -14,7 +14,7 @@ UTC Time: {{ utc_now|date:"Y-m-d H:i T" }}

- +
diff --git a/templates/devel/index.html b/templates/devel/index.html index 0505ff14..af2e5d28 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -8,7 +8,7 @@

My Flagged Packages

-
Developer
+
@@ -38,7 +38,7 @@

My Incomplete Todo List Packages

-
Name
+
@@ -67,7 +67,7 @@

Package Todo Lists

-
Todo List
+
@@ -91,11 +91,9 @@ -
+
-

- Stats by Architecture (click to toggle)

+

Stats by Architecture

Name
@@ -122,11 +120,9 @@ -
+
-

- Stats by Repository (click to toggle)

+

Stats by Repository

@@ -153,11 +149,9 @@ -
+
-

- Stats by Maintainer (click to toggle)

+

Stats by Maintainer

@@ -203,12 +197,9 @@ $(document).ready(function() { {widgets: ['zebra'], sortList: [[0,0], [1,0]]}); $("#dash-todo:not(:has(tbody tr.empty))").tablesorter( {widgets: ['zebra'], sortList: [[1,1]]}); - $("#stats-by-arch").add("#stats-by-repo").add("#stats-by-maintainer").tablesorter( + $(".dash-stats").tablesorter( {widgets: ['zebra'], sortList: [[0,0]], headers: { 1: { sorter: 'pkgcount' }, 2: { sorter: 'pkgcount' } } }); - $("h3.dash-stats").click( - function(e) { $(this).next().toggle(); } - ); }); {% endblock %} -- cgit v1.2.3-55-g3dc8