开启实训权限

This commit is contained in:
huang 2017-03-14 17:37:56 +08:00
parent d10ac9b7fe
commit c920582fff
1 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
<% update_visiti_count @shixun %>
<div class="task-header">
<div class="task-header-info">
<h2 class="fl">
<a href="<%= user_path(@shixun.owner) %>"><%= @shixun.owner.try(:show_name) %>导师</a>
<span class="ml5 mr5">/ </span><a href="<%= shixun_path(@shixun.parent) %>"><%= @shixun.name %></a>
</h2>
<a href="javascript:void(0);" class="fr task-btn task-btn-orange">开始挑战</a>
<% if allow_shixun_exec(@shixun) %>
<%= link_to "开始挑战", shixun_monitor_shixun_path(@shixun), :class => "fr task-btn task-btn-orange", :remote => true %>
<% end %>
<div class="cl"></div>
</div>
</div>