<% if replying%>
<%= f.text_area :content,
diff --git a/app/views/boards/_form_project.html.erb b/app/views/boards/_form_project.html.erb
index 525869901..a6c8d405e 100644
--- a/app/views/boards/_form_project.html.erb
+++ b/app/views/boards/_form_project.html.erb
@@ -1,13 +1,13 @@
<%= error_messages_for 'message' %>
diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb
index d5a5a7882..bb36c6f19 100644
--- a/app/views/boards/_project_show.html.erb
+++ b/app/views/boards/_project_show.html.erb
@@ -58,7 +58,31 @@
<%= l(:label_board_sticky)%>
<% end %>
@@ -80,7 +104,7 @@
<%= l(:button_reply) %>
<% end %>
-
+
diff --git a/app/views/courses/_courses_jours.html.erb b/app/views/courses/_courses_jours.html.erb
index 3d25be603..cedc05f4b 100644
--- a/app/views/courses/_courses_jours.html.erb
+++ b/app/views/courses/_courses_jours.html.erb
@@ -8,10 +8,10 @@
div.ke-toolbar .ke-outline{border:none;}
div.respond-form .reply_btn{margin-left:565px;margin-top:5px;}
- div.recall_con{width:600px;}
- div.recall_con .reply_btn{margin-left:555px;margin-top:5px;}
+ div.recall_con{width:570px;}
+ div.recall_con .reply_btn{margin-left:525px;margin-top:5px;}
-<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
+<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
-
<%= render :partial => 'edit',locals: {:topic => topic} %>
<%# reply_allow = JournalsForMessage.create_by_user? User.current %>
<%= l(:label_leave_message) %>
@@ -56,6 +56,7 @@ $(function(){ function init_editor(params){ + params.textarea.removeAttr('placeholder'); var editor = params.kindutil.create(params.textarea, { resizeType : 1,minWidth:"1px",width:"100%",height:"150px", items:['emoticons'], @@ -207,4 +208,4 @@ }); }); }); - \ No newline at end of file + diff --git a/app/views/courses/_show_member_score.html.erb b/app/views/courses/_show_member_score.html.erb index 0fd1248c6..b471bc17f 100644 --- a/app/views/courses/_show_member_score.html.erb +++ b/app/views/courses/_show_member_score.html.erb @@ -17,13 +17,14 @@<%= @member_score.user.name %> 历次作业积分
- 作业名称得分 - <% @member_score.student_work_score.each do |homework_score| %> + <% @member_score.homework_common_list.each do |homework_common| %>
- - <%= homework_score.name %> + <%= homework_common.name %> - <%= format("%0.2f",homework_score.final_score.nil? ? 0 : homework_score.final_score) %> + <% final_score = @member_score.homework_common_score(homework_common).first%> + <%= final_score.nil? || final_score.final_score.nil? ? "--" : format("%0.2f", final_score.final_score) %> <% end %> diff --git a/app/views/courses/show.html.erb b/app/views/courses/show.html.erb index 09d1aa27d..654c25a42 100644 --- a/app/views/courses/show.html.erb +++ b/app/views/courses/show.html.erb @@ -126,4 +126,4 @@ }); nh_new_notify_count_show(); }); - \ No newline at end of file + diff --git a/app/views/files/_course_list.html.erb b/app/views/files/_course_list.html.erb index 7f3e426fc..8bb6f8970 100644 --- a/app/views/files/_course_list.html.erb +++ b/app/views/files/_course_list.html.erb @@ -25,7 +25,9 @@ <% if file.is_public? || User.current.member_of_course?(course) %>
- <%= l(:mail_issue_subject)%><%= link_to(issue.subject, issue_url, :style=>'color:#1b55a7; font-weight:bold;') %> -
- <%= l(:mail_issue_sent_from)%><%= issue.project.name %>| <%= l(:mail_issue_from_project)%> -
- <%= l(:mail_issue_content)%>
+
-
+
- <%= l(:mail_issue_subject)%><%= link_to(issue.subject, issue_url, :style=>'color:#1b55a7; font-weight:bold;') %> +
- <%= l(:mail_issue_sent_from)%><%= issue.project.name %>| <%= l(:mail_issue_from_project)%> +
- <%= l(:mail_issue_content)%> <% if @journal.nil? %> - <%= issue.description=='' ? l(:label_none) : issue.description %> + <%= issue.description=='' ? l(:label_none) : issue.description.html_safe %> <% else %> - <%= @journal.notes=='' ? l(:label_none) : @journal.notes %> + <%= @journal.notes=='' ? l(:label_none) : @journal.notes.html_safe %> <% end%>
-
<%= l(:mail_issue_attachments)%>
<% if @issue.attachments.count == 0 %>
- <%= l(:label_none)%>
+ <%= l(:label_none)%>
<% else %>
<% @issue.attachments.each do |attach| %>
<%= link_to_attachment(attach, :download => true, :token => @token.value, :only_path => false, :style=>'color:#1b55a7; font-weight:bold;')%>
<% end %> <% end %> - -
-
- + ▪ + [ + <% unless course_news_comment.commented.nil? %> + <%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course, :token => @token.value), + :class=> "wmail_column", + :style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %> + <% end %> + ] + + <%= link_to course_news_comment.author, user_activities_url(course_news_comment.author,:token => @token.value), :class => "wmail_name", + :style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%> + <%= l(:label_project_notice) %> + + <%= link_to truncate(course_news_comment.comments,length: 30,omission: '...'), news_url(course_news_comment.commented,:token => @token.value), + :class => 'wmail_info', + :style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" + %> + <%= format_time(course_news_comment.created_on) %> + + <% end %> + +
- + ▪ + [ + <%= link_to truncate(issues_journal.issue.project.name,length: 30,omission: '...'), project_url(issues_journal.issue.project, :token => @token.value), + :class=> "wmail_column", + :style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %> + ] + <%= link_to issues_journal.user, user_activities_url(issues_journal.user,:token => @token.value), :class => "wmail_name", + :style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%> + <%= l(:label_project_issue) %> + <% if issues_journal.notes.nil? %> + <%= link_to truncate(issues_journal.issue.subject,length: 30,omission: '...'),issue_url(issue, :token => @token.value), + :style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" + %> + <% else %> + <%= link_to truncate(issues_journal.notes,length: 30,omission: '...'),issue_url(issues_journal.issue, :token => @token.value), + :style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" + %> + <% end %> + <%= format_time(issues_journal.created_on) %> + + <% end %> + + +
- + ▪ + [ + <% unless project_news_comment.commented.nil? %> + <%= link_to truncate(project_news_comment.commented.project.name,length: 30,omission: '...'), project_url(project_news_comment.commented.project, :token => @token.value), + :class=> "wmail_column", + :style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %> + <% end %> + ] + <%= link_to project_news_comment.author, user_activities_url(project_news_comment.author,:token => @token.value), :class => "wmail_name", + :style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%> + <%= l(:label_project_mail_notice) %> + + <%= link_to truncate(project_news_comment.comments.html_safe,length: 30,omission: '...'), news_url(project_news_comment.commented,:token => @token.value), + :class => 'wmail_info', + :style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %> + <%= format_time(project_news_comment.created_on) %> + + <% end %> + +
- + ▪ + [ + + <%= link_to truncate(project_attachment.project.name,length: 30,omission: '...'), project_url(project_attachment.project, :token => @token.value), + :class=> "wmail_column", + :style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %> + ] + + <%= link_to project_attachment.author, user_activities_url(project_attachment.author,:token => @token.value), :class => "wmail_name", + :style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%> + <%= l(:label_project_mail_upload) %> + + <%= link_to truncate(project_attachment.filename,length: 30,omission: '...'), project_files_url(project_attachment.project,:token => @token.value), + :class => 'wmail_info', + :style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" + %> + <%= format_time(project_attachment.created_on) %> + + <% end %> + +
- @@ -37,4 +37,4 @@ <% end %> - \ No newline at end of file + diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb index 4d1242883..f39eb8266 100644 --- a/app/views/news/_course_show.html.erb +++ b/app/views/news/_course_show.html.erb @@ -1,4 +1,4 @@ -<%= javascript_include_tag "/assets/kindeditor/kindeditor" %> +<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
- @@ -33,4 +33,4 @@ <% end %> - \ No newline at end of file + diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb index 3ffbe6554..6e94f0947 100644 --- a/app/views/news/_project_show.html.erb +++ b/app/views/news/_project_show.html.erb @@ -5,7 +5,7 @@ <% if authorize_for('news', 'edit') %>
- + 学号 + +
- + 姓名 + +
- + 应评 + +
- + 实评 + +
- + <%= link_to "缺评",student_work_absence_penalty_student_work_index_path(:homework => @homework.id,:order => @order)%> + + +
- + + <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%> + + +
- + <%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name, :class => "c_blue02"%> + +
- + <%= student_work.all_count%> + +
- + <%= student_work.has_count%> + +
- + <%= student_work.absence%> + +
- <%= link_to truncate(file.filename,length: 35, omission: '...'), download_named_attachment_path(file.id, file.filename, preview: true),:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "c_dblue f_14 f_b f_l" %>
+ <%= link_to truncate(file.filename,length: 35, omission: '...'),
+ download_named_attachment_path(file.id, file.filename),
+ :title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "c_dblue f_14 f_b f_l" %>
<% if User.current.logged? %>
<% if (is_course_teacher(User.current,@course) || file.author_id == User.current.id) && course_contains_attachment?(@course,file) %>
<%= link_to("选入我的其他课程",quote_resource_show_course_file_path(@course,file),:class => "f_l re_select c_lorange",:remote => true) if has_course?(User.current,file) %>
@@ -40,7 +42,7 @@
<% else %>
<%= link_to("选入我的课程",quote_resource_show_course_file_path(@course,file),:class => "f_l re_select c_lorange",:remote => true) if has_course?(User.current,file) %>
<% end %>
- <%= link_to_attachment file, text: '下载', class: 'f_l re_open' %>
+ <%= file_preview_tag(file, class: 'f_l re_open') %>
<% else %>
<% end %>
diff --git a/app/views/files/_project_file_list.html.erb b/app/views/files/_project_file_list.html.erb
index 81b69d754..9f9e86cff 100644
--- a/app/views/files/_project_file_list.html.erb
+++ b/app/views/files/_project_file_list.html.erb
@@ -18,7 +18,9 @@
<% project_attachments.each do |file| %>
- <%= link_to truncate(file.filename,length: 35, omission: '...'), download_named_attachment_path(file.id, file.filename, preview: true),:title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "c_dblue f_14 f_b f_l" %>
+ <%= link_to truncate(file.filename,length: 35, omission: '...'),
+ download_named_attachment_path(file.id, file.filename),
+ :title => file.filename+"\n"+file.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;",:class => "c_dblue f_14 f_b f_l" %>
<% if User.current.logged? %>
<% if (manage_allowed || file.author_id == User.current.id) && project_contains_attachment?(project,file) %>
<%= link_to(l(:label_slected_to_other_project),quote_resource_show_project_project_file_path(project,file),:class => "f_l re_select",:remote => true) if has_project?(User.current,file) %>
@@ -30,7 +32,7 @@
<% else %>
<%= link_to(l(:label_slected_to_project),quote_resource_show_project_project_file_path(project,file),:class => "f_l re_select",:remote => true) if has_project?(User.current,file) %>
<% end %>
- <%= link_to_attachment file, text: '下载', class: 'f_l re_open' %>
+ <%= file_preview_tag(file, class: 'f_l re_open') %>
<% end %>
diff --git a/app/views/forums/edit.html.erb b/app/views/forums/edit.html.erb
index 9fe72fdb7..0a40120c7 100644
--- a/app/views/forums/edit.html.erb
+++ b/app/views/forums/edit.html.erb
@@ -1,4 +1,4 @@
编辑讨论区
-<%= javascript_include_tag "/assets/kindeditor/kindeditor" %> +<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %> <%= render 'form_edit_mode' %> diff --git a/app/views/forums/new.html.erb b/app/views/forums/new.html.erb index 35814d843..9bce17416 100644 --- a/app/views/forums/new.html.erb +++ b/app/views/forums/new.html.erb @@ -5,7 +5,7 @@ <% @nav_dispaly_forum_label = 1%><%= l :label_forum_new %>
-<%= javascript_include_tag "/assets/kindeditor/kindeditor" %> +<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %> <%= render 'form_create_mode' %> <%#= link_to l(:button_back), forums_path %> diff --git a/app/views/homework_common/edit.html.erb b/app/views/homework_common/edit.html.erb index f9d3f8b70..50feca946 100644 --- a/app/views/homework_common/edit.html.erb +++ b/app/views/homework_common/edit.html.erb @@ -1,4 +1,4 @@ -<%= javascript_include_tag "/assets/kindeditor/kindeditor" %> +<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %> <%= error_messages_for 'homework_common' %>
@@ -13,4 +13,4 @@
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
<% end%>
-
\ No newline at end of file
+
diff --git a/app/views/homework_common/new.html.erb b/app/views/homework_common/new.html.erb
index b0fdc5299..dc67b5079 100644
--- a/app/views/homework_common/new.html.erb
+++ b/app/views/homework_common/new.html.erb
@@ -1,4 +1,4 @@
-<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
+<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
<%= error_messages_for 'homework_common' %>
@@ -14,4 +14,4 @@
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
<% end%>
-
\ No newline at end of file
+
diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb
index 77f3baf31..26aff7d61 100644
--- a/app/views/issues/new.html.erb
+++ b/app/views/issues/new.html.erb
@@ -1,4 +1,4 @@
-<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
+<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
<%= l(:label_issue_new) %>
<%= l(:label_issue_edit) %>
<%= authoring @journal.created_on, @journal.user, :label => :label_updated_time_by %>
-<%= simple_format_without_paragraph @diff.to_html %>
+ <%= simple_format_without_paragraph @diff.to_html %>
<%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %>
diff --git a/app/views/layouts/base_forums.html.erb b/app/views/layouts/base_forums.html.erb index 4d79f50f9..eae133184 100644 --- a/app/views/layouts/base_forums.html.erb +++ b/app/views/layouts/base_forums.html.erb @@ -12,10 +12,10 @@ <%= csrf_meta_tag %> <%= favicon %> - <%= javascript_include_tag "/assets/kindeditor/kindeditor" %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> + <%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> diff --git a/app/views/mailer/_issue.html.erb b/app/views/mailer/_issue.html.erb index 5145dbb2c..49f137df5 100644 --- a/app/views/mailer/_issue.html.erb +++ b/app/views/mailer/_issue.html.erb @@ -1,46 +1,43 @@- - + <%= link_to(h("#{@author.login}(#{@author.show_name})"), @issue_author_url , :style=>'color:#1b55a7; font-weight:bold;') %> - <%= l(:mail_issue_title_userin)%> - <%= link_to(h("#{@issue.project.name}"), @project_url, :style=>'color:#1b55a7; font-weight:bold;') %><%= l(:mail_issue_title_active)%>
+ <%= l(:mail_issue_title_userin)%> + <%= link_to(h("#{@issue.project.name}"), @project_url, :style=>'color:#1b55a7; font-weight:bold;') %><%= l(:mail_issue_title_active)%> +
-
<% unless @course_news.first.nil? %>
-
-
-
@@ -35,6 +36,38 @@
-
+
+ <%= l(:label_course_news) %>
+
+ <% @course_news_comments.each do |course_news_comment|%>
+
-
@@ -64,7 +97,6 @@
<% end %>
<% end %>
-
<%= l(:label_project_overview_new)%>
<% unless @issues.first.nil? %> @@ -192,6 +225,41 @@ <% end %> + + + <% unless @issues_journals.first.nil? %> +-
+
+ <%= l(:label_issue_tracking) %>
+
+ <% @issues_journals.each do |issues_journal| %>
+
-
@@ -284,6 +352,67 @@
-
+
+ <%= l(:label_project_news) %>
+
+ <% @project_news_comments.each do |project_news_comment|%>
+
-
+
+ <%= l(:label_project_mail_attachments) %>
+
+ <% @project_attachments.each do |project_attachment|%>
+
-
diff --git a/app/views/mailer/send_for_user_activities.text.erb b/app/views/mailer/send_for_user_activities.text.erb
index c46e96f03..bcafb896f 100644
--- a/app/views/mailer/send_for_user_activities.text.erb
+++ b/app/views/mailer/send_for_user_activities.text.erb
@@ -1,344 +1,243 @@
<%= @subject %>
-<% if @attachments.first || @course_news.first || @bids.first ||
- @course_journal_messages.first|| @course_messages.first %>
-<%= l(:label_course_overview)%>
- <% unless @course_news.first.nil? %>
- <%= l(:label_course_news) %>
-
-
-
+<% if @attachments.first || @course_news.first || @course_news_comments.first || @bids.first ||
+ @course_journal_messages.first|| @course_messages.first || @attachments.first %>
+ <%= l(:label_course_overview)%>
+ <% unless @course_news.first.nil? %>
+ <%= l(:label_course_news) %>
<% @course_news.each do |course_new|%>
- ▪
- [
-
- <%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course, :token => @token.value)%>
- ]
-
- <%= link_to course_new.author, user_activities_url(course_new.author,:token => @token.value)
- %>
- <%= l(:label_project_notice) %>
+ ▪[<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course, :token => @token.value)%> ]
- <%= link_to truncate(course_new.title,length: 30,omission: '...'), news_url(course_new,:token => @token.value)
-
-
- %> <%= format_time(course_new.created_on) %>
+ <%= link_to course_new.author, user_activities_url(course_new.author,:token => @token.value) %>
+ <%= l(:label_project_notice) %>
+ <%= link_to truncate(course_new.title,length: 30,omission: '...'), news_url(course_new,:token => @token.value) %>
+ <%= format_time(course_new.created_on) %>
+ <% end %>
+ <% end %>
+ <% unless @course_news_comments.first.nil? %>
+ <%= l(:label_course_news) %>
+ <% @course_news_comments.each do |course_news_comment|%>
+ ▪[ <% unless course_news_comment.commented.nil? %>
+ <%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course, :token => @token.value) %>
+ <% end %>
+ ]
+ <%= link_to course_news_comment.author, user_activities_url(course_news_comment.author,:token => @token.value) %>
+ <%= l(:label_project_notice) %>
+ <%= link_to truncate(course_news_comment.comments,length: 30,omission: '...'), news_url(course_news_comment.commented,:token => @token.value) %>
+ <%= format_time(course_news_comment.created_on) %>
<% end %>
+ <% end %>
- <% end %>
- <% unless @bids.empty? %>
- <%= l(:label_homework_overview) %>
+ <% unless @bids.empty? %>
+ <%= l(:label_homework_overview) %>
<% unless @bids.first.nil?%>
<% @bids.each do |bid| %>
- ▪
- [
-
- <%= link_to truncate(bid.course.name,length: 30,omission: '...'),course_url(bid.course, :token => @token.value)
-
- %>
- ]
-
- <%= link_to bid.user, user_activities_url(bid.user,:token => @token.value)
- %>
- <%= l(:label_course_homework) %>
-
- <%= link_to truncate(bid.name, length: 30,omission: '...'), student_work_index_path(:homework => bid.id,:token => @token.value)
-
-
- %>
- <%= format_time(bid.created_at) %>
-
+ ▪[<%= link_to truncate(bid.course.name,length: 30,omission: '...'),course_url(bid.course, :token => @token.value) %>]
+ <%= link_to bid.user, user_activities_url(bid.user,:token => @token.value) %>
+ <%= l(:label_course_homework) %>
+ <%= link_to truncate(bid.name, length: 30,omission: '...'), student_work_index_path(:homework => bid.id,:token => @token.value) %>
+ <%= format_time(bid.created_at) %>
<% end %>
<% end %>
+
+ <% end %>
-
-
- <% end %>
-
- <% unless @course_journal_messages.first.nil? %>
-
- <%= l(:view_course_journals_for_messages) %>
-
-
+ <% unless @course_journal_messages.first.nil? %>
+ <%= l(:view_course_journals_for_messages) %>
<% @course_journal_messages.each do |course_journal_message|%>
-
- [
-
- <%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course, :token => @token.value)
-
- %>
- ]
-
- <%= link_to course_journal_message.user, user_activities_url(course_journal_message.user,:token => @token.value)
- %>
+ [ <%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course, :token => @token.value) %>]
+ <%= link_to course_journal_message.user, user_activities_url(course_journal_message.user,:token => @token.value) %>
<%= l(:label_send_course_journals_for_messages) %>
-
- <%= link_to truncate(course_journal_message.notes,length: 30,omission: '...'), course_feedback_url(course_journal_message.course,:token => @token.value)
-
-
- %>
- <%= format_time(course_journal_message.created_on) %>
-
+ <%= link_to truncate(course_journal_message.notes,length: 30,omission: '...'), course_feedback_url(course_journal_message.course,:token => @token.value) %>
+ <%= format_time(course_journal_message.created_on) %>
<% end %>
+ <% end %>
-
- <% end %>
-
- <% unless @course_messages.first.nil? %>
-
- <%= l(:view_borad_course) %>
-
-
-
+ <% unless @course_messages.first.nil? %>
+ <%= l(:view_borad_course) %>
<% @course_messages.each do |course_message|%>
-
- ▪
- [
-
- <%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course, :token => @token.value)
-
- %>
- ]
-
- <%= link_to course_message.author, user_activities_url(course_message.author,:token => @token.value)
- %>
- <%= l(:label_send_course_messages) %>
-
- <%= link_to truncate(course_message.subject,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id,:token => @token.value)
-
-
- %>
- <%= format_time(course_message.created_on) %>
-
+ ▪[<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course, :token => @token.value)%>]
+ <%= link_to course_message.author, user_activities_url(course_message.author,:token => @token.value) %>
+ <%= l(:label_send_course_messages) %>
+ <%= link_to truncate(course_message.subject,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id,:token => @token.value) %>
+ <%= format_time(course_message.created_on) %>
<% end %>
+ <% end %>
-
- <% end %>
-
- <% unless @attachments.first.nil? %>
-
- <%= l(:label_course_attendingcontestwork_download) %>
-
-
-
+ <% unless @attachments.first.nil? %>
+ <%= l(:label_course_attendingcontestwork_download) %>
<% @attachments.each do |attachment|%>
- ▪[
-
- <%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course, :token => @token.value)
-
- %>
- ]
-
- <%= link_to attachment.author, user_activities_url(attachment.author,:token => @token.value)
- %>
- <%= l(:label_course_file_upload) %>
-
- <%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course,:token => @token.value)
-
-
- %>
- <%= format_time(attachment.created_on) %>
-
+ ▪[<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course, :token => @token.value) %>]
+ <%= link_to attachment.author, user_activities_url(attachment.author,:token => @token.value) %>
+ <%= l(:label_course_file_upload) %>
+ <%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course,:token => @token.value) %>
+ <%= format_time(attachment.created_on) %>
<% end %>
-
-