Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
d5796975
Commit
d5796975
authored
Mar 17, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6544 from cirosantilli/show-link-to-public-projects-for-new-users
Show link to public projects for new users.
parents
0f204c32
548f070f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
app/controllers/dashboard_controller.rb
app/controllers/dashboard_controller.rb
+2
-0
app/views/dashboard/_zero_authorized_projects.html.haml
app/views/dashboard/_zero_authorized_projects.html.haml
+15
-0
No files found.
app/controllers/dashboard_controller.rb
View file @
d5796975
...
...
@@ -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
)
}
...
...
app/views/dashboard/_zero_authorized_projects.html.haml
View file @
d5796975
...
...
@@ -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 »
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment