Changeset 1276
- Timestamp:
- 09/29/06 08:36:25 (2 years ago)
- Files:
-
- experimental/restful/app/helpers/admin/base_helper.rb (modified) (1 diff)
- experimental/restful/app/views/admin/comments/list.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/content/_articles.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/feedback/_item.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/pages/_pages.rhtml (modified) (1 diff)
- experimental/restful/app/views/admin/trackbacks/list.rhtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
experimental/restful/app/helpers/admin/base_helper.rb
r1215 r1276 54 54 55 55 def link_to_show(record) 56 link_to image_tag('go '), :action => 'show', :id => record.id56 link_to image_tag('go.png'), :action => 'show', :id => record.id 57 57 end 58 58 59 59 def link_to_edit(record) 60 link_to image_tag('go '), :action => 'edit', :id => record.id60 link_to image_tag('go.png'), :action => 'edit', :id => record.id 61 61 end 62 62 63 63 def link_to_destroy(record) 64 link_to image_tag('delete '), :action => 'destroy', :id => record.id64 link_to image_tag('delete.png'), :action => 'destroy', :id => record.id 65 65 end 66 66 experimental/restful/app/views/admin/comments/list.rhtml
r1233 r1276 21 21 <td class="field"><%= image_tag 'checked.gif' %> <%=link_to_unless comment.url.blank?, h(comment.author), comment.url %></td> 22 22 <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> 24 24 <td class="field"><%=h comment.ip %></td> 25 25 <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 10 10 <% for article in @articles %> 11 11 <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> 13 13 <td><%= distance_of_time_in_words_to_now article.published_at %> ago</td> 14 14 <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 14 14 <td class="field"><%=h item.ip %></td> 15 15 <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> 17 17 </tr> experimental/restful/app/views/admin/pages/_pages.rhtml
r1233 r1276 9 9 <% for page in @pages %> 10 10 <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> 12 12 <td><%= page.title %></td> 13 13 <td><%= distance_of_time_in_words_to_now page.created_at %> ago</td> experimental/restful/app/views/admin/trackbacks/list.rhtml
r1233 r1276 20 20 <tr> 21 21 <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> 23 23 <td class="field"><%=h truncate(trackback.excerpt) %></td> 24 24 <td class="field"><%=h trackback.ip %></td>
