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/11/14 15:38:42 UTC

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

Author: gjm
Date: Wed Nov 14 14:38:41 2012
New Revision: 1409216

URL: http://svn.apache.org/viewvc?rev=1409216&view=rev
Log:
adding dismiss functionality to alert messages - towards #252 (from olemis)

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=1409216&r1=1409215&r2=1409216&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Wed Nov 14 14:38:41 2012
@@ -41,6 +41,8 @@
         type="text/javascript"></script>
     <script src="${href.chrome('dashboard/js/bootstrap-transition.js')}"
         type="text/javascript"></script>
+    <script src="${href.chrome('dashboard/js/bootstrap-alert.js')}"
+        type="text/javascript"></script>
     <script src="${href.chrome('dashboard/js/bootstrap-dropdown.js')}"
         type="text/javascript"></script>
     <script src="${href.chrome('dashboard/js/bootstrap-tooltip.js')}"
@@ -243,14 +245,16 @@
             </div>
           </div -->
           <div class="span12" py:if="chrome.warnings or chrome.notices">
-            <div id="warning" py:if="chrome.warnings" class="alert">
+            <div id="warning" py:if="chrome.warnings" class="alert fade in">
+              <button type="button" class="close" data-dismiss="alert">&times;</button>
               <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">
+            <div id="notice" py:if="chrome.notices" class="alert alert-success fade in">
+              <button type="button" class="close" data-dismiss="alert">&times;</button>
               <py:choose test="len(chrome.notices)">
                 <span class="label label-success">Success</span>
                 <py:when test="1">${chrome.notices[0]}</py:when>