r334: Styled bug history page
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 1 Aug 2005 21:22:59 +0000 (21:22 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 1 Aug 2005 21:22:59 +0000 (21:22 +0000)
showhistory.php
templates/history.tpl
templates/history_group.tpl

index e625d71a1897a50d7fb3d0853bd9c427b7508926..1fcf96a4626923241cc50c488c823be826ca00be 100644 (file)
@@ -99,7 +99,7 @@ foreach ($logs AS $dateline => $logitems)
                }
        }
        
-       $log['messages'] = implode("</div>\n<div>", $messages);
+       $log['messages'] = implode("<br />\n", $messages);
        
        eval('$history .= "' . $template->fetch('history_group') . '";');
 }
index bf2668966e34c45f3181d463d4fd0743d7e683ac..083f9d6d50e1f6fb1979edd1247a81e056d09fd1 100644 (file)
@@ -1,5 +1,10 @@
 $doctype
+<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]">
+<head>
 $headinclude
+       <title>Bug History - $bug[summary]</title>
+</head>
+
 $header
 
 <h2>History for <em>$bug[summary]</em> (bugid: $bug[bugid])</h2>
index 4db4e6c46d85480327e9219cbd8409bf7fc6998a..9c1c6c5abbbf562a153620a27772bb493236b673 100644 (file)
@@ -1,26 +1,25 @@
-<table border="1" cellspacing="2" cellpadding="4" width="100%">
-<tr style="background-color: #EEEEEE">
-       <td width="50%" rowspan="2">
-               <strong><span style="float: right">$log[date]</span>
-               History Entry (entryid: $log[historyid])</strong>
-               <div>
-                       <span style="float: right">$log[user]</span>
-                       Bug #$log[bugid]
-               </div>
-       </td>
-       <td colspan="3"><strong>Changes</strong></td>
-</tr>
-<tr style="background-color: #EEEEEE">
-       <td width="20%">Field</td>
-       <td width="15%">Initial</td>
-       <td width="15%">Final</td>
-</tr>
-<tr>
-       <td rowspan="$rowspan" valign="top">
-               <div>$log[messages]</div>
-       </td>
-       <if condition="$show['changes']">$changes<else /><td rowspan="$rowspan" colspan="3"><em>No logged changes</em></td></if>
-</tr>
-</table>
+<div class="tborder" style="padding: 1px">
+       <div class="thead" style="padding: $stylevar[padding]px; margin-bottom: 1px">
+               <span style="float: right">$log[date]</span>
+               $log[user]
+       </div>
+       <div class="tmiddle" style="padding: $stylevar[padding]px; margin-bottom: 1px">
+               $log[messages]
+
+               <if condition="$show['changes']">
+               <table cellspacing="$stylevar[spacing]" cellpadding="$stylevar[padding]" border="$stylevar[border]" width="100%" style="margin-top: 5px">
+               <thead>
+                       <tr class="extrabg">
+                               <td>Field</td>
+                               <td>Old Value</td>
+                               <td>New Value</td>
+                       </tr>
+               </thead>
+$changes
+               </table>
+               </if>
+       </div>
+</div>
+
 <br />