bug fix: history in commit history not working as expected for tags and branches
This commit is contained in:
parent
edeb20e95b
commit
61e6751ea6
2 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@
|
||||||
%th Last Update
|
%th Last Update
|
||||||
%th
|
%th
|
||||||
Last commit
|
Last commit
|
||||||
= link_to "history", project_commits_path(@project, :path => params[:path]), :class => "right"
|
= link_to "history", project_commits_path(@project, :path => params[:path], :branch => params[:branch],:tag => params[:tag]), :class => "right"
|
||||||
- if params[:path]
|
- if params[:path]
|
||||||
- file = File.join(params[:path], "..")
|
- file = File.join(params[:path], "..")
|
||||||
%tr{ :class => "tree-item", :url => tree_file_project_path(@project, @commit.id, file) }
|
%tr{ :class => "tree-item", :url => tree_file_project_path(@project, @commit.id, file) }
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%strong
|
%strong
|
||||||
= name
|
= name
|
||||||
= link_to "raw", blob_project_path(@project, :commit_id => @commit.id, :path => params[:path] ), :class => "right", :target => "_blank"
|
= link_to "raw", blob_project_path(@project, :commit_id => @commit.id, :path => params[:path] ), :class => "right", :target => "_blank"
|
||||||
= link_to "history", project_commits_path(@project, :path => params[:path]), :class => "right", :style => "margin-right:10px;"
|
= link_to "history", project_commits_path(@project, :path => params[:path], :branch => params[:branch], :tag => params[:tag] ), :class => "right", :style => "margin-right:10px;"
|
||||||
%br/
|
%br/
|
||||||
- if file.text?
|
- if file.text?
|
||||||
.view_file_content
|
.view_file_content
|
||||||
|
|
Loading…
Add table
Reference in a new issue