详情有返回按钮

This commit is contained in:
daiao 2018-02-09 18:51:47 +08:00
parent 1409995e66
commit 64ec418376
1 changed files with 1 additions and 1 deletions

View File

@ -8,8 +8,8 @@
<P class="color-grey3 f16 mb5"><%= @statistic.name %></P>
<p class="f14"><span class="mr20"><%= @statistic.creator.show_name %></span><span><%= format_time @statistic.created_at %></span></p>
</div>
<%= link_to '返回', statistics_path ,:class=>"grey_btn fr mr45 ml15", :style=>"padding:4px 10px" %>
<% if User.current.id == @statistic.user_id || User.current.admin? %>
<%= link_to '返回', statistics_path ,:class=>"grey_btn fr mr45 ml15", :style=>"padding:4px 10px" %>
<%= link_to '编辑', edit_statistic_path(@statistic) ,:class => "submit_btn fr" %>
<% end %>
</div>