<%= @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? %> <% end %> <% if !@bids.first.nil? %> <% end %> <% unless @course_journal_messages.first.nil? %> <% end %> <% unless @course_messages.first.nil? %> <% end %> <% unless @attachments.first.nil? %> <% end %>
<% end %> <% if @issues.first || @project_messages.first %>

<%= l(:label_project_overview_new)%>

<% unless @issues.first.nil? %> <% end %> <% unless @project_messages.first.nil? %> <% end %> <% unless @project_news.first.nil? %> <% end %>
<% end %> <% unless @user_journal_messages.first.nil? %>

<%= l(:label_activities) %>

<% end %> <% if @forums.first || @memos.first %>

<%= l(:lable_bar_active) %>

<% unless @forums.first.nil? %> <% end %> <% unless @memos.first.nil? %> <% end %>
<% end %>
<% [: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 %> <% 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 %>