]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 72863: Remove ugly table shown when posting/changing a bug
authorolav%bkor.dhs.org <>
Fri, 20 Oct 2006 02:23:16 +0000 (02:23 +0000)
committerolav%bkor.dhs.org <>
Fri, 20 Oct 2006 02:23:16 +0000 (02:23 +0000)
Patch by Olav Vitters <olav@bkor.dhs.org> r+a=justdave

skins/standard/global.css
template/en/default/attachment/created.html.tmpl
template/en/default/attachment/updated.html.tmpl
template/en/default/bug/process/bugmail.html.tmpl
template/en/default/bug/process/results.html.tmpl
template/en/default/filterexceptions.pl

index a2a25c7177618071511b368cd582e86c2fa15945..b00ec851b75a26683c3028c43bc9315d89e2ebb4 100644 (file)
@@ -270,3 +270,13 @@ table#flags td {
     margin: 1em;
     padding: 0.5em 1em;
 }
+
+dt {
+    font-weight: bolder;
+}
+body > dl > dt {
+    border-top: dotted gray thin;
+}
+dl dl > dt {
+    border-top: none;
+}
index 3114b2963cd7e98eec44b0414c851fec84d79014..e6037bcba825d755108c4b571a1a59484c402443 100644 (file)
 
 [% PROCESS global/header.html.tmpl
   title = "Changes Submitted"
-  style = "th { text-align: left; }"
 %]
 
-<table border="1">
-  <tr>
-    <td>
-      <h2>
-        <a title="[% description FILTER html %]" href="attachment.cgi?id=[% attachid %]&amp;action=edit">Attachment #[% attachid %]</a>
-        to <a href="show_bug.cgi?id=[% bugid %]">[% terms.Bug %] #[% bugid %]</a> Created
-      </h2>
+<dl>
+  <dt>
+    <a title="[% description FILTER html %]" href="attachment.cgi?id=[% attachid %]&amp;action=edit">Attachment #[% attachid %]</a>
+    to [% "$terms.bug $bugid" FILTER bug_link(bugid) %] created
+  </dt>
+  <dd>
+    [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = bugid %]
+    [% IF convertedbmp %]
+      <p>
+        <b>Note:</b> [% terms.Bugzilla %] automatically converted your BMP image file to a
+        compressed PNG format.
+      </p>
+    [% END %]
+    [% IF contenttypemethod == 'autodetect' %]
+      <p>
+        <b>Note:</b> [% terms.Bugzilla %] automatically detected the content type
+        <em>[% contenttype %]</em> for this attachment.  If this is
+        incorrect, correct the value by
+        editing the attachment's <a href="attachment.cgi?id=[% attachid %]&amp;action=edit">details</a>.
+      </p>
+    [% END %]
 
