incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1324669 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
Date Wed, 11 Apr 2012 09:35:43 GMT
Author: gjm
Date: Wed Apr 11 09:35:43 2012
New Revision: 1324669

URL: http://svn.apache.org/viewvc?rev=1324669&view=rev
Log:
bloodhound theme: Messages (notice and warning) render Bootstrap CSS for labels and alerts

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1324669&r1=1324668&r2=1324669&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Wed
Apr 11 09:35:43 2012
@@ -218,18 +218,21 @@
         </div>
         <div style="text-align: right;" class="span3"></div>
       </div>
-      <div id="warning" py:if="chrome.warnings" class="system-message">
-        <py:choose test="len(chrome.warnings)">
-          <strong>Warning:</strong>
-          <py:when test="1">${chrome.warnings[0]}</py:when>
-          <py:otherwise><ul><li py:for="warning in chrome.warnings">$warning</li></ul></py:otherwise>
-        </py:choose>
-      </div>
-      <div id="notice" py:if="chrome.notices" class="system-message">
-        <py:choose test="len(chrome.notices)">
-          <py:when test="1">${chrome.notices[0]}</py:when>
-          <py:otherwise><ul><li py:for="notice in chrome.notices">$notice</li></ul></py:otherwise>
-        </py:choose>
+      <div class="span12" py:if="chrome.warnings or chrome.notices">
+        <div id="warning" py:if="chrome.warnings" class="alert">
+          <py:choose test="len(chrome.warnings)">
+            <span class="label label-warning">Warning</span>
+            <py:when test="1">${chrome.warnings[0]}</py:when>
+            <py:otherwise><ul><li py:for="warning in chrome.warnings">$warning</li></ul></py:otherwise>
+          </py:choose>
+        </div>
+        <div id="notice" py:if="chrome.notices" class="alert alert-success">
+          <py:choose test="len(chrome.notices)">
+            <span class="label label-success">Success</span>
+            <py:when test="1">${chrome.notices[0]}</py:when>
+            <py:otherwise><ul><li py:for="notice in chrome.notices">$notice</li></ul></py:otherwise>
+          </py:choose>
+        </div>
       </div>
       ${select('*|text()|comment()')}
       <div class="row">



Mime
View raw message