diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-10-09 19:35:09 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-13 11:37:57 +0300 |
commit | 0e34154d214c0e470b7783b5086a70b4fe4cb08f (patch) | |
tree | 8f54c5945b71e620d39c434b675613b3dd2c4fe2 /app/views/shared | |
parent | fb8f604f1cdc2e114e3ebb55827353d07dd7778a (diff) | |
download | gitlab-ce-0e34154d214c0e470b7783b5086a70b4fe4cb08f.tar.gz |
Project names are not fully shown if group name is too big, even on group page viewgroup_names_widget
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/projects/_list.html.haml | 3 | ||||
-rw-r--r-- | app/views/shared/projects/_project.html.haml | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/shared/projects/_list.html.haml b/app/views/shared/projects/_list.html.haml index 16e1d8421de..357cfd6a370 100644 --- a/app/views/shared/projects/_list.html.haml +++ b/app/views/shared/projects/_list.html.haml @@ -2,11 +2,12 @@ - avatar = true unless local_assigns[:avatar] == false - stars = true unless local_assigns[:stars] == false - ci = false unless local_assigns[:ci] == true +- skip_namespace = false unless local_assigns[:skip_namespace] == true %ul.projects-list - projects.each_with_index do |project, i| - css_class = (i >= projects_limit) ? 'hide' : nil - = render "shared/projects/project", project: project, + = render "shared/projects/project", project: project, skip_namespace: skip_namespace, avatar: avatar, stars: stars, css_class: css_class, ci: ci - if projects.size > projects_limit diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml index e67e5a8a638..aee839b44e7 100644 --- a/app/views/shared/projects/_project.html.haml +++ b/app/views/shared/projects/_project.html.haml @@ -1,6 +1,7 @@ - avatar = true unless local_assigns[:avatar] == false - stars = true unless local_assigns[:stars] == false - ci = false unless local_assigns[:ci] == true +- skip_namespace = false unless local_assigns[:skip_namespace] == true - css_class = '' unless local_assigns[:css_class] - css_class += " no-description" unless project.description.present? %li.project-row{ class: css_class } @@ -11,7 +12,7 @@ = project_icon(project, alt: '', class: 'avatar project-avatar s46') %span.project-full-name %span.namespace-name - - if project.namespace + - if project.namespace && !skip_namespace = project.namespace.human_name \/ %span.project-name.filter-title |