Remove decorator calls and methods from views. Repalace with helper calls when needed
This commit is contained in:
parent
da5b0c91dc
commit
b53557aca6
13 changed files with 18 additions and 21 deletions
|
@ -3,7 +3,7 @@
|
|||
%i.icon-angle-right
|
||||
= link_to project_tree_path(@project, @ref) do
|
||||
= @project.path
|
||||
- tree.breadcrumbs(6) do |title, path|
|
||||
- tree_breadcrumbs(tree, 6) do |title, path|
|
||||
\/
|
||||
%li
|
||||
- if path
|
||||
|
@ -27,7 +27,7 @@
|
|||
%tr.tree-item
|
||||
%td.tree-item-file-name
|
||||
= image_tag "file_empty.png", size: '16x16'
|
||||
= link_to "..", project_tree_path(@project, tree.up_dir_path)
|
||||
= link_to "..", project_tree_path(@project, up_dir_path(tree))
|
||||
%td
|
||||
%td
|
||||
%td
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
%span.tree_author= commit.author_link avatar: true
|
||||
%span.tree_author= commit_author_link(commit, avatar: true)
|
||||
= link_to_gfm truncate(commit.title, length: 80), project_commit_path(@project, commit.id), class: "tree-commit-link"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue