diff --git a/app/views/statistics/_statistics_list.html.erb b/app/views/statistics/_statistics_list.html.erb index e9a4a86d0..54551cb8c 100644 --- a/app/views/statistics/_statistics_list.html.erb +++ b/app/views/statistics/_statistics_list.html.erb @@ -14,7 +14,7 @@ <% end %>
- <%= link_to "#{statistic.name}", statistic %> + <%= link_to "#{statistic.name}", statistic ,:class => "color-grey3" %>

<%= statistic.description.try(:html_safe) %>

<%= render :partial => 'attachments',:locals => {:attachments => statistic.try(:attachments)} %> diff --git a/app/views/statistics/show.html.erb b/app/views/statistics/show.html.erb index 98a6b96ee..953e591ad 100644 --- a/app/views/statistics/show.html.erb +++ b/app/views/statistics/show.html.erb @@ -3,24 +3,22 @@ '/editormd/lib/flowchart.min.js','/editormd/lib/jquery.flowchart.min.js','/editormd/editormd.js' %>
- - <%= @statistic.name %> + +
+

<%= @statistic.name %>

+

<%= @statistic.creator.show_name %><%= format_time @statistic.created_at %>

+
<% 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 %>
-
- +
-
- - <%= format_time @statistic.created_at %> -
<%# 附件局部刷新 %> <% if @attachments.present? %>
@@ -30,9 +28,6 @@
<% end %> -
- -