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
Léo-Paul Géneau
gitlab-ce
Commits
fc8d64b3
Commit
fc8d64b3
authored
Mar 12, 2016
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Project#publicish
parent
42fcd388
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
app/models/project.rb
app/models/project.rb
+0
-6
app/views/dashboard/projects/_zero_authorized_projects.html.haml
...ws/dashboard/projects/_zero_authorized_projects.html.haml
+2
-2
No files found.
app/models/project.rb
View file @
fc8d64b3
...
...
@@ -252,12 +252,6 @@ class Project < ActiveRecord::Base
where
(
'projects.last_activity_at < ?'
,
6
.
months
.
ago
)
end
def
publicish
(
user
)
visibility_levels
=
[
Project
::
PUBLIC
]
visibility_levels
<<
Project
::
INTERNAL
if
user
where
(
visibility_level:
visibility_levels
)
end
def
with_push
joins
(
:events
).
where
(
'events.action = ?'
,
Event
::
PUSHED
)
end
...
...
app/views/dashboard/projects/_zero_authorized_projects.html.haml
View file @
fc8d64b3
-
publicish_project_count
=
Project
.
publicish
(
current_user
).
count
-
publicish_project_count
=
Project
sFinder
.
new
.
execute
(
current_user
).
count
%h3
.page-title
Welcome to GitLab!
%p
.light
Self hosted Git management application.
%hr
...
...
@@ -18,7 +18,7 @@
-
if
current_user
.
can_create_project?
.link_holder
=
link_to
new_project_path
,
class:
"btn btn-new"
do
%i
.fa.fa-plus
=
icon
(
'plus'
)
New Project
-
if
current_user
.
can_create_group?
...
...
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