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
a7ff9f97
Commit
a7ff9f97
authored
Mar 29, 2021
by
Taurie Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utilize btn-tertiary for copy project id on project overview
parent
c84d9415
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+0
-5
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+3
-3
changelogs/unreleased/project-overview-copy-id.yml
changelogs/unreleased/project-overview-copy-id.yml
+5
-0
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
a7ff9f97
...
...
@@ -115,11 +115,6 @@
font-size
:
$gl-font-size
;
line-height
:
$gl-font-size-large
;
}
.home-panel-topic-list
,
.home-panel-metadata
{
font-size
:
$gl-font-size-small
;
}
}
}
...
...
app/views/projects/_home_panel.html.haml
View file @
a7ff9f97
...
...
@@ -6,18 +6,18 @@
.project-home-panel.js-show-on-project-root.gl-my-5
{
class:
[(
"empty-project"
if
empty_repo
)]
}
.gl-display-flex.gl-justify-content-space-between.gl-flex-wrap.gl-sm-flex-direction-column.gl-mb-3
.home-panel-title-row.gl-display-flex
.avatar-container.rect-avatar.s64.home-panel-avatar.gl-flex-shrink-0.gl-w-11.gl-h-11.gl-mr-3.float-none
%div
{
class:
'avatar-container rect-avatar s64 home-panel-avatar gl-flex-shrink-0 gl-w-11 gl-h-11 gl-mr-3! float-none'
}
=
project_icon
(
@project
,
alt:
@project
.
name
,
class:
'avatar avatar-tile s64'
,
width:
64
,
height:
64
,
itemprop:
'image'
)
.d-flex.flex-column.flex-wrap.align-items-baseline
.d-inline-flex.align-items-baseline
%h1
.home-panel-title.gl-mt-3.gl-mb-2.gl-font-size-h1.gl-line-height-24.gl-font-weight-bold
{
data:
{
qa_selector:
'project_name_content'
},
itemprop:
'name'
}
%h1
.home-panel-title.gl-mt-3.gl-mb-2.gl-font-size-h1.gl-line-height-24.gl-font-weight-bold
.gl-ml-3
{
data:
{
qa_selector:
'project_name_content'
},
itemprop:
'name'
}
=
@project
.
name
%span
.visibility-icon.text-secondary.gl-ml-2.has-tooltip
{
data:
{
container:
'body'
},
title:
visibility_icon_description
(
@project
)
}
=
visibility_level_icon
(
@project
.
visibility_level
,
options:
{
class:
'icon'
})
=
render_if_exists
'compliance_management/compliance_framework/compliance_framework_badge'
,
project:
@project
.home-panel-metadata.d-flex.flex-wrap.text-secondary.gl-font-base.gl-font-weight-normal.gl-line-height-normal
-
if
can?
(
current_user
,
:read_project
,
@project
)
-
button_class
=
"btn
-clipboard btn-transparent btn-no-padding gl-font-base gl-font-weight-normal gl-line-height-normal
home-panel-metadata"
-
button_class
=
"btn
gl-button btn-sm btn-tertiary btn-default-tertiary
home-panel-metadata"
-
button_text
=
s_
(
'ProjectPage|Project ID: %{project_id}'
)
%
{
project_id:
@project
.
id
}
=
clipboard_button
(
title:
s_
(
'ProjectPage|Copy project ID'
),
text:
@project
.
id
,
hide_button_icon:
true
,
button_text:
button_text
,
class:
button_class
,
qa_selector:
'project_id_content'
,
itemprop:
'identifier'
)
-
if
current_user
...
...
changelogs/unreleased/project-overview-copy-id.yml
0 → 100644
View file @
a7ff9f97
---
title
:
Utilize btn-tertiary for copy project id on project overview
merge_request
:
57766
author
:
type
:
changed
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