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
Jérome Perrin
gitlab-ce
Commits
91fdbdcd
Commit
91fdbdcd
authored
Nov 12, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tooltips to home panel buttons.
parent
b1f4d14f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
28 deletions
+25
-28
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+5
-10
app/views/projects/buttons/_download.html.haml
app/views/projects/buttons/_download.html.haml
+4
-0
app/views/projects/buttons/_dropdown.html.haml
app/views/projects/buttons/_dropdown.html.haml
+0
-2
app/views/projects/buttons/_fork.html.haml
app/views/projects/buttons/_fork.html.haml
+13
-12
app/views/projects/buttons/_star.html.haml
app/views/projects/buttons/_star.html.haml
+1
-1
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+2
-3
No files found.
app/views/projects/_home_panel.html.haml
View file @
91fdbdcd
...
...
@@ -18,17 +18,12 @@
.project-repo-buttons
.split-one
=
render
'projects/buttons/star'
=
render
'projects/buttons/fork'
-
unless
empty_repo
=
render
'projects/buttons/fork'
=
render
"shared/clone_panel"
.split-repo-buttons
-
unless
empty_repo
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
@ref
,
format:
'zip'
),
class:
'btn'
,
rel:
'nofollow'
do
=
icon
(
'download fw'
)
.split-repo-buttons
=
render
"projects/buttons/download"
=
render
'projects/buttons/dropdown'
=
render
'projects/buttons/notifications'
app/views/projects/buttons/_download.html.haml
0 → 100644
View file @
91fdbdcd
-
unless
@project
.
empty_repo?
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
@ref
,
format:
'zip'
),
class:
'btn has_tooltip'
,
rel:
'nofollow'
,
title:
"Download ZIP"
do
=
icon
(
'download'
)
app/views/projects/buttons/_dropdown.html.haml
View file @
91fdbdcd
...
...
@@ -32,5 +32,3 @@
=
link_to
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
)
do
=
icon
(
'tags fw'
)
New tag
app/views/projects/buttons/_fork.html.haml
View file @
91fdbdcd
-
if
current_user
&&
can?
(
current_user
,
:fork_project
,
@project
)
-
if
current_user
.
already_forked?
(
@project
)
&&
current_user
.
manageable_namespaces
.
size
<
2
=
link_to
namespace_project_path
(
current_user
,
current_user
.
fork_of
(
@project
)),
title:
'Go to your fork'
,
class:
'btn'
do
=
icon
(
'code-fork fw'
)
Fork
%span
.count
=
@project
.
forks_count
-
else
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn'
do
=
icon
(
'code-fork fw'
)
%span
.count
=
@project
.
forks_count
-
unless
@project
.
empty_repo?
-
if
current_user
&&
can?
(
current_user
,
:fork_project
,
@project
)
-
if
current_user
.
already_forked?
(
@project
)
&&
current_user
.
manageable_namespaces
.
size
<
2
=
link_to
namespace_project_path
(
current_user
,
current_user
.
fork_of
(
@project
)),
title:
'Go to your fork'
,
class:
'btn has_tooltip'
do
=
icon
(
'code-fork fw'
)
Fork
%span
.count
=
@project
.
forks_count
-
else
=
link_to
new_namespace_project_fork_path
(
@project
.
namespace
,
@project
),
title:
"Fork project"
,
class:
'btn has_tooltip'
do
=
icon
(
'code-fork fw'
)
%span
.count
=
@project
.
forks_count
app/views/projects/buttons/_star.html.haml
View file @
91fdbdcd
-
if
current_user
=
link_to
toggle_star_namespace_project_path
(
@project
.
namespace
,
@project
),
class:
'btn star-btn toggle-star
'
,
method: :post
,
remote:
true
do
=
link_to
toggle_star_namespace_project_path
(
@project
.
namespace
,
@project
),
class:
'btn star-btn toggle-star
has_tooltip'
,
method: :post
,
remote:
true
,
title:
"Star project"
do
=
icon
(
'star fw'
)
%span
.count
=
@project
.
star_count
...
...
app/views/shared/_clone_panel.html.haml
View file @
91fdbdcd
...
...
@@ -21,7 +21,6 @@
=
gitlab_config
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control"
,
readonly:
true
-
if
project
.
kind_of?
(
Project
)
.input-group-addon
.visibility-level-label
.has_tooltip
{
'data-title'
=>
"#{visibility_level_label(project.visibility_level)} project"
}
.input-group-addon
.has_tooltip
{
title:
"#{visibility_level_label(project.visibility_level)} project"
,
data:
{
container:
"body"
}
}
.visibility-level-label
=
visibility_level_icon
(
project
.
visibility_level
)
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