实训任务build
This commit is contained in:
parent
8d6fb4d071
commit
fc91dce7ba
|
@ -47,10 +47,6 @@ class ChallengesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
# 顶部导航
|
|
||||||
@project_menu_type = 11
|
|
||||||
# 打开编辑内容
|
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js
|
format.js
|
||||||
|
|
|
@ -13,7 +13,7 @@ class ShixunsController < ApplicationController
|
||||||
def shixun_monitor
|
def shixun_monitor
|
||||||
monitor_filter
|
monitor_filter
|
||||||
if @had_exec
|
if @had_exec
|
||||||
@tpm = Shixun.where(:forked_from_project_id => shixun.id, :user_id => User.current.id).first
|
@tpm = Shixun.where(:forked_form => @shixun.id, :user_id => User.current.id).first
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
|
@ -26,10 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td >
|
<td >
|
||||||
<% if challenge.journals.count != 0 %>
|
|
||||||
<a href="javascript:void(0);" class="issues_icons_mes fl mr5 ml5 "></a>
|
|
||||||
<a href="javascript:void(0);" class="fl mt2"><%= challenge.journals.count %></a>
|
|
||||||
<% end %>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
|
@ -31,15 +31,10 @@
|
||||||
<div style="text-align:left;">
|
<div style="text-align:left;">
|
||||||
<div style="width:auto; display:inline-block;">
|
<div style="width:auto; display:inline-block;">
|
||||||
<ul>
|
<ul>
|
||||||
<a href="javascript:void(0);" id="sendexcel" class="fl ml15 mt15" style="<%= @chanlleges_count > 10 ? 'height:24px;line-height:0;' : 'height:0;line-height:0;' %>"></a>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="pages fr" style="width:auto; display:inline-block;">
|
|
||||||
<ul id="issue_list_pagination" class="fr">
|
|
||||||
<%= pagination_links_full @challenges_pages, @chanlleges_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
|
|
||||||
</ul>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
<div id="issue_detail_show">
|
<div id="issue_detail_show">
|
||||||
<%= @challenge.subject %>
|
<%= @challenge.subject %>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<%= link_to "提交评测", challenge_build_path(@challenge, :shixun_id => @shixun), :class => "task-display-span bBlue mt10", :onclick => "training_task_submmit();", :remote => true %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--problem_main end-->
|
<!--problem_main end-->
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<label class="mr27"> </label>
|
<label class="mr27"> </label>
|
||||||
<a href="javascript:void(0);" class="sy_btn_grey fl " onclick="hideModal()">取 消</a>
|
<a href="javascript:void(0);" class="sy_btn_grey fl " onclick="hideModal()">取 消</a>
|
||||||
<% if @had_exec == true %>
|
<% if @had_exec == true %>
|
||||||
<%= link_to "确 定", project_path(@tpm), :class => "sy_btn_blue fl ml20", :onclick => "hideModal();", :target => "_blank" %>
|
<%= link_to "确 定", shixun_path(@tpm), :class => "sy_btn_blue fl ml20", :onclick => "hideModal();", :target => "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to "确 定", shixun_exec_shixun_path(@shixun), :class => "sy_btn_blue fl ml20", :onclick => "hideModal();", :target => "_blank" %>
|
<%= link_to "确 定", shixun_exec_shixun_path(@shixun), :class => "sy_btn_blue fl ml20", :onclick => "hideModal();", :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
<%= @shixun.name %>
|
<%= @shixun.name %>
|
||||||
|
|
||||||
|
|
|
@ -42,12 +42,15 @@ RedmineApp::Application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :challenges do
|
resources :challenges do
|
||||||
|
member do
|
||||||
|
match 'challenge_build', :via => [:get, :post]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :repositories, :shallow => true, :except => [:index, :show] do
|
resources :repositories, :shallow => true, :except => [:index, :show] do
|
||||||
member do
|
member do
|
||||||
match 'committers', :via => [:get, :post]
|
match 'committers', :via => [:get, :post]
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue