You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/04/11 11:35:43 UTC

svn commit: r1324669 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html

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">