Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spacing in views #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions app/views/spree/admin/feedback_reviews/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
<% content_for :page_title do %>
<%= I18n.t("spree.feedback_review_for", review: @review.title) %>
<%= I18n.t("spree.feedback_review_for", review: @review.title) %>
<% end %>

<% content_for :page_actions do %>
<li><%= link_to I18n.t("spree.back_to_reviews"), admin_reviews_path %></li>
<li><%= link_to I18n.t("spree.back_to_reviews"), admin_reviews_path %></li>
<% end %>

<% render 'spree/admin/shared/product_sub_menu' %>

<% if @collection.any? %>
<table class="index">
<colgroup>
<col style="width: 30%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 17%;">
</colgroup>
<thead>
<tr>
<th><%= I18n.t("spree.user") %></th>
<th><%= I18n.t("spree.stars") %></th>
<th><%= I18n.t("spree.date") %></th>
<th class="actions"></th>
</tr>
</thead>
<tbody>
<%- @collection.each do |feedback| -%>
<tr id="<%= dom_id(feedback) %>">
<td><%= l feedback.created_at %></td>
<td><%= feedback.user.try(:login) || I18n.t("spree.anonymous") %></td>
<td><%= feedback.rating %></td>
<td class="actions">
<%= link_to_delete feedback, no_text: true %>
</td>
</tr>
<% end %>
</tbody>
</table>
<table class="index">
<colgroup>
<col style="width: 30%;">
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 17%;">
</colgroup>
<thead>
<tr>
<th><%= I18n.t("spree.user") %></th>
<th><%= I18n.t("spree.stars") %></th>
<th><%= I18n.t("spree.date") %></th>
<th class="actions"></th>
</tr>
</thead>
<tbody>
<%- @collection.each do |feedback| -%>
<tr id="<%= dom_id(feedback) %>">
<td><%= l feedback.created_at %></td>
<td><%= feedback.user.try(:login) || I18n.t("spree.anonymous") %></td>
<td><%= feedback.rating %></td>
<td class="actions">
<%= link_to_delete feedback, no_text: true %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% else %>
<div class="no-objects-found">
<%= I18n.t("spree.no_results") %>
</div>
<div class="no-objects-found">
<%= I18n.t("spree.no_results") %>
</div>
<% end %>
36 changes: 18 additions & 18 deletions app/views/spree/admin/reviews/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<% content_for :page_title do %>
<%= I18n.t("spree.editing_review_for_html", product_name: @review.product.name) %>
<%= I18n.t("spree.editing_review_for_html", product_name: @review.product.name) %>
<% end %>

<% render 'spree/admin/shared/product_sub_menu' %>

<%= form_for([:admin, @review]) do |f| %>
<div class="alpha eight columns">
<% unless @review.title.blank? %>
<h2><%= @review.title %></h2>
<% end %>
<p>
<%= simple_format(@review.review) %>
</p>
</div>
<div class="alpha eight columns">
<% unless @review.title.blank? %>
<h2><%= @review.title %></h2>
<% end %>
<p>
<%= simple_format(@review.review) %>
</p>
</div>

<div class="omega eight columns">
<%= render 'form', f: f %>
</div>
<div class="omega eight columns">
<%= render 'form', f: f %>
</div>

<div class="clear"></div>
<div class="clear"></div>

<fieldset class="no-border-top">
<% if can? :manage, Spree::Review %>
<%= render 'spree/admin/shared/edit_resource_links' %>
<% end %>
</fieldset>
<fieldset class="no-border-top">
<% if can? :manage, Spree::Review %>
<%= render 'spree/admin/shared/edit_resource_links' %>
<% end %>
</fieldset>
<% end %>