实训配置界面
This commit is contained in:
parent
9db0698808
commit
8f2a040fee
|
@ -37,7 +37,7 @@
|
|||
<tr>
|
||||
<th><%= @repository.identifier %></th>
|
||||
<th>Git</th>
|
||||
<th><%=h @repos_url %></th>
|
||||
<th><%= h @repos_url %></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -14,19 +14,20 @@
|
|||
|
||||
<div class="task-header-nav">
|
||||
<ul class="task-header-navs clearfix">
|
||||
<li><a href="<%= shixun_challenges_url(@shixun) %>" class="active">实训</a></li>
|
||||
<li><a href="<%= shixun_challenges_url(@shixun) %>" class="<%= params[:action] == "index" ? "active" : "" %>" >实训</a></li>
|
||||
<% unless @shixun.repository.nil? %>
|
||||
<li>
|
||||
<%= link_to l(:project_module_repository),
|
||||
({:controller => 'repositories',
|
||||
:action => 'shixun_show',
|
||||
:id => @shixun,
|
||||
:repository_id => shixun_repository(@shixun).try(:identifier)})
|
||||
:repository_id => shixun_repository(@shixun).try(:identifier)}),
|
||||
:class => (params[:controller] == 'repositories' ? 'active' : '')
|
||||
%>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if User.current.manager_of_shixun?(@shixun) %>
|
||||
<li><a href="<%= settings_shixun_path(@shixun) %>">配置</a></li>
|
||||
<li><a href="<%= settings_shixun_path(@shixun) %>" class="<%= params[:action] == "settings" ? "active" : "" %>">配置</a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
35
db/schema.rb
35
db/schema.rb
|
@ -1144,8 +1144,8 @@ ActiveRecord::Schema.define(:version => 20170314085929) do
|
|||
t.string "name"
|
||||
t.integer "user_id"
|
||||
t.text "description"
|
||||
t.date "publish_time"
|
||||
t.date "end_time"
|
||||
t.datetime "publish_time"
|
||||
t.datetime "end_time"
|
||||
t.integer "homework_type", :default => 1
|
||||
t.string "late_penalty"
|
||||
t.integer "course_id"
|
||||
|
@ -1242,6 +1242,19 @@ ActiveRecord::Schema.define(:version => 20170314085929) do
|
|||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
create_table "ii", :force => true do |t|
|
||||
t.integer "project_id"
|
||||
t.string "author_login"
|
||||
t.string "rep_identifier"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "sonar_version", :default => 0
|
||||
t.string "path"
|
||||
t.string "branch"
|
||||
t.string "language"
|
||||
t.string "sonar_name"
|
||||
end
|
||||
|
||||
create_table "innodb_monitor", :id => false, :force => true do |t|
|
||||
t.integer "a"
|
||||
end
|
||||
|
@ -2103,21 +2116,17 @@ ActiveRecord::Schema.define(:version => 20170314085929) do
|
|||
t.string "name"
|
||||
t.text "description"
|
||||
t.text "script"
|
||||
t.boolean "is_public", :default => true
|
||||
t.boolean "is_public", :default => true
|
||||
t.integer "parent_id"
|
||||
t.integer "user_id"
|
||||
t.integer "gpid"
|
||||
t.integer "forked_count", :default => 0
|
||||
t.integer "visits", :default => 0
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "forked_count", :default => 0
|
||||
t.integer "visits", :default => 0
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "changeset_num"
|
||||
t.integer "forked_form"
|
||||
t.integer "status", :default => 0
|
||||
t.text "ready_knowledge"
|
||||
t.text "task_pass"
|
||||
t.text "answer"
|
||||
t.integer "score"
|
||||
t.integer "status", :default => 0
|
||||
end
|
||||
|
||||
create_table "softapplications", :force => true do |t|
|
||||
|
@ -2412,7 +2421,7 @@ ActiveRecord::Schema.define(:version => 20170314085929) do
|
|||
t.datetime "updated_at", :null => false
|
||||
t.integer "author_id"
|
||||
t.integer "status", :limit => 1, :default => 0
|
||||
t.integer "position", :limit => 1
|
||||
t.integer "position", :limit => 1, :default => 0
|
||||
t.integer "result", :default => 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue