myshixuns 版本库entry

This commit is contained in:
huang 2017-03-14 10:08:49 +08:00
parent 6ec7769c0e
commit c069279105
4 changed files with 18 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<a href="javascript:history.go(-1)" class="fl linkBlue2 mt3" >
<span class="new_roadmap_icons_back mr5"></span>
<span></span>返回上级目录
<%= render :partial => 'mushixun_breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %>
<%= render :partial => 'myshixun_breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %>
</a>
</td>
</tr>

View File

@ -0,0 +1,16 @@
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
<div class="wrap-big">
<div style="padding-left: 8px;">
<!--目录跳转-->
<div class="fl mt3">
<%= render :partial => 'myshixun_breadcrumbs', :locals => {:path => @path, :kind => 'dir', :revision => @rev} %>
</div>
<div class="cl"></div>
<%= render :partial => 'latest_commit' %>
<%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
</div>
</div>

View File

@ -39,7 +39,6 @@ RedmineApp::Application.routes.draw do
get 'rep_tree_changes', :action => 'rep_tree_changes', :as => 'rep_tree_changes'
end
collection do
match 'training_task_status', :via => [:get, :post]
end
resources :challenges do
@ -61,7 +60,7 @@ RedmineApp::Application.routes.draw do
end
collection do
match 'training_task_status', :via => [:get, :post]
end
resources :games do
member do