<% work_num = visable_contest_work @contest %> <% is_admin = User.current.admin? || User.current.admin_of_contest?(@contest) %> <%= h html_title %> <%= csrf_meta_tag %> <%= favicon %> <%= javascript_heads %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/common','css/public', 'css/structure','prettify', 'css/courses','css/popup','sy_public','syllabus', 'css/moduel','css/contest'%> <%= javascript_include_tag "course","avatars","header","attachments",'prettify','contest' %> <%= yield :header_tags -%>
<%= render :partial => 'contests/contest_base_info' %>
  • <%= link_to '竞赛首页', contest_path(@contest) %>
  • <%= link_to '动态', contest_activities_contest_path(@contest) %>
  • 提交<%= work_num%> <% if is_admin %> <% end %>
  • <% contest_board = @contest.boards.where("parent_id is NULL").first %>
  • <% count = contest_board ? contest_board.messages.count : 0 %> 讨论区<%=count %> <%= link_to( "",contest_boards_path(@contest, :flag => true, :is_new => 1), :class => 'sy_class_add', :title =>"#{l(:label_message_new)}") if is_admin %>
  • <%= render :partial => 'layouts/contest_board_children_list', :locals => {:contest_board => contest_board} if contest_board %>
  • <%= link_to "通知#{@contest.news.count}".html_safe, contest_news_index_path(@contest), :class => "sy_icons_feedback" %> <% if is_admin %> <%= link_to "", contest_news_index_path(@contest,:is_new => 1), :class => "sy_class_add" %> <% end %>
  • 留言<%=contest_feedback_count %> <%= link_to( "", feedback_contest_path(@contest), :class => 'sy_class_add', :title =>"#{l(:label_course_feedback)}") if User.current.member_of_contest?(@contest) %>
<%= render_flash_messages %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<%= render :partial => 'layouts/footer' %>
<% if hidden_unproject_infos %> <%= render :partial => 'layouts/new_feedback' %> <% end %> <%= call_hook :view_layouts_base_body_bottom %>