diff --git a/app/views/bids/_list_projects.html.erb b/app/views/bids/_list_projects.html.erb index 38e2ece34..d7611e8b7 100644 --- a/app/views/bids/_list_projects.html.erb +++ b/app/views/bids/_list_projects.html.erb @@ -124,14 +124,28 @@
贴心小提示:
+亲,在这里我们的作业将以项目的形式提交,如果小伙伴们还没有创建项目,请先创建一个项目。项目创建成功后,就可以再 + 回到这里来提交作业哦~ 这样在作业提交后,老师就可以随时关注你的作业进展啦~祝使用愉快^^
+<%= l(:label_homework_project) %>(<%= @bidding_project.count%>) | - <% if User.current.logged? %> +<%= l(:label_homework_project) %>(<%= @bidding_project.count%>) |
- <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %>
+ <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ?', 5, 7)).size >0) %>
+
<%= toggle_link l(:label_commit_homework), 'put-bid-form' %>
<% end %>
- |
- <% end %>
+