From 1bdc620153f65192c317e6f215e5d43cf291b65b Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 17 Jan 2013 06:52:23 +0100 Subject: [PATCH] Some first attempts at a ticket list color scheme and page layout --- public_html/modules/project/index.php | 2 + public_html/modules/project/tickets/index.php | 18 ++++ public_html/rewrite.php | 4 +- public_html/static/style.css | 91 +++++++++++++++++++ public_html/templates/project/layout.tpl | 14 +-- .../templates/project/tickets/index.tpl | 40 ++++++++ 6 files changed, 161 insertions(+), 8 deletions(-) create mode 100644 public_html/modules/project/tickets/index.php create mode 100644 public_html/templates/project/tickets/index.tpl diff --git a/public_html/modules/project/index.php b/public_html/modules/project/index.php index 8b0d158..ef38360 100644 --- a/public_html/modules/project/index.php +++ b/public_html/modules/project/index.php @@ -13,6 +13,8 @@ if(!isset($_APP)) { die("Unauthorized."); } +$sPageTitle = "Overview"; +$sCurrentPage = "overview"; $sPageContents = Templater::AdvancedParse("project/index", $locale->strings, array( "long-description" => $sProject->sLongDescription, "no-downloads" => false, diff --git a/public_html/modules/project/tickets/index.php b/public_html/modules/project/tickets/index.php new file mode 100644 index 0000000..c356514 --- /dev/null +++ b/public_html/modules/project/tickets/index.php @@ -0,0 +1,18 @@ +strings, array()); diff --git a/public_html/rewrite.php b/public_html/rewrite.php index 66f2ed9..c50517c 100644 --- a/public_html/rewrite.php +++ b/public_html/rewrite.php @@ -15,6 +15,7 @@ require("include/base.php"); $sPageTitle = ""; $sPageContents = ""; +$sCurrentPage = ""; /* Define the different routes for the application */ @@ -81,7 +82,8 @@ if(empty($router->uVariables['page_type']) || $router->uVariables['page_type'] = elseif($router->uVariables['page_type'] == "project") { $sContents = NewTemplater::Render("project/layout", $locale->strings, array( - "contents" => $sPageContents + "contents" => $sPageContents, + "current-page" => $sCurrentPage )); } else diff --git a/public_html/static/style.css b/public_html/static/style.css index 9d8f920..ba9a609 100644 --- a/public_html/static/style.css +++ b/public_html/static/style.css @@ -12,6 +12,97 @@ body font-family: "Nobile", sans-serif; } +table +{ + width: 100%; + border-spacing: 0px; + border-collapse: collapse; +} + +table th, table td +{ + text-align: left; + padding: 7px 7px; + border-left: 1px solid #252525; + border-right: 1px solid #252525; +} + +table th +{ + background-color: black; + color: white; + font-size: 12px; +} + +table td +{ + border: 1px solid #A1A1A1; +} + +table th.empty table td.empty +{ + padding: 0px; +} + +table td +{ + font-size: 13px; +} + +section.tickets tr.priority-low +{ + color: #2B2B2B; + background-color: #EDEDED; +} + +section.tickets tr.priority-low:hover +{ + background-color: #E3E3E3; +} + +section.tickets tr.priority-normal +{ + color: black; + background-color: #E5FFFF; +} + +section.tickets tr.priority-normal:hover +{ + background-color: #DCF5F5; +} + +section.tickets tr.priority-high +{ + background-color: #FFC9C9; +} + +section.tickets tr.priority-high:hover +{ + background-color: #F5C1C1; +} + +section.tickets tr.priority-high td.priority +{ + color: red; + font-weight: bold; +} + +section.tickets tr.status-closed +{ + color: gray; + background-color: #D0D0D0; +} + +section.tickets tr.status-closed:hover +{ + background-color: #C7C7C7; +} + +section.tickets tr.status-closed.priority-high td.priority +{ + color: #656565; +} + .clear { clear: both; diff --git a/public_html/templates/project/layout.tpl b/public_html/templates/project/layout.tpl index f495de4..b8ba5e1 100644 --- a/public_html/templates/project/layout.tpl +++ b/public_html/templates/project/layout.tpl @@ -4,13 +4,13 @@
diff --git a/public_html/templates/project/tickets/index.tpl b/public_html/templates/project/tickets/index.tpl new file mode 100644 index 0000000..075fc4d --- /dev/null +++ b/public_html/templates/project/tickets/index.tpl @@ -0,0 +1,40 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TitlePriorityStatus
This is a sample ticket about some kind of bug.HighOpen
Some kind of feature suggestionNormalOpen
Aaaaaabsolutely unimportant.LowOpen
This is an urgent ticket about something that has been resolved..HighClosed
This is a normal ticket about something that has been resolved..NormalClosed
+