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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b74c5dbc
Commit
b74c5dbc
authored
Jan 27, 2019
by
Camil Staps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add message on starrers view when nobody has starred a repository yet
parent
5e131bca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
app/views/projects/starrers/index.html.haml
app/views/projects/starrers/index.html.haml
+22
-18
No files found.
app/views/projects/starrers/index.html.haml
View file @
b74c5dbc
...
@@ -5,21 +5,25 @@
...
@@ -5,21 +5,25 @@
%span
.flex-project-title
%span
.flex-project-title
=
_
(
"Starrers of <strong>%{project_name}</strong>"
).
html_safe
%
{
project_name:
sanitize_project_name
(
@project
.
name
)
}
=
_
(
"Starrers of <strong>%{project_name}</strong>"
).
html_safe
%
{
project_name:
sanitize_project_name
(
@project
.
name
)
}
%span
.badge.badge-pill
=
@starrers
.
size
%span
.badge.badge-pill
=
@starrers
.
size
.nav-controls
-
if
@starrers
.
size
>
0
=
form_tag
request
.
original_url
,
method: :get
,
class:
'form-inline user-search-form flex-users-form'
do
.nav-controls
.form-group
=
form_tag
request
.
original_url
,
method: :get
,
class:
'form-inline user-search-form flex-users-form'
do
.position-relative
.form-group
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
_
(
'Find starrers by name'
),
class:
'form-control'
,
spellcheck:
false
}
.position-relative
%button
.user-search-btn
{
type:
"submit"
,
"aria-label"
=>
_
(
"Submit search"
)
}
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
_
(
'Find starrers by name'
),
class:
'form-control'
,
spellcheck:
false
}
=
icon
(
"search"
)
%button
.user-search-btn
{
type:
"submit"
,
"aria-label"
=>
_
(
"Submit search"
)
}
.dropdown.inline.user-sort-dropdown
=
icon
(
"search"
)
=
dropdown_toggle
(
users_sort_options_hash
[
@sort
],
{
toggle:
'dropdown'
})
.dropdown.inline.user-sort-dropdown
%ul
.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
=
dropdown_toggle
(
users_sort_options_hash
[
@sort
],
{
toggle:
'dropdown'
})
%li
.dropdown-header
%ul
.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
=
_
(
"Sort by"
)
%li
.dropdown-header
-
users_sort_options_hash
.
each
do
|
value
,
title
|
=
_
(
"Sort by"
)
%li
-
users_sort_options_hash
.
each
do
|
value
,
title
|
=
link_to
filter_user_path
(
sort:
value
),
class:
(
"is-active"
if
@sort
==
value
)
do
%li
=
title
=
link_to
filter_user_path
(
sort:
value
),
class:
(
"is-active"
if
@sort
==
value
)
do
.row.prepend-top-10
=
title
=
render
partial:
'starrer'
,
collection:
@starrers
,
as: :user
-
if
@starrers
.
size
>
0
.row.prepend-top-10
=
render
partial:
'starrer'
,
collection:
@starrers
,
as: :user
-
else
.nothing-here-block
Nobody has starred this repository yet
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