Changeset 1276

Show
Ignore:
Timestamp:
09/29/06 08:36:25 (2 years ago)
Author:
pdcawley
Message:

Ah... it turns out that the issue I had with an earlier version of the
image_path deprecation is no longer with us, but there were places
where we were doing the old, stupid thing.

That's been fixed now, so no more deprecation warnings. Huzzah!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • experimental/restful/app/helpers/admin/base_helper.rb

    r1215 r1276  
    5454 
    5555  def link_to_show(record) 
    56     link_to image_tag('go'), :action => 'show', :id => record.id 
     56    link_to image_tag('go.png'), :action => 'show', :id => record.id 
    5757  end 
    5858 
    5959  def link_to_edit(record) 
    60     link_to image_tag('go'), :action => 'edit', :id => record.id 
     60    link_to image_tag('go.png'), :action => 'edit', :id => record.id 
    6161  end 
    6262 
    6363  def link_to_destroy(record) 
    64     link_to image_tag('delete'), :action => 'destroy', :id => record.id 
     64    link_to image_tag('delete.png'), :action => 'destroy', :id => record.id 
    6565  end 
    6666 
  • experimental/restful/app/views/admin/comments/list.rhtml

    r1233 r1276  
    2121      <td class="field"><%= image_tag 'checked.gif' %> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %></td> 
    2222      <td class="field"><%=h comment.email %></td> 
    23       <td class="field"><%=link_to truncate((comment.body).strip_html), :action => 'show', :id => comment.id %> <%= link_to_permalink comment,image_tag('go') %></td> 
     23      <td class="field"><%=link_to truncate((comment.body).strip_html), :action => 'show', :id => comment.id %> <%= link_to_permalink comment,image_tag('go.png') %></td> 
    2424      <td class="field"><%=h comment.ip %></td> 
    2525      <td class="field"><%=h distance_of_time_in_words_to_now(comment.created_at) %></td> 
  • experimental/restful/app/views/admin/content/_articles.rhtml

    r1233 r1276  
    1010<% for article in @articles %> 
    1111<tr <%= alternate_class %>> 
    12   <td><%= (article.published?) ? image_tag('checked.gif') : image_tag('x-ed.gif') %> <%= link_to h(article.title), {:action => "show", :id => article.id} %> <%= link_to_permalink(article,image_tag('go')) %> </td> 
     12  <td><%= (article.published?) ? image_tag('checked.gif') : image_tag('x-ed.gif') %> <%= link_to h(article.title), {:action => "show", :id => article.id} %> <%= link_to_permalink(article,image_tag('go.png')) %> </td> 
    1313  <td><%= distance_of_time_in_words_to_now article.published_at %> ago</td> 
    1414  <td><%= link_to pluralize(article.comments.size, 'comment'), :controller => '/admin/comments', :article_id => article, :action => 'list' %></td> 
  • experimental/restful/app/views/admin/feedback/_item.rhtml

    r1257 r1276  
    1414  <td class="field"><%=h item.ip %></td> 
    1515  <td class="field"><%=h distance_of_time_in_words_to_now(item.created_at) %> ago</td> 
    16   <td class="field"><%= link_to image_tag('delete'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] },  :confirm => "Are you sure?", :post => true %></td> 
     16  <td class="field"><%= link_to image_tag('delete.png'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] },  :confirm => "Are you sure?", :post => true %></td> 
    1717</tr> 
  • experimental/restful/app/views/admin/pages/_pages.rhtml

    r1233 r1276  
    99<% for page in @pages %> 
    1010<tr <%= alternate_class %>> 
    11   <td><%= link_to page.name, {:action => "show", :id => page.id} %> <%= link_to_permalink(page,image_tag('go')) %></td> 
     11  <td><%= link_to page.name, {:action => "show", :id => page.id} %> <%= link_to_permalink(page,image_tag('go.png')) %></td> 
    1212  <td><%= page.title %></td> 
    1313  <td><%= distance_of_time_in_words_to_now page.created_at %> ago</td> 
  • experimental/restful/app/views/admin/trackbacks/list.rhtml

    r1233 r1276  
    2020    <tr> 
    2121      <td class="field"><%= image_tag 'checked.gif' %> <%= link_to trackback.blog_name, trackback.url %></td> 
    22       <td class="field"><%= link_to truncate(trackback.title), :action => "show", :id => trackback.id %> <%= link_to_permalink trackback.article,image_tag('go') %></td> 
     22      <td class="field"><%= link_to truncate(trackback.title), :action => "show", :id => trackback.id %> <%= link_to_permalink trackback.article,image_tag('go.png') %></td> 
    2323      <td class="field"><%=h truncate(trackback.excerpt) %></td> 
    2424      <td class="field"><%=h trackback.ip %></td>