Skip to content

Commit 5cbd037

Browse files
committed
crate/settings: Add "Learn more" button to Trusted Publishing section
1 parent 5d6485d commit 5cbd037

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

app/styles/crate/settings/index.module.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
.owners-header, .trusted-publishing-header {
1+
.header {
22
display: flex;
33
justify-content: space-between;
44
align-items: center;
5+
flex-wrap: wrap;
6+
gap: var(--space-s);
7+
margin: var(--space-m) 0;
8+
9+
> h2 {
10+
margin: 0;
11+
}
512
}
613

714
.email-form {

app/templates/crate/settings/index.hbs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<CrateHeader @crate={{this.crate}} />
44

5-
<div local-class="owners-header">
5+
<div local-class="header">
66
<h2>Owners</h2>
77
{{#unless this.addOwnerVisible}}
88
<button type="button" class="button button--small" data-test-add-owner-button {{on "click" this.showAddOwnerForm}}>Add Owner</button>
@@ -56,11 +56,16 @@
5656

5757
{{! The "Trusted Publishing" section is hidden for now until we make this feature publicly available. }}
5858
{{#if this.githubConfigs}}
59-
<div local-class="trusted-publishing-header">
59+
<div local-class="header">
6060
<h2>Trusted Publishing</h2>
61-
<LinkTo @route="crate.settings.new-trusted-publisher" class="button button--small" data-test-add-trusted-publisher-button>
62-
Add
63-
</LinkTo>
61+
<div>
62+
<LinkTo @route="docs.trusted-publishing" class="button button--tan button--small" data-test-trusted-publishing-docs-button>
63+
Learn more
64+
</LinkTo>
65+
<LinkTo @route="crate.settings.new-trusted-publisher" class="button button--small" data-test-add-trusted-publisher-button>
66+
Add
67+
</LinkTo>
68+
</div>
6469
</div>
6570

6671
<table local-class="trustpub" data-test-trusted-publishing>
@@ -95,7 +100,7 @@
95100
</table>
96101
{{/if}}
97102

98-
<h2>Danger Zone</h2>
103+
<h2 local-class="header">Danger Zone</h2>
99104

100105
<div>
101106
<LinkTo @route="crate.delete" class="button button--red" data-test-delete-button>

0 commit comments

Comments
 (0)