Commit a4382316 authored by Mayra Cabrera's avatar Mayra Cabrera

Address discussions on the ME

- Fixes thinner right border on the limit box
- Adds and 'elsif' on @branches for the scenario in which a commit is not related to a branch
- Fixes small details on limit_exceeded_for_message partial
parent 7ebf0331
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
background: $blue-100; background: $blue-100;
border-radius: $border-radius-default; border-radius: $border-radius-default;
display: inline-block; display: inline-block;
padding: 1px 1px 0.5px; padding: 1px 2px 0.5px;
text-align: center; text-align: center;
vertical-align: bottom; vertical-align: bottom;
......
.has-tooltip{ class: "limit-box limit-box-#{objects.to_s.singularize} prepend-left-5", data: { title: "Project has too many #{label_for_message} to search"} } .has-tooltip{ class: "limit-box limit-box-#{objects} prepend-left-5", data: { title: "Project has too many #{label_for_message} to search"} }
.limit-icon .limit-icon
- if objects == :branches - if objects == :branch
= icon('code-fork') = icon('code-fork')
- else - else
= icon('tag') = icon('tag')
.limit-message .limit-message
%span #{objects.capitalize} unavailable %span #{label_for_message.capitalize} unavailable
- if @branches_limit_exceeded - if @branches_limit_exceeded
= render 'limit_exceeded_message', objects: :branches, label_for_message: _('branches') = render 'limit_exceeded_message', objects: :branch, label_for_message: "branches"
- else - elsif @branches.any?
- branch = commit_default_branch(@project, @branches) - branch = commit_default_branch(@project, @branches)
= commit_branch_link(project_ref_path(@project, branch), branch) = commit_branch_link(project_ref_path(@project, branch), branch)
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
%span.js-details-content.hide %span.js-details-content.hide
= commit_branches_links(@project, @branches) = commit_branches_links(@project, @branches)
- if @tags_limit_exceeded - if @tags_limit_exceeded
= render 'limit_exceeded_message', objects: :tags, label_for_message: _('tags') = render 'limit_exceeded_message', objects: :tag, label_for_message: "tags"
- else - else
= commit_tags_links(@project, @tags) = commit_tags_links(@project, @tags)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment