2015-06-02 11:02:12 +08:00
|
|
|
|
<div class="content">
|
|
|
|
|
<h4 class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
|
|
|
|
<%= @subject %>
|
|
|
|
|
</h4>
|
2015-06-16 11:45:30 +08:00
|
|
|
|
<% if @attachments.first || @course_news.first || @course_news_comments.first || @bids.first ||
|
2015-06-11 10:02:27 +08:00
|
|
|
|
@course_journal_messages.first|| @course_messages.first || @attachments.first %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
2015-07-04 12:12:44 +08:00
|
|
|
|
<h3 class="wmail_h2" style="color:#474646; "><%= l(:label_course_overview)%></h3>
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<!-- 课程通知 -->
|
2015-09-28 15:06:23 +08:00
|
|
|
|
<% if !@course_news.first.nil? || !@course_news_comments.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style=" list-style-type:none;clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:label_course_news) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @course_news.each do |course_new|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_new.course.name,length: 30,omission: '...'), course_url(course_new.course),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to course_new.author, user_activities_url(course_new.author), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_notice) %></span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_new.title.html_safe,length: 30,omission: '...'), news_url(course_new),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(course_new.created_on) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
2015-06-24 09:31:52 +08:00
|
|
|
|
<!--课程通知回复-->
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<% @course_news_comments.each do |course_news_comment|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
|
|
|
|
<% unless course_news_comment.commented.nil? %>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_news_comment.commented.course.name,length: 30,omission: '...'), course_url(course_news_comment.commented.course),
|
2015-06-24 09:31:52 +08:00
|
|
|
|
:class=> "wmail_column",
|
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to course_news_comment.author, user_activities_url(course_news_comment.author), :class => "wmail_name",
|
2015-06-15 17:44:53 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
2015-06-26 14:44:26 +08:00
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_notice_reply) %></span>
|
2015-06-15 17:44:53 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(l(:label_course_notice_point),length: 30,omission: '...'), news_url(course_news_comment.commented),
|
2015-06-15 17:44:53 +08:00
|
|
|
|
:class => 'wmail_info',
|
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
|
|
|
|
%>
|
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(course_news_comment.created_on) %></span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
2015-06-24 09:31:52 +08:00
|
|
|
|
</ul><!--课程通知 end-->
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<!--课程作业-->
|
2015-06-06 09:44:23 +08:00
|
|
|
|
<% unless @bids.empty? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;">
|
|
|
|
|
<%= l(:label_homework_overview) %>
|
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @bids.first.nil?%>
|
|
|
|
|
<% @bids.each do |bid| %>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(bid.course.name,length: 30,omission: '...'), course_url(bid.course),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to bid.user, user_activities_url(bid.user), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_course_homework) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(bid.name.html_safe,length: 30,omission: '...'), student_work_index_url(:homework => bid.id),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(bid.created_at) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!--作业动态 end-->
|
|
|
|
|
<% end %>
|
2015-04-23 17:42:03 +08:00
|
|
|
|
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<!-- 课程留言 -->
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @course_journal_messages.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:view_course_journals_for_messages) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @course_journal_messages.each do |course_journal_message|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_journal_message.course.name,length: 30,omission: '...'), course_url(course_journal_message.course),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to course_journal_message.user, user_activities_url(course_journal_message.user), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_journals_for_messages) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_journal_message.notes.html_safe,length: 30,omission: '...'), course_feedback_url(course_journal_message.course),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(course_journal_message.created_on) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!--课程留言 end-->
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<% end %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<!-- 课程讨论区 -->
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @course_messages.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:view_borad_course) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @course_messages.each do |course_message|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_message.course.name,length: 30,omission: '...'), course_url(course_message.course.id),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to course_message.author, user_activities_url(course_message.author), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_messages) %></span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(course_message.subject.html_safe,length: 30,omission: '...'),board_message_url(course_message, :board_id => course_message.board_id),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(course_message.created_on) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
</ul><!-- 课程讨论区end -->
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<% end %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<!-- 课件 -->
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @attachments.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-26 14:44:26 +08:00
|
|
|
|
<%= l(:label_course_mail_files) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @attachments.each do |attachment|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(attachment.course.name,length: 30,omission: '...'), course_url(attachment.course),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to attachment.author, user_activities_url(attachment.author), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_course_file_upload) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(attachment.filename,length: 30,omission: '...'),course_files_url(attachment.course),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(attachment.created_on) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!--课件下载 end-->
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<% end %>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
</div>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% end %>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
|
2015-06-03 16:59:27 +08:00
|
|
|
|
<!--项目相关-->
|
2015-06-16 11:45:30 +08:00
|
|
|
|
<% if @issues.first || @project_messages.first || @issues_journals.first || @wiki_contents.first || @project_news.first || @project_news_comments.first || @project_journal_messages.first ||
|
2015-08-29 09:43:44 +08:00
|
|
|
|
@project_attachments.first %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
2016-11-10 13:34:43 +08:00
|
|
|
|
<h3 class="wmail_h2" style="color:#474646; "><%= l(:label_project_overview_new) %></h3>
|
2015-09-28 15:06:23 +08:00
|
|
|
|
<% if !@issues.first.nil? || !@issues_journals.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:label_issue_tracking) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @issues.each do |issue|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(issue.project.name,length: 30,omission: '...'), project_url(issue.project),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to issue.author, user_activities_url(issue.author), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_issue) %></span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(issue.subject,length: 30,omission: '...'),issue_url(issue),
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(issue.created_on) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
2015-06-24 09:31:52 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% @issues_journals.each do |issues_journal| %>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(issues_journal.issue.project.name,length: 30,omission: '...'), project_url(issues_journal.issue.project),
|
2015-06-24 09:31:52 +08:00
|
|
|
|
:class=> "wmail_column",
|
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to issues_journal.user, user_activities_url(issues_journal.user), :class => "wmail_name",
|
2015-06-24 09:31:52 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
2015-06-26 14:44:26 +08:00
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_issue_update) %></span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(issues_journal.issue.subject, length:30,omission:'...'),issue_url(issues_journal.issue),
|
2015-10-10 14:00:12 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;",
|
|
|
|
|
:onmouseover =>"message_titile_show($(this),event)",
|
|
|
|
|
:onmouseout => "message_titile_hide($(this))"
|
|
|
|
|
%>
|
|
|
|
|
<div style="display: none">
|
|
|
|
|
<div class="fl"><strong>更新内容:</strong></div>
|
|
|
|
|
<div class="ml60"><%= issues_journal.notes.html_safe %></div>
|
|
|
|
|
</div>
|
2015-06-24 09:31:52 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(issues_journal.created_on) %></span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!--问题跟踪 end-->
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<!-- 讨论区 -->
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @project_messages.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:project_moule_boards_show) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @project_messages.each do |project_message|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_message.project.name,length: 30,omission: '...'), project_url(project_message.project),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
2015-06-11 16:33:33 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to project_message.author, user_activities_url(project_message.author), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_messages) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_message.subject,length: 30,omission: '...'),board_message_url(project_message, :board_id => project_message.board_id),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_message.created_on) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!--项目论坛 end-->
|
|
|
|
|
<% end %>
|
2015-06-03 16:59:27 +08:00
|
|
|
|
|
2015-06-10 16:58:22 +08:00
|
|
|
|
<!--项目wiki-->
|
|
|
|
|
<% unless @wiki_contents.first.nil? %>
|
|
|
|
|
<ul class="wmail_ul" style=" list-style-type:none;clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
|
|
|
|
<%= l(:label_wiki) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% @wiki_contents.each do |wikicontent|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
|
|
|
|
<% unless wikicontent.page.nil? %>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(wikicontent.page.wiki.project.name,length: 30,omission: '...'), project_url(wikicontent.page.wiki.project),
|
2015-06-10 16:58:22 +08:00
|
|
|
|
:class=> "wmail_column",
|
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to wikicontent.author, user_activities_url(wikicontent.author), :class => "wmail_name",
|
2015-06-10 16:58:22 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_wiki_mail_notification) %></span>
|
2015-06-10 16:58:22 +08:00
|
|
|
|
<% unless wikicontent.page.nil? %>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to wikicontent.text.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, project_wiki_url(wikicontent.page.wiki),
|
2015-06-10 16:58:22 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-10-10 14:00:12 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; max-width:400px;height:23px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
2015-06-10 16:58:22 +08:00
|
|
|
|
<% end %>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(wikicontent.updated_on) %></span>
|
2015-06-10 16:58:22 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!-- 项目wikiend -->
|
|
|
|
|
<% end %>
|
|
|
|
|
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<!--项目新闻-->
|
2015-09-28 15:06:23 +08:00
|
|
|
|
<% if !@project_news.first.nil? || !@project_news_comments.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style=" list-style-type:none;clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-05 15:54:56 +08:00
|
|
|
|
<%= l(:label_project_news) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
<% @project_news.each do |project_new|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_new.project.name,length: 30,omission: '...'), project_url(project_new.project),
|
2015-06-04 17:25:44 +08:00
|
|
|
|
:class=> "wmail_column",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to project_new.author, user_activities_url(project_new.author), :class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_mail_notice) %></span>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_new.title,length: 30,omission: '...'), news_url(project_new),
|
2015-06-04 17:25:44 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_new.created_on) %></span>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
2015-08-28 14:38:46 +08:00
|
|
|
|
|
2015-06-26 14:44:26 +08:00
|
|
|
|
<!--新闻回复-->
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<% @project_news_comments.each do |project_news_comment|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
|
|
|
|
<% unless project_news_comment.commented.nil? %>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_news_comment.commented.project.name,length: 30,omission: '...'), project_url(project_news_comment.commented.project),
|
2015-06-24 09:31:52 +08:00
|
|
|
|
:class=> "wmail_column",
|
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to project_news_comment.author, user_activities_url(project_news_comment.author), :class => "wmail_name",
|
2015-06-15 17:44:53 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
2015-06-26 14:44:26 +08:00
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:lable_project_mail_notice_reply) %></span>
|
2015-06-15 17:44:53 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(l(:lable_project_notice_point),length: 30,omission: '...'), news_url(project_news_comment.commented),
|
2015-06-15 17:44:53 +08:00
|
|
|
|
:class => 'wmail_info',
|
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_news_comment.created_on) %></span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
2015-06-24 09:31:52 +08:00
|
|
|
|
</ul><!-- 项目新闻end -->
|
2015-06-15 17:44:53 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
|
2015-06-16 14:57:35 +08:00
|
|
|
|
<!-- 项目上传资源 -->
|
|
|
|
|
<% unless @project_attachments.first.nil? %>
|
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
|
|
|
|
<%= l(:label_project_mail_attachments) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% @project_attachments.each do |project_attachment|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_attachment.project.name,length: 30,omission: '...'), project_url(project_attachment.project),
|
2015-06-16 14:57:35 +08:00
|
|
|
|
:class=> "wmail_column",
|
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to project_attachment.author, user_activities_url(project_attachment.author), :class => "wmail_name",
|
2015-06-16 14:57:35 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_project_mail_upload) %></span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_attachment.filename,length: 30,omission: '...'), project_files_url(project_attachment.project),
|
2015-06-16 14:57:35 +08:00
|
|
|
|
:class => 'wmail_info',
|
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
|
|
|
|
%>
|
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_attachment.created_on) %></span>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!-- 项目上传资源 end-->
|
|
|
|
|
<% end %>
|
|
|
|
|
|
2015-06-11 10:02:27 +08:00
|
|
|
|
<!--项目留言-->
|
|
|
|
|
<% unless @project_journal_messages.first.nil? %>
|
|
|
|
|
<ul class="wmail_ul" style="clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
|
|
|
|
<%= l(:label_project_mail_feedback) %>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<% @project_journal_messages.each do |project_journal_message|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">[</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(project_journal_message.project.name,length: 30,omission: '...'), project_url(project_journal_message.project),
|
2015-06-11 10:02:27 +08:00
|
|
|
|
:class=> "wmail_column",
|
|
|
|
|
:style=> " font-weight: bold; display:block; float:left; color:#666;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_b" style="color:#666; font-weight:bold; float:left;">]</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to project_journal_message.user, user_activities_url(project_journal_message.user), :class => "wmail_name",
|
2015-06-11 10:02:27 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"%>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_send_course_journals_for_messages) %></span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to project_journal_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe, project_feedback_url(project_journal_message.project),
|
2015-06-11 10:02:27 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-10-10 14:14:36 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; max-width:400px; max-height:30px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-11 10:02:27 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(project_journal_message.created_on) %></span>
|
2015-06-11 10:02:27 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!--项目留言 end-->
|
|
|
|
|
<% end %>
|
2015-06-04 17:25:44 +08:00
|
|
|
|
</div>
|
|
|
|
|
<% end %><!-- 项目动态end -->
|
|
|
|
|
|
|
|
|
|
<!-- 用户留言 -->
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @user_journal_messages.first.nil? %>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
2015-07-04 15:42:03 +08:00
|
|
|
|
<h3 class="wmail_h2" style="color:#474646; "><%= l(:label_activities) %></h3>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#666; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:label_user_message) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% @user_journal_messages.each do |user_journal_message|%>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to user_journal_message.user, user_activities_url(user_journal_message.user),
|
2015-04-07 13:47:39 +08:00
|
|
|
|
:class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_show_your_message) %></span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to user_journal_message.notes.gsub("<p>","").gsub("</p>","").gsub("<br />","").html_safe,feedback_url(@user),
|
2015-04-07 13:47:39 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-10-10 14:30:23 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; max-width:400px; max-height:30px;font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-04-07 13:47:39 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(user_journal_message.created_on) %></span></li>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
2015-06-03 16:59:27 +08:00
|
|
|
|
</ul><!--用户留言 end-->
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
|
|
|
|
</div><!--个人动态 end-->
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @forums.first || @memos.first %>
|
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
2015-07-04 15:42:03 +08:00
|
|
|
|
<h3 class="wmail_h2" style="color:#474646; "><%= l(:lable_bar_active) %></h3>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% unless @forums.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<%= l(:label_user_forum) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<span class="wmail_num" style="color:#666; margin-left:5px; font-weight:normal;">(<%= @forums.count %>)</span>
|
|
|
|
|
</span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
|
|
|
|
<% @forums.each do |forum|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to forum.creator, user_activities_url(forum.creator),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= l(:label_forum_new) %></span>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to truncate(forum.name,length: 30,omission: '...'),forum_url(forum),
|
2015-06-02 11:02:12 +08:00
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-06-02 11:02:12 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(forum.created_at) %></span></li>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!-- 新建贴吧 end-->
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<% unless @memos.first.nil? %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
<ul class="wmail_ul" style="margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:1020px; margin-bottom:15px;">
|
|
|
|
|
<span class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
2015-04-07 13:47:39 +08:00
|
|
|
|
<%= l(:label_user_message_forum) %>
|
2015-06-10 15:02:44 +08:00
|
|
|
|
</span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
|
|
|
|
<% @memos.each do |memo|%>
|
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
|
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to memo.author, user_activities_url(memo.author),
|
2015-04-07 13:47:39 +08:00
|
|
|
|
:class => "wmail_name",
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7; float:left;display:block; margin-right:5px; margin-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;" %>
|
|
|
|
|
<span class="wmail_txt" style="float:left; margin-right:5px;color:#ACAEB1;"><%= memo.parent_id.nil? ? l(:label_memo_new_from_forum) : l(:label_reply) %></span>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
|
|
|
|
<%= link_to truncate(memo.subject,length: 30,omission: '...'),forum_memo_url(memo.forum, (memo.parent_id.nil? ? memo : memo.parent_id)),
|
|
|
|
|
:class => 'wmail_info',
|
2015-06-10 15:02:44 +08:00
|
|
|
|
:style => "color:#2E8DD7;float:left; font-weight:normal;margin-right:5px; display:block;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;"
|
2015-04-07 13:47:39 +08:00
|
|
|
|
%>
|
2015-06-11 16:30:14 +08:00
|
|
|
|
<span class="wmail_date" style="color:#6e6e6e; float:left;display:block; margin-left:40px;"><%= format_time(memo.created_at) %></span></li>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul><!-- 新建贴吧 end-->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div><!--贴吧动态 end-->
|
|
|
|
|
<% end %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<div class="wmail_foot" style="margin-top:20px;color:#2775d2; margin-left:10px;">
|
2015-07-04 12:12:44 +08:00
|
|
|
|
<span style="color:#474646;"><%= l(:label_mail_policy) %>:</span>
|
2015-06-02 11:02:12 +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 %>
|
|
|
|
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
|
|
|
|
<% else %>
|
2015-12-23 17:16:35 +08:00
|
|
|
|
<%= link_to l(mail_option), my_change_mail_notification_url(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
2015-06-02 11:02:12 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-04-07 13:47:39 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
2015-10-10 14:00:12 +08:00
|
|
|
|
<script>
|
|
|
|
|
function message_titile_show(obj,e)
|
|
|
|
|
{
|
|
|
|
|
obj.next("div").show();
|
|
|
|
|
obj.next("div").css("top",e.pageY).css("left",e.pageX).css("position","absolute");
|
|
|
|
|
}
|
|
|
|
|
function message_titile_hide(obj)
|
|
|
|
|
{
|
|
|
|
|
obj.next("div").hide();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|