Merge branch 'dev_shixun_project' of https://git.trustie.net/jacknudt/trustieforge into dev_shixun_project

This commit is contained in:
daiao 2017-04-01 09:52:36 +08:00
commit ce774a7159
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@
<% if @challenges.count != 0 %>
<span class="btn-cir btn-cir-grey ml5 mt8 fl"><%= @challenges.count %></span>
<% end %>
<a href="<%= new_shixun_challenge_path(@shixun) %>" class=" task-btn task-btn-green fr">新建阶段</a>
<% if User.current.manager_of_shixun?(@shixun) || User.current.admin? %>
<a href="<%= new_shixun_challenge_path(@shixun) %>" class=" task-btn task-btn-green fr">新建阶段</a>
<% end %>
</div>
<div class="panel-list">
<% @challenges.each_with_index do |challenge, index| -%>