Merge branch 'dev_shixun_project' of https://git.trustie.net/jacknudt/trustieforge into dev_shixun_project
This commit is contained in:
commit
ce774a7159
|
@ -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| -%>
|
||||
|
|
Loading…
Reference in New Issue