]> source.dussan.org Git - redmine.git/commitdiff
html5 compliance.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 10:12:26 +0000 (10:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 10:12:26 +0000 (10:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10110 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb
app/views/attachments/_form.html.erb
test/unit/helpers/issues_helper_test.rb

index ece3f78447014aab0b27412ebcc5e452265a860b..1ba4c4635937e52dafaf3396cbd73bcd70e30ac2 100644 (file)
@@ -290,7 +290,7 @@ module IssuesHelper
     unless no_html
       label = content_tag('strong', label)
       old_value = content_tag("i", h(old_value)) if detail.old_value
-      old_value = content_tag("strike", old_value) if detail.old_value and detail.value.blank?
+      old_value = content_tag("del", old_value) if detail.old_value and detail.value.blank?
       if detail.property == 'attachment' && !value.blank? && atta = Attachment.find_by_id(detail.prop_key)
         # Link to the attachment if it has not been removed
         value = link_to_attachment(atta, :download => true, :only_path => options[:only_path])
index dd55fa3f1b9979cb7145f80b20441a0a0081f492..e47c288a9df7f1f98ca7a4b50c773691a2b8e30e 100644 (file)
@@ -8,7 +8,7 @@
 <% end %>
 <span id="attachments_fields">
   <span>
-    <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
+    <%= file_field_tag 'attachments[1][file]', :id => nil, :class => 'file',
           :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');"  -%>
     <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :maxlength => 255, :placeholder => l(:label_optional_description) %>
     <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
index ab81f5a5299919af4caedaa47900311a50c1237b..91c6f5a4e1123cadbfdbb572dd447f92217ab979 100644 (file)
@@ -32,7 +32,8 @@ class IssuesHelperTest < ActionView::TestCase
            :enabled_modules,
            :workflows,
            :custom_fields,
-           :attachments
+           :attachments,
+           :versions
 
   def setup
     super
@@ -104,7 +105,7 @@ class IssuesHelperTest < ActionView::TestCase
         html = show_detail(@detail, false)
 
         assert_include '<strong>% Done</strong>', html
-        assert_include '<strike><i>50</i></strike>', html
+        assert_include '<del><i>50</i></del>', html
       end
     end