|
|
@ -1,6 +1,6 @@
|
|
|
|
<div class="bor-bottom-greyE clearfix pl20 pr20 pt40 pb20 edu-back-white challengeNav">
|
|
|
|
<div class="bor-bottom-greyE clearfix pl20 pr20 pt40 pb20 edu-back-white challengeNav">
|
|
|
|
<a href="<%= shixun_challenges_url(@shixun) %>" class="<%= params[:action] == "index" ? "active" : "" %> fl mr40">任务</a>
|
|
|
|
<a href="<%= shixun_challenges_url(@shixun) %>" class="<%= params[:action] == "index" ? "active" : "" %> fl mr40">任务</a>
|
|
|
|
<% if @shixun.propaedeutics.present? %>
|
|
|
|
<% if @shixun.try(:propaedeutics).present? %>
|
|
|
|
<a href="<%= propaedeutics_shixun_path(@shixun) %>" class="<%= params[:action] == "propaedeutics" ? "active" : "" %> fl mr40">背景知识</a>
|
|
|
|
<a href="<%= propaedeutics_shixun_path(@shixun) %>" class="<%= params[:action] == "propaedeutics" ? "active" : "" %> fl mr40">背景知识</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if User.current.manager_of_shixun?(@shixun) %>
|
|
|
|
<% if User.current.manager_of_shixun?(@shixun) %>
|
|
|
|