[bugzilla-gnome-org-customizations] Add a custom "My bugs" icon to front page (link to DescribeUser)



commit 4311791ff03288bcb8c879b215d8ea61a716c3f6
Author: Andre Klapper <a9016009 gmx de>
Date:   Fri Feb 13 23:13:23 2015 +0100

    Add a custom "My bugs" icon to front page (link to DescribeUser)
    
    Advertise better the DescribeUser page which lists bugs and
    patches a user reported and assigned to by adding a link to
    the three big default icons on the front page.
    
    Icon by Jakub Steiner.
    
    Bug 744445

 .../template/en/default/hook/index-outro.html.tmpl |    5 -----
 .../template/en/default/index.html.tmpl            |    6 ++++++
 skins/contrib/Gnome/index.css                      |    2 ++
 skins/contrib/Gnome/index/my-bugs.png              |  Bin 0 -> 4278 bytes
 4 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/extensions/Browse/template/en/default/hook/index-outro.html.tmpl 
b/extensions/Browse/template/en/default/hook/index-outro.html.tmpl
index 768b122..269e454 100644
--- a/extensions/Browse/template/en/default/hook/index-outro.html.tmpl
+++ b/extensions/Browse/template/en/default/hook/index-outro.html.tmpl
@@ -6,11 +6,6 @@
 
   <div id="commonqueries">
     <h2>Common links</h2>
-    [% IF user.id %]
-      <div>
-        <a href="page.cgi?id=describeuser.html">Reported by and assigned to me</a>
-      </div>
-    [% END %]
     <div>
       <a href="buglist.cgi?chfield=%5BBug%20creation%5D&amp;chfieldfrom=5d">Created in last 5 days</a>
     </div>
diff --git a/extensions/TemplateOverrides/template/en/default/index.html.tmpl 
b/extensions/TemplateOverrides/template/en/default/index.html.tmpl
index db13ede..d6bb45d 100644
--- a/extensions/TemplateOverrides/template/en/default/index.html.tmpl
+++ b/extensions/TemplateOverrides/template/en/default/index.html.tmpl
@@ -71,6 +71,12 @@
 
         <div class="bz_common_actions">
           <ul>
+            [% IF user.id %]
+            <li>
+              <a id="my_bugs" href="page.cgi?id=describeuser.html">
+              <span>My [% terms.Bugs %]</span></a>
+            </li>
+            [% END %]
             <li>
               <a id="enter_bug" href="enter_bug.cgi"><span>File
               [%= terms.aBug %]</span></a>
diff --git a/skins/contrib/Gnome/index.css b/skins/contrib/Gnome/index.css
index 15a8164..885fef5 100644
--- a/skins/contrib/Gnome/index.css
+++ b/skins/contrib/Gnome/index.css
@@ -6,6 +6,8 @@
  * defined by the Mozilla Public License, v. 2.0.
  */
 
+    /* link to DescribeUser - bug 744445 */
+    #my_bugs   { background: url(index/my-bugs.png)     no-repeat; }
     /* 1:1 copy from standard skin so BZ picks up custom frontpage images - bug 744236 */
     #enter_bug { background: url(index/file-a-bug.png)     no-repeat; }
     #query     { background: url(index/search.png)  no-repeat; }
diff --git a/skins/contrib/Gnome/index/my-bugs.png b/skins/contrib/Gnome/index/my-bugs.png
new file mode 100644
index 0000000..85474bd
Binary files /dev/null and b/skins/contrib/Gnome/index/my-bugs.png differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]