diff options
author | Kushal Pandya <kushal@gitlab.com> | 2016-12-22 15:22:05 +0300 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2016-12-31 09:13:08 +0300 |
commit | 71000b24a48e4e6d15a37bb92ccc4758ff106c3e (patch) | |
tree | df32c119769fffba5da873d7b70caa820a58204f /app/views/projects/branches/_branch.html.haml | |
parent | fa432f0c07ff0add713288be3d03c26915ecef47 (diff) |
HAMLLint: Fix `HtmlAttributes` offences
Diffstat (limited to 'app/views/projects/branches/_branch.html.haml')
-rw-r--r-- | app/views/projects/branches/_branch.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml index 9135cee8364..2eb49685f08 100644 --- a/app/views/projects/branches/_branch.html.haml +++ b/app/views/projects/branches/_branch.html.haml @@ -4,7 +4,7 @@ - number_commits_behind = diverging_commit_counts[:behind] - number_commits_ahead = diverging_commit_counts[:ahead] - merge_project = can?(current_user, :create_merge_request, @project) ? @project : (current_user && current_user.fork_of(@project)) -%li(class="js-branch-#{branch.name}") +%li{ class: "js-branch-#{branch.name}" } %div = link_to namespace_project_tree_path(@project.namespace, @project, branch.name), class: 'item-title str-truncated' do = branch.name @@ -12,7 +12,7 @@ - if branch.name == @repository.root_ref %span.label.label-primary default - elsif @repository.merged_to_root_ref? branch.name - %span.label.label-info.has-tooltip(title="Merged into #{@repository.root_ref}") + %span.label.label-info.has-tooltip{ title: "Merged into #{@repository.root_ref}" } merged - if @project.protected_branch? branch.name |