From ba49e04d944aae07b8b974ac5dc5e4629860c068 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 11 Jul 2005 03:08:41 +0000 Subject: [PATCH] r315: - Changed trackerhome.tpl to use stylevars - Moved $show[] stuff into global.php; rendered in header.tpl --- global.php | 4 ++++ index.php | 2 -- templates/header.tpl | 11 +++++++++-- templates/stylevars.txt | 2 +- templates/trackerhome.tpl | 2 +- templates/trackerhome_bits.tpl | 5 ++++- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/global.php b/global.php index b0c29f0..d984250 100755 --- a/global.php +++ b/global.php @@ -24,6 +24,10 @@ $datetime = $datef->format('l, F j, Y g:i A'); $year = $datef->format('Y'); $version = $bugsys->options['trackerversion']; +$show['admin'] = (bool)can_perform('canadminpanel'); +$show['newreport'] = (bool)can_perform('cansubmitbugs'); +$show['search'] = (bool)can_perform('cansearch'); + // ################################################################### // do style vars if (($raw = @file_get_contents('./templates/stylevars.txt')) !== false) diff --git a/index.php b/index.php index 2779cd8..9d1b493 100644 --- a/index.php +++ b/index.php @@ -63,8 +63,6 @@ while ($bug = $db->fetch_array($bugs_fetch)) $db->free_result($bugs_fetch); -$show['newreport'] = ((can_perform('cansubmitbugs')) ? true : false); - eval('$template->flush("' . $template->fetch('TRACKERHOME') . '");'); /*=====================================================================*\ diff --git a/templates/header.tpl b/templates/header.tpl index baf25b8..7f0ceb3 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -7,10 +7,17 @@
Listing - New Bug + + New Bug + Bug Display - Search + + Search + userinfo['userid']">userctrl.php">My Controlslogin.php">Login/Register + + Admin + Help
diff --git a/templates/stylevars.txt b/templates/stylevars.txt index 3cfd4b8..bccbc24 100644 --- a/templates/stylevars.txt +++ b/templates/stylevars.txt @@ -29,7 +29,7 @@ Comments are only valid in C++ style (the type of comment this is). /* table elements */ border: 0; -spacing: 1; +spacing: 2; padding: 3; normal-width: 100%; diff --git a/templates/trackerhome.tpl b/templates/trackerhome.tpl index 3b61bd2..2329be9 100644 --- a/templates/trackerhome.tpl +++ b/templates/trackerhome.tpl @@ -2,7 +2,7 @@ $doctype $headinclude $header - +
diff --git a/templates/trackerhome_bits.tpl b/templates/trackerhome_bits.tpl index e8d8aa6..281d877 100644 --- a/templates/trackerhome_bits.tpl +++ b/templates/trackerhome_bits.tpl @@ -1,3 +1,5 @@ + +; font-style: italic"> - \ No newline at end of file + + -- 2.43.5
ID Summary/Reporter
$bug[bugid] @@ -16,4 +18,5 @@
$bug[lastposttime]
by $bug[lastpost]