summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-01-23 17:35:31 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-04-24 18:17:43 -0500
commit49e9fd05bfbb4dfe15b1698cc00883afdb3ef313 (patch)
tree932446c7f4a100d8bbbe51de63eec1e27adeaef6 /app
parent967019f7792175c9fc010069657a7e09cf278575 (diff)
downloadgitlab-ce-49e9fd05bfbb4dfe15b1698cc00883afdb3ef313.tar.gz
Changed the way to truncate the panel to title from ruby to a scss mixin
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/framework/common.scss4
-rw-r--r--app/views/projects/project_members/_team.html.haml6
2 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss
index 0fd7203e72b..f4f285f0fdc 100644
--- a/app/assets/stylesheets/framework/common.scss
+++ b/app/assets/stylesheets/framework/common.scss
@@ -425,6 +425,10 @@ table {
}
.str-truncated {
+ &-30 {
+ @include str-truncated(30%);
+ }
+
&-60 {
@include str-truncated(60%);
}
diff --git a/app/views/projects/project_members/_team.html.haml b/app/views/projects/project_members/_team.html.haml
index 81d57c77edf..b875fa2eec4 100644
--- a/app/views/projects/project_members/_team.html.haml
+++ b/app/views/projects/project_members/_team.html.haml
@@ -1,7 +1,9 @@
.panel.panel-default
.panel-heading
- Members with access to
- %strong= @project.name
+ %span.str-truncated-30
+ Members of
+ %strong
+ #{@project.name}
%span.badge= @project_members.total_count
= form_tag namespace_project_settings_members_path(@project.namespace, @project), method: :get, class: 'form-inline member-search-form' do
.form-group