mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Show link to public projects for new users.
This commit is contained in:
@ -22,6 +22,8 @@ class DashboardController < ApplicationController
|
||||
|
||||
@last_push = current_user.recent_push
|
||||
|
||||
@publicish_project_count = Project.publicish(current_user).count
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json { pager_json("events/_events", @events.count) }
|
||||
|
@ -34,3 +34,18 @@
|
||||
= link_to new_group_path, class: "btn btn-new" do
|
||||
New group »
|
||||
|
||||
-if @publicish_project_count > 0
|
||||
%hr
|
||||
%div
|
||||
.dashboard-intro-icon
|
||||
%i.icon-globe
|
||||
%div
|
||||
%p.slead
|
||||
There are
|
||||
%strong= @publicish_project_count
|
||||
public projects on this server.
|
||||
%br
|
||||
Public projects are an easy way to allow everyone to have read-only access.
|
||||
.link_holder
|
||||
= link_to public_projects_path, class: "btn btn-new" do
|
||||
Browse public projects »
|
||||
|
Reference in New Issue
Block a user