You are here: Home > Latest news from Darcs > Converts PNG images to GIF to satisfy MSIE 6

Revision 20080430215815-9043f-055238...

Converts PNG images to GIF to satisfy MSIE 6

app/helpers/application_helper.rb
app/views/report/list.rhtml
app/views/wiki/_show_event.rhtml
app/views/wiki/_show_feature.rhtml
test/acceptance/main_page_test.rb

Changes to application_helper.rb

44
                           :page_name => @page.name, :locale => @locale,
                           :page_name => @page.name, :locale => @locale,
44
45
                           :format => 'xml'),
                           :format => 'xml'),
45
46
          :class => 'rss') do
          :class => 'rss') do
46
47
        b << image_tag("rss.png", :border => 0, :class => 'rss',
        b << image_tag("rss.gif", :border => 0, :class => 'rss',
47
48
                                  :alt => 'Changes to %s' / @page.name) 
                                  :alt => 'Changes to %s' / @page.name) 
48
49
      end unless @page.nil?
      end unless @page.nil?
49
50
      b.div(:id => 'crumbs') do
      b.div(:id => 'crumbs') do
50
19 more lines
70
  
  
70
71
  def parsing_error_box
  def parsing_error_box
71
72
    content_tag(:div,
    content_tag(:div,
72
73
                  image_tag('error.png') +
                  image_tag('error.gif') +
73
74
                  content_tag(:p, ('The following wiki code contains an ' +
                  content_tag(:p, ('The following wiki code contains an ' +
74
75
                                   'error that prevents it from being ' +
                                   'error that prevents it from being ' +
75
76
                                   'correctly formatted.').t),
                                   'correctly formatted.').t),
76

Changes to list.rhtml

1
<div class='channel-title'>
<div class='channel-title'>
1
2
  <%= link_to( image_tag('rss.png', :border => 0, :class => 'rss'),
  <%= link_to( image_tag('rss.gif', :border => 0, :class => 'rss'),
2
3
               { :controller => 'report', :action => 'list', :reporter => @name,
               { :controller => 'report', :action => 'list', :reporter => @name,
3
4
                 :format => 'xml', :locale => @locale },
                 :format => 'xml', :locale => @locale },
4
5
               :class => 'feed' )
               :class => 'feed' )
5

Changes to _show_event.rhtml

1
<%= image_tag 'calendar.png' -%>
<%= image_tag 'calendar.gif' -%>
1
2
<p>
<p>
2
3
  <%= 'This event was planned for'.t -%>
  <%= 'This event was planned for'.t -%>
3
4
  <%= @page.happens_at.localize('%d %B %Y (%A)') -%>
  <%= @page.happens_at.localize('%d %B %Y (%A)') -%>
4

Changes to _show_feature.rhtml

1
<%= image_tag(@page.done? ? 'done.png' : 'not-done.png') %>
<%= image_tag(@page.done? ? 'done.gif' : 'not-done.gif') %>
1
2
<p><%= 'This feature is'.t + ' ' + (@page.done? ? 'done'.t : 'not done'.t) %></p>
<p><%= 'This feature is'.t + ' ' + (@page.done? ? 'done'.t : 'not done'.t) %></p>
2

Changes to main_page_test.rb

22
  def test_report_html
  def test_report_html
22
23
    open '/report/subversion/en'
    open '/report/subversion/en'
23
24
    assert_text_present 'Latest news from Subversion'
    assert_text_present 'Latest news from Subversion'
24
25
    assert_element_present "//a[@href = '/report/subversion/en.xml']/img[starts-with(@src, '/images/rss.png')]"
    assert_element_present "//a[@href = '/report/subversion/en.xml']/img[starts-with(@src, '/images/rss.gif')]"
25
26
  end
  end
26
27
  
  
27
28
  def test_subversion_on_main
  def test_subversion_on_main
28