Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarco Cyriacks <marco@cyriacks.net>2015-02-17 22:52:03 +0300
committerMarco Cyriacks <marco@cyriacks.net>2015-02-17 22:52:03 +0300
commit57e91940dd719564f395116c7d91870396b0d58b (patch)
treefb8e8177d9c4a0357ff2f72524a16c09832445cd /app
parent55a906f643b5d52722597f18f2f8e417e92dab6b (diff)
Add new style to "New group" button
The new group button style was changed to have the same look as the new project button (green background).
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/sections/dashboard.scss9
-rw-r--r--app/views/dashboard/_groups.html.haml2
2 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/stylesheets/sections/dashboard.scss b/app/assets/stylesheets/sections/dashboard.scss
index 77d403cc687..feb9a4ad295 100644
--- a/app/assets/stylesheets/sections/dashboard.scss
+++ b/app/assets/stylesheets/sections/dashboard.scss
@@ -120,6 +120,15 @@
}
}
+.dash-new-group {
+ background: $bg_success;
+ border: 1px solid $border_success;
+
+ a {
+ color: #FFF;
+ }
+}
+
.dash-list .str-truncated {
max-width: 72%;
}
diff --git a/app/views/dashboard/_groups.html.haml b/app/views/dashboard/_groups.html.haml
index ddf44270802..e3df43d8892 100644
--- a/app/views/dashboard/_groups.html.haml
+++ b/app/views/dashboard/_groups.html.haml
@@ -3,7 +3,7 @@
.input-group
= search_field_tag :filter_group, nil, placeholder: 'Filter by name', class: 'dash-filter form-control'
- if current_user.can_create_group?
- .input-group-addon
+ .input-group-addon.dash-new-group
= link_to new_group_path, class: "" do
%strong New group
%ul.well-list.dash-list