diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-09 20:28:47 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-09 20:28:47 +0300 |
commit | a7e30d65a97a9c519f9a3ec8fc49c9efc86a51b4 (patch) | |
tree | 468cdb4ebb5fff30ddcb82cc8bc25e5c172b7361 /app/views/projects/tree | |
parent | 66d3894d53995b01e5a6c0686ca9b787a7bec1c7 (diff) |
Add .breadcrumb-item for breadcrumb > li
Diffstat (limited to 'app/views/projects/tree')
-rw-r--r-- | app/views/projects/tree/_tree_header.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml index dea6ea2fb4c..3385182ee8a 100644 --- a/app/views/projects/tree/_tree_header.html.haml +++ b/app/views/projects/tree/_tree_header.html.haml @@ -8,15 +8,15 @@ - addtotree_toggle_attributes = { title: _("You can only add files when you are on a branch"), data: { container: 'body' }, class: 'disabled has-tooltip' } %ul.breadcrumb.repo-breadcrumb - %li + %li.breadcrumb-item = link_to project_tree_path(@project, @ref) do = @project.path - path_breadcrumbs do |title, path| - %li + %li.breadcrumb-item = link_to truncate(title, length: 40), project_tree_path(@project, tree_join(@ref, path)) - if current_user - %li + %li.breadcrumb-item %a.btn.add-to-tree{ addtotree_toggle_attributes } = sprite_icon('plus', size: 16, css_class: 'pull-left') = sprite_icon('arrow-down', size: 16, css_class: 'pull-left') |