bloodhound-mq / t162 / t162_r1433074_bootstrap_revgraph.diff

# HG changeset patch
# Parent 9bd4caf1c12acb75fa7d6e2e7b661cd04f3e6d2c
BH Trac #162 : Rules for revision log to match position of revision graph

diff -r 9bd4caf1c12a bloodhound_theme/bhtheme/htdocs/css/browser.css
--- a/bloodhound_theme/bhtheme/htdocs/css/browser.css	Wed Jan 16 01:51:31 2013 -0500
+++ b/bloodhound_theme/bhtheme/htdocs/css/browser.css	Wed Jan 16 01:52:45 2013 -0500
@@ -1,13 +1,3 @@
-#prefs { margin-top: -0.6em }
-* html #prefs { width: 34em } /* Set width only for IE */
-#prefs fieldset { margin: 0; }
-#prefs fieldset label { display: block }
-#prefs .buttons { margin-top: -2.3em }
-#prefs .choice { 
- float: left; 
- margin: 0 .6em 0 .3em;
- border-right: 1px dotted #d7d7d7;
-}
 
 #file-legend { margin-top: 3em; }
 
@@ -207,3 +197,13 @@
 #preview .image-file { overflow: hidden }
 #preview .image-file img { max-width: 100% }
 
+/* Corrections to make list look nice on top of Bootstrap */
+
+.chglist td {
+  line-height: 15px;
+}
+
+.chglist .label {
+  font-size: 80%;
+}
+
diff -r 9bd4caf1c12a bloodhound_theme/bhtheme/theme.py
--- a/bloodhound_theme/bhtheme/theme.py	Wed Jan 16 01:51:31 2013 -0500
+++ b/bloodhound_theme/bhtheme/theme.py	Wed Jan 16 01:52:45 2013 -0500
@@ -105,7 +105,7 @@
         'ticket_preview.html' : ('bh_ticket_preview.html', None),
 
         # Version control
-        'revisionlog.html' : ('bh_revisionlog.html', '_modify_generic_vcs'),
+        'revisionlog.html' : ('bh_revisionlog.html', '_modify_browser'),
         'browser.html' : ('bh_browser.html', '_modify_browser'),
         'dir_entries.html' : ('bh_dir_entries.html', None),
 
@@ -320,18 +320,14 @@
         """
         add_script(req, 'dashboard/js/bootstrap-scrollspy.js')
 
-    def _modify_generic_vcs(self, req, template, data, content_type, is_active):
+    def _modify_browser(self, req, template, data, content_type, is_active):
         """Locate path to file in breadcrumbs area rather than title.
+        Add browser-specific CSS.
         """
         data.update(dict(
                 resourcepath_template='bh_path_links.html',
                 path_depth_limit=2
             ))
-
-    def _modify_browser(self, req, template, data, content_type, is_active):
-        """Locate path to file in breadcrumbs area rather than title.
-        """
-        self._modify_generic_vcs(req, template, data, content_type, is_active)
         add_stylesheet(req, 'theme/css/browser.css')
 
     # INavigationContributor methods
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.