Project

General

Profile

Defect #15191 » html_validation_patch.diff

Ksenia Altbregen, 2013-10-24 15:02

View differences:

app/helpers/queries_helper.rb (revision 1298)
23 23
  end
24 24

  
25 25
  def filters_options(query)
26
    options = [[]]
26
    options = [[' '.html_safe, ""]]
27 27
    options += query.available_filters.map do |field, field_options|
28 28
      [field_options[:name], field]
29 29
    end
app/helpers/application_helper.rb (revision 1298)
380 380
    if @project
381 381
      link_to(text, {:controller => 'activities', :action => 'index', :id => @project, :from => User.current.time_to_date(time)}, :title => format_time(time))
382 382
    else
383
      content_tag('acronym', text, :title => format_time(time))
383
      content_tag('abbr', text, :title => format_time(time))
384 384
    end
385 385
  end
386 386

  
app/views/users/_mail_notifications.html.erb (revision 1298)
11 11
  <%= render_project_nested_lists(@user.projects) do |project|
12 12
        content_tag('label', 
13 13
          check_box_tag(
14
            'notified_project_ids[]',
15
             project.id,
16
             @user.notified_projects_ids.include?(project.id)
14
            "notified_project_ids[]",
15
            project.id,
16
            @user.notified_projects_ids.include?(project.id),
17
            :id => "notified_project_ids_#{project.id}"
17 18
          ) + ' ' + h(project.name)
18 19
        )
19 20
      end %>
app/views/issues/index.html.erb (revision 1298)
30 30
            <td><label for='group_by'><%= l(:field_group_by) %></label></td>
31 31
            <td><%= select_tag('group_by',
32 32
                               options_for_select(
33
                                 [[]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]},
33
                                 [['&nbsp;'.html_safe, ""]] + @query.groupable_columns.collect {|c| [c.caption, c.name.to_s]},
34 34
                                 @query.group_by)
35 35
                       ) %></td>
36 36
          </tr>
(1-1/2)