From 8039f89d92d8464ffd5dcb448fc400227356f8ce Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 20 Feb 2017 14:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E9=A1=B9=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/training_tasks/_all_list.html.erb | 11 +-- .../training_tasks/_content_list.html.erb | 75 ++++++++----------- app/views/training_tasks/index.html.erb | 53 +++++++++++++ app/views/training_tasks/index.js.erb | 3 + db/schema.rb | 2 +- 5 files changed, 89 insertions(+), 55 deletions(-) create mode 100644 app/views/training_tasks/index.js.erb diff --git a/app/views/training_tasks/_all_list.html.erb b/app/views/training_tasks/_all_list.html.erb index 501c25514..59549283d 100644 --- a/app/views/training_tasks/_all_list.html.erb +++ b/app/views/training_tasks/_all_list.html.erb @@ -1,12 +1,3 @@ <% tasks.each do |task| -%> <%= render :partial => 'content_list', :locals => {:activity => task, :user_activity_id => task.id} %> -<% end %> - -
<%= format_time(activity.created_at) %>发布
+<%= format_time(activity.updated_at) %>更新
+<%= format_time(activity.created_at) %> 发布
-<%= format_time(activity.updated_at) %> 更新
-完成任务后提交代码,若通过系统测试,将为你发送下一个任务,祝你早日通关,加油!
+所有<%= @training_tasks_count %> |
+ + | + |
---|