<%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/common', 'css/structure','css/public', 'prettify','css/project','css/courses','css/popup','syllabus','css/moduel', 'css/user', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> <%= javascript_include_tag "bootstrap","avatars","new_user",'attachments','prettify','contest'%> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%>
<% if hidden_unproject_infos %>
  • <%= link_to '竞赛',{:controller => "users", :action => "user_contestlist", :id => @user}, :id => "user_contest_list" %> <%= link_to '全部',{:controller => "users", :action => "user_contestlist", :id => @user}, :style => "color:#aaa;" %> <% contests = @user.favorite_contests.visible.where("is_delete =?", 0).select("contests.*,(SELECT MAX(updated_at) FROM `contest_activities` WHERE contest_activities.contest_id = contests.id) AS a").order("a desc").limit(10) %> <% unless contests.empty? %>
    <%= render :partial => 'layouts/homepage_left_contest_list', :locals => {:contests => contests} %>
    <% end %>
  • <% if is_current_user %>
  • <%= link_to "新建竞赛", new_contest_path(), :target => "_blank", :style => "font-size:14px;" %>
  • <%= link_to "加入竞赛",join_contest_contests_path(),:remote => true, :method => "get", :style => "font-size:14px;" %>
  • <% end %>
<% end %>
<%# 更新访问数,刷新的时候更新访问次数 %> <%# update_visiti_count @user %>
<%= yield %>
<%= render :partial => 'layouts/footer' %>