diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb index 9386a664..b4c23fd7 100644 --- a/app/views/news/index.html.erb +++ b/app/views/news/index.html.erb @@ -46,7 +46,7 @@ <% end %> --> -
<%= l(:label_no_data) %> diff --git a/app/views/projects/homework.html.erb b/app/views/projects/homework.html.erb index 06d25e41..e015e402 100644 --- a/app/views/projects/homework.html.erb +++ b/app/views/projects/homework.html.erb @@ -1,17 +1,9 @@ - -
<%= l(:label_course_homework_list)%> | -<% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.roles&Role.where('id = ? or id = ?', 3, 7)).size >0))%> - - - <%= link_to(l(:label_course_homework_new), {:controller => 'projects', :action => 'new_homework'}, :class => 'icon icon-add') %> - - - <% end %> | -
- <% if @events_by_day.size >0 %> -
<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>
-<%= image_tag(url_to_avatar(e.event_author), :class => "avatar")%> |
@@ -48,11 +46,10 @@
+<% else %> +
|
diff --git a/app/views/users/_my_joinedcourse.html.erb b/app/views/users/_my_joinedcourse.html.erb index fe96bbf1..1471dfd7 100644 --- a/app/views/users/_my_joinedcourse.html.erb +++ b/app/views/users/_my_joinedcourse.html.erb @@ -1,4 +1,4 @@ -
diff --git a/app/views/users/user_projects.html.erb b/app/views/users/user_projects.html.erb index 57a42742..ca055f1b 100644 --- a/app/views/users/user_projects.html.erb +++ b/app/views/users/user_projects.html.erb @@ -1,10 +1,11 @@
温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~
+<%= watch_projects @state%> - <% unless @memberships.empty? %>