BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
cb43d88a
Commit
cb43d88a
authored
Mar 17, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:gitlabhq/gitlabhq
parents
90d7ac3b
d5796975
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
dashboard_controller.rb
app/controllers/dashboard_controller.rb
+2
-0
_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 @
cb43d88a
...
...
@@ -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 @
cb43d88a
...
...
@@ -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