Converts PNG images to GIF to satisfy MSIE 6
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |