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