Commit, network graph refactoring
This commit is contained in:
parent
1b2fba08fe
commit
a031813887
14 changed files with 125 additions and 97 deletions
|
@ -10,6 +10,6 @@
|
|||
.right
|
||||
- klass = update.class.to_s.split("::").last.downcase
|
||||
%span.tag{ :class => klass }= klass
|
||||
- if update.kind_of?(Grit::Commit)
|
||||
- if update.kind_of?(Commit)
|
||||
%span.tag.commit= update.head.name
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- file = params[:path] ? File.join(params[:path], content.name) : content.name
|
||||
- content_commit = @project.repo.log(@commit.id, file, :max_count => 1).last
|
||||
- content_commit = @project.commits(@commit.id, file, 1).last
|
||||
- return unless content_commit
|
||||
%tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) }
|
||||
%td.tree-item-file-name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue