Bug 914693 - pushloghtml should show merges expanded by default rather than collapsed by default; r=ted
authorEd Morley <emorley@mozilla.com>
Wed, 11 Sep 2013 23:35:14 +0100
changeset 74 32eb0bbb32803e6bb01f6615901720fba054e59b
parent 73 3eb5c8c73ff140bcfd89b9fad72847f7f73f72c0
child 75 4002538e425d6d157381967dc2408e10ac73a81b
push id24
push useremorley@mozilla.com
push dateThu, 12 Sep 2013 12:40:13 +0000
reviewersted
bugs914693
Bug 914693 - pushloghtml should show merges expanded by default rather than collapsed by default; r=ted
gitweb_mozilla/pushlog.tmpl
gitweb_mozilla_pvt/pushlog.tmpl
--- a/gitweb_mozilla/pushlog.tmpl
+++ b/gitweb_mozilla/pushlog.tmpl
@@ -13,19 +13,17 @@
   // add click handler to the localize dates link
   $('#localize').show().click(function () \{
      $(this).hide();
      $('.date').each(function (i) \{
        $(this).text(new Date($(this).text()).toLocaleString());
      });
      return false;
   });
-  // hide things that should be hidden
-  $('.hidden').hide();
-  // add click handler to unhide hidden things
+  // add click handler to toggle collapsible sections
   $('.expand').click(function () \{
     if ($(this).text() == "[Expand]")
       $(this).text("[Collapse]");
     else
       $(this).text("[Expand]");
     
     var pushid = $(this).attr("class");
     pushid = '.' + pushid.match(/id\d+/);
@@ -58,17 +56,17 @@ pushlog |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
 <a href="{url}file/tip{sessionvars%urlparameter}">files</a>{archives%archiveentry}
 <br/>
 Page {changenav%navpushentry}<br/>
 </div>
 
 <div class="title">{querydescription}</div>
 <table cellspacing="0">
-<tr><th>User<br/>Push date <a href="#" id="localize" style="display:none">[To Local]</a></th><th>Changeset</th><th>Patch author &mdash; Commit message</th></tr>
+<tr><th>User<br/>Push date <a href="#" id="localize">[To Local]</a></th><th>Changeset</th><th>Patch author &mdash; Commit message</th></tr>
 {entries%pushlogentry}
 </table>
 
 <div class="page_nav">
 Page {changenav%navpushentry}
 </div>
 
 {footer}
--- a/gitweb_mozilla_pvt/pushlog.tmpl
+++ b/gitweb_mozilla_pvt/pushlog.tmpl
@@ -13,19 +13,17 @@
   // add click handler to the localize dates link
   $('#localize').show().click(function () \{
      $(this).hide();
      $('.date').each(function (i) \{
        $(this).text(new Date($(this).text()).toLocaleString());
      });
      return false;
   });
-  // hide things that should be hidden
-  $('.hidden').hide();
-  // add click handler to unhide hidden things
+  // add click handler to toggle collapsible sections
   $('.expand').click(function () \{
     if ($(this).text() == "[Expand]")
       $(this).text("[Collapse]");
     else
       $(this).text("[Expand]");
     
     var pushid = $(this).attr("class");
     pushid = '.' + pushid.match(/id\d+/);
@@ -58,17 +56,17 @@ pushlog |
 <a href="{url}tags{sessionvars%urlparameter}">tags</a> |
 <a href="{url}file/tip{sessionvars%urlparameter}">files</a>{archives%archiveentry}
 <br/>
 Page {changenav%navpushentry}<br/>
 </div>
 
 <div class="title">{querydescription}</div>
 <table cellspacing="0">
-<tr><th>User<br/>Push date <a href="#" id="localize" style="display:none">[To Local]</a></th><th>Changeset</th><th>Patch author &mdash; Commit message</th></tr>
+<tr><th>User<br/>Push date <a href="#" id="localize">[To Local]</a></th><th>Changeset</th><th>Patch author &mdash; Commit message</th></tr>
 {entries%pushlogentry}
 </table>
 
 <div class="page_nav">
 Page {changenav%navpushentry}
 </div>
 
 {footer}