summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Taylor <rob@uxblondon.com>2014-07-31 16:57:41 +0100
committerRob Taylor <rob@uxblondon.com>2014-07-31 17:03:47 +0100
commite8e2de0731bc1a6bfc62c4052b1af02a484d92c3 (patch)
tree1c1a552ca7c6df15a77a6563700bc40d8a673276
parent3ed2fce208474face31a6df2dbbdc60b49826238 (diff)
downloadgitlab-ce-e8e2de0731bc1a6bfc62c4052b1af02a484d92c3.tar.gz
Removed redundant spans
-rw-r--r--app/views/dashboard/_groups.html.haml7
-rw-r--r--app/views/dashboard/_projects.html.haml7
2 files changed, 6 insertions, 8 deletions
diff --git a/app/views/dashboard/_groups.html.haml b/app/views/dashboard/_groups.html.haml
index cb9c18b7966..9bcc77b8d8e 100644
--- a/app/views/dashboard/_groups.html.haml
+++ b/app/views/dashboard/_groups.html.haml
@@ -2,10 +2,9 @@
.panel-heading.clearfix
= search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
- if current_user.can_create_group?
- %span.pull-right
- = link_to new_group_path, class: "btn btn-new" do
- %i.icon-plus
- New group
+ = link_to new_group_path, class: "btn btn-new pull-right" do
+ %i.icon-plus
+ New group
%ul.well-list.dash-list
- groups.each do |group|
%li.group-row
diff --git a/app/views/dashboard/_projects.html.haml b/app/views/dashboard/_projects.html.haml
index 5a49bf0c6b1..0cc253a8dd1 100644
--- a/app/views/dashboard/_projects.html.haml
+++ b/app/views/dashboard/_projects.html.haml
@@ -2,10 +2,9 @@
.panel-heading.clearfix
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
- if current_user.can_create_project?
- %span.pull-right
- = link_to new_project_path, class: "btn btn-new" do
- %i.icon-plus
- New project
+ = link_to new_project_path, class: "btn btn-new pull-right" do
+ %i.icon-plus
+ New project
%ul.well-list.dash-list
- projects.each do |project|