详情有返回按钮
This commit is contained in:
parent
1409995e66
commit
64ec418376
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue