Sha256: 857f26105bcbeb973de0c2697619472cced5d40ab4733c4de84948c9ecb26e28
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
<% render 'admin/shared/product_sub_menu' %> <h1><%= t('review_management_description') %></h1> <% for reviews in [["Unapproved", @unapproved_reviews], ["Approved", @approved_reviews]] %> <h2><%= t(reviews[0]+"_reviews") %></h2> <table cellspacing=6 class="index"> <tr> <th><%= t('date_') %></th> <th><%= t('user') %></th> <th><%= t('product') %></th> <th><%= t('review_content') %></th> <th></th> </tr> <% for review in reviews[1] %> <tr> <td> <%= review.created_at.to_date %> </td> <td> <%= review.name %><%= " (#{review.user.email})" if review.user %> </td> <td> <%= link_to review.product.name, product_path(review.product) %> </td> <td width="50%"> <%= h review.review %> </td> <td> <% unless review.approved %> <%= link_to_with_icon 'tick', t('approve'), {:action => 'approve', :id => review.id} %> <br /> <% end %> <%= link_to_edit review %><br /> <%= link_to_delete review %> </td> </tr> <% end %> </table> <br/> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
synergy_default_theme-1.0.2 | app/views/admin/reviews/index.html.erb |