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
Tatuya Kamada
gitlab-ce
Commits
3f1bd844
Commit
3f1bd844
authored
Feb 04, 2016
by
Josh Frye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement changes from MR feedback
parent
74a4ff61
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
app/controllers/explore/projects_controller.rb
app/controllers/explore/projects_controller.rb
+6
-6
app/views/dashboard/_projects_head.html.haml
app/views/dashboard/_projects_head.html.haml
+7
-7
app/views/explore/projects/starred.html.haml
app/views/explore/projects/starred.html.haml
+1
-1
app/views/explore/projects/trending.html.haml
app/views/explore/projects/trending.html.haml
+1
-1
app/views/shared/projects/_list.html.haml
app/views/shared/projects/_list.html.haml
+1
-1
No files found.
app/controllers/explore/projects_controller.rb
View file @
3f1bd844
...
@@ -11,14 +11,14 @@ class Explore::ProjectsController < Explore::ApplicationController
...
@@ -11,14 +11,14 @@ class Explore::ProjectsController < Explore::ApplicationController
end
end
def
trending
def
trending
@
trending_
projects
=
TrendingProjectsFinder
.
new
.
execute
(
current_user
)
@projects
=
TrendingProjectsFinder
.
new
.
execute
(
current_user
)
@
trending_projects
=
@trending_
projects
.
non_archived
@
projects
=
@
projects
.
non_archived
@
trending_projects
=
@trending_
projects
.
page
(
params
[
:page
]).
per
(
PER_PAGE
)
@
projects
=
@
projects
.
page
(
params
[
:page
]).
per
(
PER_PAGE
)
end
end
def
starred
def
starred
@
starred_
projects
=
ProjectsFinder
.
new
.
execute
(
current_user
)
@projects
=
ProjectsFinder
.
new
.
execute
(
current_user
)
@
starred_projects
=
@starred_
projects
.
reorder
(
'star_count DESC'
)
@
projects
=
@
projects
.
reorder
(
'star_count DESC'
)
@
starred_projects
=
@starred_
projects
.
page
(
params
[
:page
]).
per
(
PER_PAGE
)
@
projects
=
@
projects
.
page
(
params
[
:page
]).
per
(
PER_PAGE
)
end
end
end
end
app/views/dashboard/_projects_head.html.haml
View file @
3f1bd844
...
@@ -13,10 +13,10 @@
...
@@ -13,10 +13,10 @@
Explore Projects
Explore Projects
.nav-controls
.nav-controls
=
form_tag
request
.
original_url
,
method: :get
,
class:
'project-filter-form'
,
id:
'project-filter-form'
do
|
f
|
.pull-right
.append-right-10.hidden-xs.hidden-sm
=
form_tag
request
.
original_url
,
method: :get
,
class:
'pull-left project-filter-form'
,
id:
'project-filter-form'
do
|
f
|
=
search_field_tag
:filter_projects
,
params
[
:filter_projects
],
placeholder:
'Filter by name...'
,
class:
'p
roject-filter-form-field form-control search-text-input
'
,
spellcheck:
false
,
id:
'project-filter-form-field'
=
search_field_tag
:filter_projects
,
params
[
:filter_projects
],
placeholder:
'Filter by name...'
,
class:
'p
ull-left form-control project-filter-form-field form-control
'
,
spellcheck:
false
,
id:
'project-filter-form-field'
-
if
current_user
.
can_create_project?
-
if
current_user
.
can_create_project?
=
link_to
new_project_path
,
class:
'btn btn-new
'
do
=
link_to
new_project_path
,
class:
'btn btn-new pull-left
'
do
=
icon
(
'plus'
)
=
icon
(
'plus'
)
New Project
New Project
app/views/explore/projects/starred.html.haml
View file @
3f1bd844
...
@@ -7,5 +7,5 @@
...
@@ -7,5 +7,5 @@
=
render
'explore/head'
=
render
'explore/head'
=
render
'explore/projects/nav'
=
render
'explore/projects/nav'
=
render
'projects'
,
projects:
@
starred_
projects
=
render
'projects'
,
projects:
@projects
=
paginate
@projects
,
theme:
'gitlab'
if
@projects
=
paginate
@projects
,
theme:
'gitlab'
if
@projects
app/views/explore/projects/trending.html.haml
View file @
3f1bd844
...
@@ -7,4 +7,4 @@
...
@@ -7,4 +7,4 @@
=
render
'explore/head'
=
render
'explore/head'
=
render
'explore/projects/nav'
=
render
'explore/projects/nav'
=
render
'projects'
,
projects:
@
trending_
projects
=
render
'projects'
,
projects:
@projects
app/views/shared/projects/_list.html.haml
View file @
3f1bd844
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
avatar:
avatar
,
stars:
stars
,
css_class:
css_class
,
ci:
ci
,
use_creator_avatar:
use_creator_avatar
,
avatar:
avatar
,
stars:
stars
,
css_class:
css_class
,
ci:
ci
,
use_creator_avatar:
use_creator_avatar
,
forks:
forks
,
show_last_commit_as_description:
show_last_commit_as_description
forks:
forks
,
show_last_commit_as_description:
show_last_commit_as_description
-
if
projects
.
size
>
projects_limit
-
if
projects
.
size
>
projects_limit
&&
projects
.
kind_of?
(
Array
)
%li
.bottom.center
%li
.bottom.center
.light
.light
#{
projects_limit
}
of
#{
pluralize
(
projects
.
count
,
'project'
)
}
displayed.
#{
projects_limit
}
of
#{
pluralize
(
projects
.
count
,
'project'
)
}
displayed.
...
...
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