Commits

Olemis Lang  committed 5ac694d

BH Theme #172: Sticky implementation for models using Bootstrap affix plugin

  • Participants
  • Parent commits 4283f5e
  • Branches t172_bootstrap_affix

Comments (0)

Files changed (1)

File t172/t172_r1371737_bootstrap_affix_models.diff

 # HG changeset patch
-# Parent 7cf0b17f557afeb9b2748a5524cda6412575cdaa
+# Parent 96adf06cedf2a1965a5a57cf0e5d4f2e46ebc49f
 BH Dashboard #172: Sticky panels in models view using Bootstrap affix plugin
 
+diff -r 96adf06cedf2 bhdashboard/templates/bh_model_view.html
+--- a/bhdashboard/templates/bh_model_view.html	Sat Aug 25 23:50:06 2012 -0400
++++ b/bhdashboard/templates/bh_model_view.html	Thu Aug 30 17:35:20 2012 -0400
+@@ -26,12 +26,13 @@
+       xmlns:i18n="http://genshi.edgewall.org/i18n"
+       xmlns:bh="http://issues.apache.org/bloodhound/wiki/Ui/Dashboard"
+       xmlns:xi="http://www.w3.org/2001/XInclude"
+-      py:strip="">
++      py:strip=""
++      py:with="colspan = 'span8' if bhdb else 'span12'">
+   <xi:include href="widget_macros.html" />
+ 
+-  <div class="${'span8' if bhdb else 'span12'}">
++  <div class="$colspan">
+     <div class="stickyBox">
+-      <div id="overview" class="stickyStatus">
++      <div id="overview" class="stickyStatus $colspan">
+         <div class="whitebox"></div>
+         $heading
+         <br/>
+@@ -58,7 +59,7 @@
+     <script type="text/javascript">
+       setup_sticky_panel('#overview');
+     </script>
+-    <div class="${'' if bhdb else 'span11'}" >
++    <div class="${'span7' if bhdb else 'span11'}" >
+       <div class="well">
+         $description
+         $buttons