gitlab-org--gitlab-foss/app/views/groups/_projects.html.haml
Dmitriy Zaporozhets 0377069841
Use css truncation instead of rails
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-08 12:42:57 +02:00

21 lines
745 B
Text

.ui-box
.title
Projects (#{projects.count})
- if can? current_user, :manage_group, @group
%span.pull-right
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
%i.icon-plus
New project
%ul.well-list
- if projects.blank?
%p.nothing_here_message This groups has no projects yet
- projects.each do |project|
%li.project-row
= link_to project_path(project), class: dom_class(project) do
.dash-project-access-icon
= visibility_level_icon(project.visibility_level)
%span.str-truncated
%span.project-name
= truncate(project.name, length: 25)
%span.arrow
%i.icon-angle-right