2015-02-11 20:23:50 +08:00
|
|
|
<%= @subject %>
|
|
|
|
<% if @attachments.first || @course_news.first || @bids.first ||
|
2015-06-05 17:17:35 +08:00
|
|
|
@course_journal_messages.first|| @course_messages.first %>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_course_overview)%>
|
|
|
|
<% unless @course_news.first.nil? %>
|
|
|
|
<%= l(:label_course_news) %>
|
|
|
|
(<%= @course_news.count %>)
|
|
|
|
|
|
|
|
|
|
|
|
<% @course_news.each do |course_new|%>
|
|
|
|
|
|
|
|
▪
|
|
|
|
[
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course, :token => @token.value)%>
|
2015-02-06 18:15:08 +08:00
|
|
|
]
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to course_new.author, user_activities_url(course_new.author,:token => @token.value)
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_project_notice) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(course_new.title,length: 30,omission: '...'), news_url(course_new,:token => @token.value)
|
|
|
|
|
|
|
|
|
|
|
|
%> <%= format_time(course_new.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
2015-06-06 09:44:23 +08:00
|
|
|
<% unless @bids.empty? %>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_homework_overview) %><%= @bids.count %>
|
|
|
|
<% unless @bids.first.nil?%>
|
|
|
|
<% @bids.each do |bid| %>
|
|
|
|
▪
|
|
|
|
[
|
|
|
|
|
2015-06-06 09:44:23 +08:00
|
|
|
<%= link_to truncate(bid.course.name,length: 30,omission: '...'),course_url(bid.course, :token => @token.value)
|
2015-02-11 20:23:50 +08:00
|
|
|
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
]
|
|
|
|
|
2015-06-06 09:44:23 +08:00
|
|
|
<%= link_to bid.user, user_activities_url(bid.user,:token => @token.value)
|
2015-02-11 20:23:50 +08:00
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_course_homework) %>
|
|
|
|
|
2015-06-06 09:44:23 +08:00
|
|
|
<%= link_to truncate(bid.name, length: 30,omission: '...'), student_work_index_path(:homework => bid.id,:token => @token.value)
|
2015-02-11 20:23:50 +08:00
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-06-06 09:44:23 +08:00
|
|
|
<%= format_time(bid.created_at) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<!--作业动态 end-->
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless @course_journal_messages.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:view_course_journals_for_messages) %> (<%= @course_journal_messages.count %>)
|
|
|
|
|
|
|
|
|
|
|
|
<% @course_journal_messages.each do |course_journal_message|%>
|
|
|
|
|
|
|
|
[
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course, :token => @token.value)
|
|
|
|
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
]
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to course_journal_message.user, user_activities_url(course_journal_message.user,:token => @token.value)
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_send_course_journals_for_messages) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(course_journal_message.notes,length: 30,omission: '...'), course_feedback_url(course_journal_message.course,:token => @token.value)
|
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= format_time(course_journal_message.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless @course_messages.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:view_borad_course) %>
|
2015-06-09 12:58:54 +08:00
|
|
|
(<%= @course_messages.count %>)
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
<% @course_messages.each do |course_message|%>
|
|
|
|
|
|
|
|
▪
|
|
|
|
[
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course, :token => @token.value)
|
|
|
|
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
]
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to course_message.author, user_activities_url(course_message.author,:token => @token.value)
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_send_course_messages) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(course_message.subject,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id,:token => @token.value)
|
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= format_time(course_message.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless @attachments.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:label_course_attendingcontestwork_download) %>
|
|
|
|
(<%= @attachments.count %>)
|
|
|
|
|
|
|
|
|
|
|
|
<% @attachments.each do |attachment|%>
|
|
|
|
▪[
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course, :token => @token.value)
|
|
|
|
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
]
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to attachment.author, user_activities_url(attachment.author,:token => @token.value)
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_course_file_upload) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course,:token => @token.value)
|
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= format_time(attachment.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</ul><!--课件下载 end-->
|
|
|
|
<% end %>
|
2015-02-11 20:23:50 +08:00
|
|
|
<% end %><!--课程动态 end-->
|
2015-02-06 18:15:08 +08:00
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<% @issues.first || @project_messages.first %>
|
|
|
|
<%= l(:label_project_overview_new)%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<% unless @issues.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:label_issue_tracking) %>
|
|
|
|
(<%= @issues.count %>)
|
|
|
|
|
|
|
|
<% @issues.each do |issue|%>
|
|
|
|
▪
|
|
|
|
[
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(issue.project.name,length: 30,omission: '...'), project_url(issue.project, :token => @token.value)
|
|
|
|
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
]
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to issue.author, user_activities_url(issue.author,:token => @token.value)
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_project_issue) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(issue. subject,length: 30,omission: '...'),issue_url(issue, :token => @token.value)
|
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= format_time(issue.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless @project_messages.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:project_moule_boards_show) %>
|
2015-02-11 20:23:50 +08:00
|
|
|
(<%= @project_messages.count %>)
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<% @project_messages.each do |project_message|%>
|
|
|
|
▪[
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(project_message.project.name,length: 30,omission: '...'), project_url(project_message.project, :token => @token.value)
|
|
|
|
|
|
|
|
%>
|
|
|
|
]
|
2015-02-06 18:15:08 +08:00
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to project_message.author, board_message_url(project_message, :board_id => project_message.board_id,:token => @token.value)
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_send_course_messages) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(project_message. subject,length: 30,omission: '...'),board_message_url(project_message, :board_id => project_message.board_id,:token => @token.value)
|
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= format_time(project_message.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<% unless @user_journal_messages.first.nil? %>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_activities) %>
|
2015-02-11 20:23:50 +08:00
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<%= l(:label_user_message) %>
|
|
|
|
(<%= @user_journal_messages.count %>)
|
|
|
|
|
|
|
|
<% @user_journal_messages.each do |user_journal_message|%>
|
|
|
|
▪
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to user_journal_message.user, user_activities_url(user_journal_message.user,:token => @token.value)
|
|
|
|
|
|
|
|
%>
|
2015-02-06 18:15:08 +08:00
|
|
|
<%= l(:label_show_your_message) %>
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= link_to truncate(user_journal_message.notes,length: 30,omission: '...'), feedback_url(@user,:token => @token.value)
|
|
|
|
|
|
|
|
|
2015-02-06 18:15:08 +08:00
|
|
|
%>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= format_time(user_journal_message.created_on) %>
|
2015-02-06 18:15:08 +08:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
2015-02-11 20:23:50 +08:00
|
|
|
<% end %>
|
|
|
|
<% if @forums.first || @memos.first %>
|
|
|
|
<%= l(:lable_bar_active) %>
|
|
|
|
<% unless @forums.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:label_user_forum) %>
|
|
|
|
(<%= @forums.count %>)
|
|
|
|
|
|
|
|
<% @forums.each do |forum|%>
|
|
|
|
▪
|
|
|
|
|
2015-02-12 00:15:10 +08:00
|
|
|
<%= link_to forum.creator, user_activities_url(forum.creator,:token => @token.value) %>
|
2015-02-11 20:23:50 +08:00
|
|
|
<%= l(:label_forum_new) %>
|
|
|
|
|
|
|
|
<%= link_to truncate(forum.name,length: 30,omission: '...'),forum_url(forum,:token => @token.value)
|
|
|
|
%>
|
|
|
|
<%= format_time(forum.created_at) %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<!-- 新建贴吧 end-->
|
|
|
|
<% end %>
|
|
|
|
<% unless @memos.first.nil? %>
|
|
|
|
|
|
|
|
<%= l(:label_user_message_forum) %>
|
|
|
|
(<%= @memos.count %>)
|
|
|
|
|
|
|
|
<% @memos.each do |memo|%>
|
|
|
|
▪
|
|
|
|
|
|
|
|
<%= link_to memo.author, user_activities_url(memo.author,:token => @token.value)%>
|
2015-02-12 00:15:10 +08:00
|
|
|
<%= memo.parent_id.nil? ? l(:label_memo_new_from_forum) : l(:label_reply) %>
|
2015-02-11 20:23:50 +08:00
|
|
|
|
|
|
|
<%= link_to truncate(memo.subject,length: 30,omission: '...'),forum_memo_url(memo.forum, (memo.parent_id.nil? ? memo : memo.parent_id))
|
|
|
|
%>
|
|
|
|
<%= format_time(memo.created_at) %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 新建贴吧 end-->
|
|
|
|
<% end %>
|
|
|
|
<!--贴吧动态 end-->
|
|
|
|
<% end %>
|
2015-02-06 18:15:08 +08:00
|
|
|
|
2015-04-27 21:54:49 +08:00
|
|
|
<% [:label_user_mail_option_all, :label_user_mail_option_day, :label_user_mail_option_none].each do |mail_option| %>
|
|
|
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
|
|
|
<%= l(mail_option) %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|