From c668b72dac8e575ade90da382bdb8f034787ff2b Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Thu, 22 Jan 2015 16:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/system_log/index.html.erb | 50 +++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/app/views/system_log/index.html.erb b/app/views/system_log/index.html.erb index f5316c26b..edef8e023 100644 --- a/app/views/system_log/index.html.erb +++ b/app/views/system_log/index.html.erb @@ -3,27 +3,49 @@ @nav_dispaly_main_project_label = 1 @nav_dispaly_main_contest_label = 1 %> <% @nav_dispaly_forum_label = 1%> -

日志

-
- - -
-
- <%=link_to '所有日志', :action=>:index %> | - <%=link_to '清空日志', {:action=>:clear}, {:confirm => '确认清除所有日志?'} %> | - <%=link_to_function '刷新', 'window.location.reload();' %> + + +
+ <%=link_to l(:label_log_detail), system_log_path %> | + <%=link_to l(:label_log_delete_log), system_log_clear_path, {:confirm => l(:label_log_delete_confirm),:day=>params[:day].nil? ? Time.now.strftime("%Y-%m-%d") : params[:day]}%> | + <%=link_to l(:label_log_access_analysis), system_log_access_analysis_path %> | + <%=link_to l(:label_log_time_analysis), system_log_time_analysis_path %> | + <%=link_to_function l(:label_log_refresh), 'redo()' %> +
+
-
  
-<%= paginate @logs %>
+
  
+
+<%= paginate @logs unless @logs.empty? %>
+ <% unless @logs.empty? %> + + <% @logs.each do |log| %> <% unless log.blank? %> -

<%= raw log %>


+ <% end %> <%end %> - -<%= paginate @logs %> \ No newline at end of file +
<%=l(:label_log_detail)%>
<%= raw log %>
+ <%end %> +<%= paginate @logs unless @logs.empty? %> +
\ No newline at end of file