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
3497d4da
Commit
3497d4da
authored
Oct 31, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tooltips from project header
parent
aba94f65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
app/assets/javascripts/star.js
app/assets/javascripts/star.js
+0
-2
app/views/projects/buttons/_fork.html.haml
app/views/projects/buttons/_fork.html.haml
+2
-2
app/views/projects/buttons/_star.html.haml
app/views/projects/buttons/_star.html.haml
+1
-1
No files found.
app/assets/javascripts/star.js
View file @
3497d4da
...
...
@@ -11,11 +11,9 @@
$this
.
parent
().
find
(
'
.star-count
'
).
text
(
data
.
star_count
);
if
(
isStarred
)
{
$starSpan
.
removeClass
(
'
starred
'
).
text
(
'
Star
'
);
gl
.
utils
.
updateTooltipTitle
(
$this
,
'
Star project
'
);
$starIcon
.
removeClass
(
'
fa-star
'
).
addClass
(
'
fa-star-o
'
);
}
else
{
$starSpan
.
addClass
(
'
starred
'
).
text
(
'
Unstar
'
);
gl
.
utils
.
updateTooltipTitle
(
$this
,
'
Unstar project
'
);
$starIcon
.
removeClass
(
'
fa-star-o
'
).
addClass
(
'
fa-star
'
);
}
};
...
...
app/views/projects/buttons/_fork.html.haml
View file @
3497d4da
...
...
@@ -5,10 +5,10 @@
=
custom_icon
(
'icon_fork'
)
%span
Fork
-
else
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
'Fork project'
,
class:
'btn
has-tooltip
'
do
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
'Fork project'
,
class:
'btn'
do
=
custom_icon
(
'icon_fork'
)
%span
Fork
%div
.count-with-arrow
%span
.arrow
=
link_to
namespace_project_forks_path
(
@project
.
namespace
,
@project
),
title:
'Forks'
,
class:
'count
has-tooltip
'
do
=
link_to
namespace_project_forks_path
(
@project
.
namespace
,
@project
),
title:
'Forks'
,
class:
'count'
do
=
@project
.
forks_count
app/views/projects/buttons/_star.html.haml
View file @
3497d4da
-
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
'
,
method: :post
,
remote:
true
}
do
-
if
current_user
.
starred?
(
@project
)
=
icon
(
'star'
)
%span
.starred
Unstar
...
...
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