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
a3ef844c
Commit
a3ef844c
authored
Jul 24, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix star button icon alignment
parent
76aa85cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/views/projects/buttons/_star.html.haml
app/views/projects/buttons/_star.html.haml
+3
-3
No files found.
app/views/projects/buttons/_star.html.haml
View file @
a3ef844c
-
if
current_user
-
if
current_user
=
link_to
toggle_star_namespace_project_path
(
@project
.
namespace
,
@project
),
{
class:
'btn star-btn toggle-star has-tooltip'
,
method: :post
,
remote:
true
,
title:
current_user
.
starred?
(
@project
)
?
'Unstar project'
:
'Star project'
}
do
=
link_to
toggle_star_namespace_project_path
(
@project
.
namespace
,
@project
),
{
class:
'btn star-btn toggle-star has-tooltip'
,
method: :post
,
remote:
true
,
title:
current_user
.
starred?
(
@project
)
?
'Unstar project'
:
'Star project'
}
do
-
if
current_user
.
starred?
(
@project
)
-
if
current_user
.
starred?
(
@project
)
=
icon
(
'star
fw
'
)
=
icon
(
'star'
)
%span
.starred
Unstar
%span
.starred
Unstar
-
else
-
else
=
icon
(
'star-o
fw
'
)
=
icon
(
'star-o'
)
%span
Star
%span
Star
%div
.count-with-arrow
%div
.count-with-arrow
%span
.arrow
%span
.arrow
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
-
else
-
else
=
link_to
new_user_session_path
,
class:
'btn has-tooltip star-btn'
,
title:
'You must sign in to star a project'
do
=
link_to
new_user_session_path
,
class:
'btn has-tooltip star-btn'
,
title:
'You must sign in to star a project'
do
=
icon
(
'star
fw
'
)
=
icon
(
'star'
)
Star
Star
%div
.count-with-arrow
%div
.count-with-arrow
%span
.arrow
%span
.arrow
...
...
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