-      [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = bugid %]
-      [% IF convertedbmp %]
-        <p>
-          <b>Note:</b> [% terms.Bugzilla %] automatically converted your BMP image file to a 
-          compressed PNG format.
-        </p>
-      [% END %]
-      [% IF contenttypemethod == 'autodetect' %]
-        <p>
-          <b>Note:</b> [% terms.Bugzilla %] automatically detected the content type
-          <em>[% contenttype %]</em> for this attachment.  If this is
-          incorrect, correct the value by
-          editing the attachment's <a href="attachment.cgi?id=[% attachid %]&amp;action=edit">details</a>.
-        </p>
-      [% END %]
-    </td>
-    <td>
-      <a href="show_bug.cgi?id=[% bugid %]">Go back to [% terms.bug %] #[% bugid %]</a>
-    </td>
-  </tr>
-</table>
+    [%# Links to more information about the changed bug. %]
+    [% Hook.process("links") %]
+  </dd>
+</dl>
 
 <p>
 <a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Create
index de56341e0c55c15327f97553c6c3c2e441d7770d..a66b74e176226ca8edfdd7945874e62a23b544ff 100644 (file)
 
 [% PROCESS global/header.html.tmpl
   title = "Changes Submitted"
-  style = "th { text-align: left; }"
 %]
 
-<hr>
-
-<table border="1">
-  <tr>
-    <td>
-      <h2>Changes to
-        <a href="attachment.cgi?id=[% attachid %]&amp;action=edit">attachment [% attachid %]</a>
-        of [% terms.bug %] [%+ bugid %] submitted
-      </h2>
-      [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = bugid %]
-    </td>
-
-    <td>
-      <a href="show_bug.cgi?id=[% bugid %]">Back to [% terms.Bug %] #[% bugid %]</a>
-    </td>
-  </tr>
-</table>
+<dl>
+  <dt>Changes to
+    <a href="attachment.cgi?id=[% attachid %]&amp;action=edit">attachment [% attachid %]</a>
+    of [% "$terms.bug $bugid" FILTER bug_link(bugid) %] submitted
+  </dt>
+  <dd>
+    [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = bugid %]
+    [%# Links to more information about the changed bug. %]
+    [% Hook.process("links") %]
+  </dd>
+</dl>
 
 [% PROCESS global/footer.html.tmpl %]
index 557f091a1d6471e221a8a5374698dbca863b246a..670c2b04e97935d511015372345579a8b5b448c7 100644 (file)
 
 [% mail = SendBugMail(mailing_bugid, mailrecipients) %]
 
+<dl>
 [% PROCESS emails
    description = "Email sent to"
    names = mail.sent
 %]
-<br>
+
 [% PROCESS emails
    description = "Excluding"
    names = mail.excluded
 %]
-<br>
-<center>
-  If you wish to tweak the kinds of mail [% terms.Bugzilla %] sends you, you can
-  <a href="userprefs.cgi?tab=email">change your preferences</a>.
-</center>
-
+</dl>
 
 [%############################################################################%]
 [%# Block for a set of email addresses                                       #%]
 [%############################################################################%]
 
 [% BLOCK emails %]
-  <b>[% description FILTER html %]:</b>
+  <dt>[% description FILTER html %]:</dt>
+  <dd>
   [% IF user.can_see_bug(mailing_bugid) %]
     [% IF names.size > 0 %]
       [%+ FOREACH name = names %]
-        [% name FILTER html %][% ", " UNLESS loop.last() %]
+        <code>[% name FILTER html %]</code>[% ", " UNLESS loop.last() %]
       [% END %]
     [% ELSE %]
       no one
@@ -73,4 +70,5 @@
   [% ELSE %]
     (list of e-mails not available)
   [% END %]
+  </dd>
 [% END %]
index a21858792930830bca4d24e212877932ae4858b7..9265a44dc34faf43b3a630ac27c0544a89da0194 100644 (file)
 
 [% DEFAULT type="bug" %]
 
+[% Link = BLOCK %][% "$terms.Bug $id" FILTER bug_link(id) %][% END %]
+[% link = BLOCK %][% "$terms.bug $id" FILTER bug_link(id) %][% END %]
+
 [%
   title = {
-    'bug' => "Changes submitted for $terms.bug $id" ,
-    'dupe' => "Duplicate notation added to $terms.bug $id" ,
-    'dep' => "Checking for dependency changes on $terms.bug $id" ,
-    'votes' => "$terms.Bug $id confirmed by number of votes" ,
-    'created' => "$terms.Bug $id has been added to the database" ,
-    'move' => "$terms.Bug $id has been moved to another database" ,
-  }
-
-  linktext = {
-    'bug' => "Back To $terms.Bug $id" ,
-    'dupe' => "Go To $terms.Bug $id" ,
-    'dep' => "Go To $terms.Bug $id" ,
-    'votes' => "Go To $terms.Bug $id" ,
-    'created' => "Go To $terms.Bug $id" ,
-    'move' => "Back To $terms.Bug $id" ,
+    'bug' => "Changes submitted for $link" ,
+    'dupe' => "Duplicate notation added to $link" ,
+    'dep' => "Checking for dependency changes on $link" ,
+    'votes' => "$Link confirmed by number of votes" ,
+    'created' => "$Link has been added to the database" ,
+    'move' => "$Link has been moved to another database" ,
   }
 %]
 
-<table border="1">
-  <tr>
-    <td>
-      <h2>[% title.$type %]</h2>
-      [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = id %]
-    </td>
-    <td>
-      <a href="show_bug.cgi?id=[% id %]">[% linktext.$type %]</a>
-      [%# Links to more information about the changed bug. %]
-      [% Hook.process("links") %]
-    </td>
-  </tr>
-</table>
+<dl>
+  <dt>[% title.$type %]</dt>
+  <dd>
+    [% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = id %]
+    [%# Links to more information about the changed bug. %]
+    [% Hook.process("links") %]
+  </dd>
+</dl>
index a2d4b4d2b1f34fb8fc932a88c2a16f11ad2aa016..b88c44757a1231b858db4f7dbf5c3b3bda9ff41e 100644 (file)
 
 'bug/process/results.html.tmpl' => [
   'title.$type', 
-  'id', 
-  'linktext.$type',
+  '"$terms.Bug $id" FILTER bug_link(id)',
+  '"$terms.bug $id" FILTER bug_link(id)',
 ],
 
 'bug/create/create.html.tmpl' => [
   'attachid', 
   'bugid', 
   'contenttype', 
+  '"$terms.bug $bugid" FILTER bug_link(bugid)',
 ],
 
 'attachment/edit.html.tmpl' => [
 
 'attachment/updated.html.tmpl' => [
   'attachid', 
-  'bugid', 
+  '"$terms.bug $bugid" FILTER bug_link(bugid)',
 ],
 
 'attachment/diff-header.html.tmpl' => [