|
|
@ -1,13 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<h4 class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
|
|
|
<h4 class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
|
|
|
<%= @subject %>
|
|
|
|
<%= @subject %>
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
<% if @attachments.first || @course_news.first || @bids.first ||
|
|
|
|
<% if @attachments.first || @course_news.first || @bids.first ||
|
|
|
|
@homeworks.first || @course_journal_messages.first|| @course_messages.first %>
|
|
|
|
@homeworks.first || @course_journal_messages.first|| @course_messages.first %>
|
|
|
@ -15,12 +8,10 @@
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:label_course_overview)%></h2>
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:label_course_overview)%></h2>
|
|
|
|
<% unless @course_news.first.nil? %>
|
|
|
|
<% unless @course_news.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:720px; margin-bottom:15px;">
|
|
|
|
<ul class="wmail_ul" style=" list-style-type:none;clear: both;margin-left:10px; border-bottom:1px dashed #cfcfcf; padding-bottom:15px; width:720px; margin-bottom:15px;">
|
|
|
|
|
|
|
|
|
|
|
|
<h4 class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
|
|
|
<h4 class="wmail_h4" style="color:#474646; font-size:14px; margin-bottom:5px;" >
|
|
|
|
<%= l(:label_course_news) %>
|
|
|
|
<%= l(:label_course_news) %>
|
|
|
|
<span class="wmail_num" style="color:#fe3f0c; margin-left:5px; font-weight:normal;">(<%= @course_news.count %>)</span>
|
|
|
|
<span class="wmail_num" style="color:#fe3f0c; margin-left:5px; font-weight:normal;">(<%= @course_news.count %>)</span>
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
|
|
<% @course_news.each do |course_new|%>
|
|
|
|
<% @course_news.each do |course_new|%>
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
@ -201,8 +192,8 @@
|
|
|
|
</ul><!--课件下载 end-->
|
|
|
|
</ul><!--课件下载 end-->
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div><!--课程动态 end-->
|
|
|
|
</div><!--课程动态 end-->
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if @issues.first || @project_messages.first %>
|
|
|
|
<% if @issues.first || @project_messages.first %>
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:label_project_overview_new)%></h2>
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:label_project_overview_new)%></h2>
|
|
|
|
<% unless @issues.first.nil? %>
|
|
|
|
<% unless @issues.first.nil? %>
|
|
|
@ -211,7 +202,6 @@
|
|
|
|
<%= l(:label_issue_tracking) %>
|
|
|
|
<%= l(:label_issue_tracking) %>
|
|
|
|
<span class="wmail_num" style="color:#fe3f0c; margin-left:5px; font-weight:normal;">(<%= @issues.count %>)</span>
|
|
|
|
<span class="wmail_num" style="color:#fe3f0c; margin-left:5px; font-weight:normal;">(<%= @issues.count %>)</span>
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
|
|
<% @issues.each do |issue|%>
|
|
|
|
<% @issues.each do |issue|%>
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
<li style="clear: both; list-style: none;">
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
|
<span class="wmail_dis" style="float:left; color:#000000; margin-right:5px;">▪</span>
|
|
|
@ -274,8 +264,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><!--项目动态 end-->
|
|
|
|
</div><!--项目动态 end-->
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% unless @user_journal_messages.first.nil? %>
|
|
|
|
<% unless @user_journal_messages.first.nil? %>
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:label_activities) %></h2>
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:label_activities) %></h2>
|
|
|
|
|
|
|
|
|
|
|
@ -306,8 +296,8 @@
|
|
|
|
</ul><!--课程动态 end-->
|
|
|
|
</ul><!--课程动态 end-->
|
|
|
|
|
|
|
|
|
|
|
|
</div><!--个人动态 end-->
|
|
|
|
</div><!--个人动态 end-->
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if @forums.first || @memos.first %>
|
|
|
|
<% if @forums.first || @memos.first %>
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
|
|
|
<div class="wmail_main" style="padding:20px 10px 0px;">
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:lable_bar_active) %></h2>
|
|
|
|
<h2 class="wmail_h2" style="color:#15bccf; "><%= l(:lable_bar_active) %></h2>
|
|
|
|
<% unless @forums.first.nil? %>
|
|
|
|
<% unless @forums.first.nil? %>
|
|
|
@ -366,7 +356,7 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div><!--贴吧动态 end-->
|
|
|
|
</div><!--贴吧动态 end-->
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="wmail_foot" style="margin-top:20px;color:#2775d2; margin-left:10px;">
|
|
|
|
<div class="wmail_foot" style="margin-top:20px;color:#2775d2; margin-left:10px;">
|
|
|
|
<% [:label_user_mail_option_all, :label_user_mail_option_day, :label_user_mail_option_none].each do |mail_option| %>
|
|
|
|
<% [: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 %>
|
|
|
|
<% 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>
|
|
|
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
|
|
@ -374,6 +364,6 @@
|
|
|
|
<%= 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;" %>
|
|
|
|
<%= 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 %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|