<%= @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)%>

<% if !@course_news.first.nil? || !@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_attachments.first %>

<%= l(:label_project_overview_new) %>

<% if !@issues.first.nil? || !@issues_journals.first.nil? %> <% end %> <% unless @project_messages.first.nil? %> <% end %> <% unless @wiki_contents.first.nil? %> <% end %> <% if !@project_news.first.nil? || !@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(mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %> <% end %> <% end %>