<%= @subject %>

<% 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? %> <% end %> <% unless @course_news_comments.first.nil? %> <% end %> <% unless @bids.empty? %> <% 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 || @issues_journals.first || @wiki_contents.first || @project_news.first || @project_news_comments.first || @project_journal_messages.first || @project_news_comments.first %>

<%= l(:label_project_overview_new)%>

<% unless @issues.first.nil? %> <% end %> <% unless @issues_journals.first.nil? %> <% end %> <% unless @project_messages.first.nil? %> <% end %> <% unless @wiki_contents.first.nil? %> <% end %> <% unless @project_news.first.nil? %> <% end %> <% unless @project_news_comments.first.nil? %> <% end %> <% unless @project_attachments.first.nil? %> <% end %> <% unless @project_journal_messages.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 %>
<%= l(:label_mail_policy) %>: <% [: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 %>