Commit 334313a7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show shared projects on Group#show in admin area

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 44b3404e
......@@ -44,6 +44,22 @@
%span.pull-right.light
%span.monospace= project.path_with_namespace + ".git"
- if @group.shared_projects.any?
.ui-box
.title
Projects shared with #{@group.name}
%small
(#{@group.shared_projects.count})
%ul.well-list
- @group.shared_projects.sort_by(&:name).each do |project|
%li
%strong
= link_to project.name_with_namespace, [:admin, project]
%span.label.label-gray
= repository_size(project)
%span.pull-right.light
%span.monospace= project.path_with_namespace + ".git"
.col-md-6
.ui-box
.title
......
......@@ -16,6 +16,3 @@
= truncate(project.name, length: 25)
%span.arrow
%i.icon-angle-right
%span.last-activity
%span Last activity:
%span.date= project_last_activity(project)
......@@ -9,7 +9,7 @@
Members
= nav_link(controller: :group_links) do
= link_to project_group_links_path(@project) do
%span
%i.icon-share
Groups
= nav_link(controller: :deploy_keys) do
= link_to project_deploy_keys_path(@project) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment