From d85e39b75a7b882cb79c3da9aacf6eec02212844 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 25 Jul 2005 19:28:14 +0000 Subject: [PATCH] r326: Finished showreport.php styling --- showreport.php | 1 + templates/showreport.tpl | 91 +++++++++++++---------------- templates/showreport_attachment.tpl | 13 ++--- templates/style.css | 48 ++++++++++++++- templates/stylevars.txt | 2 +- 5 files changed, 96 insertions(+), 59 deletions(-) diff --git a/showreport.php b/showreport.php index c4929e9..e5b9321 100644 --- a/showreport.php +++ b/showreport.php @@ -238,6 +238,7 @@ foreach ($words AS $word) // attachments $show['getattachments'] = ((can_perform('cangetattach') OR can_perform('caneditattach')) ? true : false); $show['putattachments'] = ((can_perform('canputattach') OR can_perform('caneditattach')) ? true : false); +$show['attachments'] = ($show['getattachments'] OR $show['putattachments']) ? true : false; if ($show['getattachments'] OR $show['putattachments']) { diff --git a/templates/showreport.tpl b/templates/showreport.tpl index e9903fa..b347a2a 100644 --- a/templates/showreport.tpl +++ b/templates/showreport.tpl @@ -1,8 +1,11 @@ $doctype + + $headinclude + Bug Report $bug[bugid] - $bug[summary] $header -
+ @@ -160,6 +163,12 @@ $customfields New Reply style="margin-top: 15px">Automatic Action: + +
+
+ +
[Show Bug History]
+
[$favouritetext]
@@ -176,67 +185,49 @@ $customfields -
[Show Bug History] [$favouritetext]
+

- - - - - - - - + +
Attachments
+ + + + + + + - - - - -
Attachments [New]Votes
+ $attachments - -
[Add New Attachment]
- -
-
- - - - - - - - - - - + + + - - - + - - - + + + + +
Votes for this Bug
- Votes for this Bug: $vote[votefor] ($vote[forpercent]%)
- Votes against this bug: $vote[voteagainst] ($vote[againstpercent]%)
- Total Votes: $vote[total] -
-
+ +
+ For: $vote[votefor] ($vote[forpercent]%)
+ Against: $vote[voteagainst] ($vote[againstpercent]%)
+ Total: $vote[total] +
+ Your Vote
+ + Vote For (+1)
+ Vote Against (-1)
- Vote For (+1)
- Vote Against (-1)
- - - -
+
$comments -
[New Comment]
- $footer \ No newline at end of file diff --git a/templates/showreport_attachment.tpl b/templates/showreport_attachment.tpl index ca46849..d7da2c5 100644 --- a/templates/showreport_attachment.tpl +++ b/templates/showreport_attachment.tpl @@ -1,9 +1,8 @@ - - - style="text-decoration: line-through">$attachment[filename] posted by $attachment[user] ($attachment[date]) -
+
+ style="text-decoration: line-through" title="Posted by $attachment[user]\\n($attachment[date])">$attachment[filename] + [Edit] $attachment[description] -
- - \ No newline at end of file + +
+ diff --git a/templates/style.css b/templates/style.css index 60d65b2..73a31d7 100644 --- a/templates/style.css +++ b/templates/style.css @@ -18,6 +18,17 @@ body background-color: rgb(102, 102, 102); } +a +{ + color: rgb(0, 0, 0); + text-decoration: underline; +} + + a:hover, .tlabel a:hover + { + color: /*rgb(0, 51, 64)*/ rgb(64, 102, 112); + } + .error { color: rgb(255, 0, 0); @@ -68,7 +79,7 @@ body #tabbar .tab:hover { - background-color: rgb(255, 255, 255); + background-color: rgb(191, 204, 207); text-decoration: underline; } @@ -78,6 +89,7 @@ body border-bottom: none; padding-bottom: 5px; font-weight: bold; + color: rgb(0, 51, 64); } #content @@ -114,6 +126,11 @@ body padding-left: 4px; } + .tlabel a + { + color: rgb(255, 255, 255); + } + .tdata { width: 35%; @@ -127,6 +144,35 @@ body font-weight: bold; } +.thead +{ + font-weight: bold; + background-color: rgb(51, 51, 51); + color: rgb(255, 255, 255); + padding-left: 4px; +} + + .thead a + { + color: rgb(255, 255, 255); + text-decoration: none; + } + + .thead a:hover + { + text-decoration: underline; + } + +.tmiddle +{ + background-color: rgb(255, 255, 255); +} + +.form +{ + display: inline; +} + #copyright { text-align: center; diff --git a/templates/stylevars.txt b/templates/stylevars.txt index 36c1119..8726e2e 100644 --- a/templates/stylevars.txt +++ b/templates/stylevars.txt @@ -30,7 +30,7 @@ Comments are only valid in C++ style (the type of comment this is). border: 0; spacing: 2; -padding: 3; +padding: 2; /* page elements */ -- 2.43.5