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
969cef9d
Commit
969cef9d
authored
Jan 27, 2021
by
Yogi
Committed by
Kushal Pandya
Jan 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add btn-default class to button in project breadcrumb
parent
e1c35852
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
app/views/projects/_find_file_link.html.haml
app/views/projects/_find_file_link.html.haml
+1
-1
app/views/projects/blob/_breadcrumb.html.haml
app/views/projects/blob/_breadcrumb.html.haml
+4
-4
app/views/projects/buttons/_download.html.haml
app/views/projects/buttons/_download.html.haml
+1
-1
changelogs/unreleased/yo-btn-default-repo.yml
changelogs/unreleased/yo-btn-default-repo.yml
+5
-0
ee/app/views/projects/tree/_lock_link.html.haml
ee/app/views/projects/tree/_lock_link.html.haml
+1
-1
No files found.
app/views/projects/_find_file_link.html.haml
View file @
969cef9d
=
link_to
project_find_file_path
(
@project
,
@ref
),
class:
'gl-button btn shortcuts-find-file'
,
rel:
'nofollow'
do
=
link_to
project_find_file_path
(
@project
,
@ref
),
class:
'gl-button btn
btn-default
shortcuts-find-file'
,
rel:
'nofollow'
do
=
_
(
'Find file'
)
app/views/projects/blob/_breadcrumb.html.haml
View file @
969cef9d
...
...
@@ -23,13 +23,13 @@
-
if
blob
.
readable_text?
-
if
blame
=
link_to
'Normal view'
,
project_blob_path
(
@project
,
@id
),
class:
'gl-button btn'
class:
'gl-button btn
btn-default
'
-
else
=
link_to
'Blame'
,
project_blame_path
(
@project
,
@id
),
class:
'gl-button btn js-blob-blame-link'
unless
blob
.
empty?
class:
'gl-button btn
btn-default
js-blob-blame-link'
unless
blob
.
empty?
=
link_to
'History'
,
project_commits_path
(
@project
,
@id
),
class:
'gl-button btn'
class:
'gl-button btn
btn-default
'
=
link_to
'Permalink'
,
project_blob_path
(
@project
,
tree_join
(
@commit
.
sha
,
@path
)),
class:
'gl-button btn js-data-file-blob-permalink-url'
tree_join
(
@commit
.
sha
,
@path
)),
class:
'gl-button btn
btn-default
js-data-file-blob-permalink-url'
app/views/projects/buttons/_download.html.haml
View file @
969cef9d
...
...
@@ -3,7 +3,7 @@
-
if
!
project
.
empty_repo?
&&
can?
(
current_user
,
:download_code
,
project
)
-
archive_prefix
=
"
#{
project
.
path
}
-
#{
ref
.
tr
(
'/'
,
'-'
)
}
"
.project-action-button.dropdown.inline
>
%button
.gl-button.btn.has-tooltip
{
title:
s_
(
'DownloadSource|Download'
),
'data-toggle'
=>
'dropdown'
,
'aria-label'
=>
s_
(
'DownloadSource|Download'
),
'data-display'
=>
'static'
,
data:
{
qa_selector:
'download_source_code_button'
}
}
%button
.gl-button.btn.
btn-default.
has-tooltip
{
title:
s_
(
'DownloadSource|Download'
),
'data-toggle'
=>
'dropdown'
,
'aria-label'
=>
s_
(
'DownloadSource|Download'
),
'data-display'
=>
'static'
,
data:
{
qa_selector:
'download_source_code_button'
}
}
=
sprite_icon
(
'download'
)
%span
.sr-only
=
_
(
'Select Archive Format'
)
=
sprite_icon
(
"chevron-down"
)
...
...
changelogs/unreleased/yo-btn-default-repo.yml
0 → 100644
View file @
969cef9d
---
title
:
Add btn-default class to button in project breadcrumb
merge_request
:
51910
author
:
Yogi (@yo)
type
:
fixed
ee/app/views/projects/tree/_lock_link.html.haml
View file @
969cef9d
=
lock_file_link
(
html_options:
{
class:
"btn path-lock js-path-lock js-hide-on-root hidden gl-button"
})
=
lock_file_link
(
html_options:
{
class:
"btn
btn-default
path-lock js-path-lock js-hide-on-root hidden gl-button"
})
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