Remove tooltips from project header
This commit is contained in:
parent
aba94f65f0
commit
3497d4da3e
3 changed files with 3 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- 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
|
||||
|
|
Loading…
Reference in a new issue