Author: rjollos
Date: Thu Nov 14 20:50:52 2013
New Revision: 1542070

URL: http://svn.apache.org/r1542070
Log:
0.8dev: Restore value to button so that Trac functional tests don't fail. Refs 
#387.

The tests failure because there is an assertion on the URL, which contains the 
value of the button. Slightly modified from a patch by Olemis Lang.

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

Modified: 
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_attach_file_form.html
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_attach_file_form.html?rev=1542070&r1=1542069&r2=1542070&view=diff
==============================================================================
--- 
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_attach_file_form.html 
(original)
+++ 
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_attach_file_form.html 
Thu Nov 14 20:50:52 2013
@@ -31,9 +31,9 @@ Arguments:
       py:if="alist.can_create" method="get" action="${alist.attach_href}"
       id="attachfile" style="display: inline-block">
   <input type="hidden" name="action" value="new" />
-  <div class="btn-group">
-    <button type="submit" class="btn" name="attachfilebutton" 
id="attachfilebutton">
-      <i class="icon-file"></i> ${value_of('add_button_title', None) or 
_('Attach file')}
+  <div class="btn-group" py:with="value = value_of('add_button_title', None) 
or _('Attach file');">
+    <button type="submit" class="btn" value="$value" name="attachfilebutton" 
id="attachfilebutton">
+      <i class="icon-file"></i> $value
     </button>
   </div>
 </form>


Reply via email to