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
d485c953
Commit
d485c953
authored
Oct 05, 2020
by
Lakshit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply gl-button class to projects/commits
parent
bb1e09d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/views/projects/commits/show.html.haml
app/views/projects/commits/show.html.haml
+3
-3
changelogs/unreleased/-231206-projects-commits.yml
changelogs/unreleased/-231206-projects-commits.yml
+5
-0
No files found.
app/views/projects/commits/show.html.haml
View file @
d485c953
...
...
@@ -17,16 +17,16 @@
.tree-controls
-
if
@merge_request
.
present?
.control.d-none.d-md-block
=
link_to
_
(
"View open merge request"
),
project_merge_request_path
(
@project
,
@merge_request
),
class:
'btn'
=
link_to
_
(
"View open merge request"
),
project_merge_request_path
(
@project
,
@merge_request
),
class:
'btn
gl-button
'
-
elsif
create_mr_button?
(
@repository
.
root_ref
,
@ref
)
.control.d-none.d-md-block
=
link_to
_
(
"Create merge request"
),
create_mr_path
(
@repository
.
root_ref
,
@ref
),
class:
'btn btn-success'
=
link_to
_
(
"Create merge request"
),
create_mr_path
(
@repository
.
root_ref
,
@ref
),
class:
'btn
gl-button
btn-success'
.control
=
form_tag
(
project_commits_path
(
@project
,
@id
),
method: :get
,
class:
'commits-search-form js-signature-container'
,
data:
{
'signatures-path'
=>
namespace_project_signatures_path
})
do
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
_
(
'Search by message'
),
id:
'commits-search'
,
class:
'form-control search-text-input input-short gl-mt-3 gl-sm-mt-0 gl-min-w-full'
,
spellcheck:
false
}
.control.d-none.d-md-block
=
link_to
project_commits_path
(
@project
,
@ref
,
rss_url_options
),
title:
_
(
"Commits feed"
),
class:
'btn btn-svg'
do
=
link_to
project_commits_path
(
@project
,
@ref
,
rss_url_options
),
title:
_
(
"Commits feed"
),
class:
'btn
gl-button
btn-svg'
do
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
)
=
render_if_exists
'projects/commits/mirror_status'
...
...
changelogs/unreleased/-231206-projects-commits.yml
0 → 100644
View file @
d485c953
---
title
:
Apply GitLab UI button styles to buttons in app/views/projects/commits directory
merge_request
:
44331
author
:
Lakshit
type
:
other
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