Skip to content

Commit 09c292a

Browse files
committed
Auto merge of #3226 - Turbo87:rev-dep, r=locks
controllers/crate.version: Move reverse dependencies link into the sidebar In the quicklinks section at the top the link is a bit hard to find. This PR moves it to the sidebar under the list of "Dependencies". The long-term goal is to move the remaining links to the sidebar too. r? `@locks`
2 parents 5a188e0 + 39ae8e4 commit 09c292a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/components/crate-sidebar.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@
147147
{{/if}}
148148
{{/each}}
149149
</ul>
150+
151+
<LinkTo @route="crate.reverse-dependencies" local-class="reverse-deps-link" data-test-reverse-deps-link>
152+
Show dependent crates
153+
</LinkTo>
150154
</div>
151155

152156
{{#if @version.buildDependencies}}

app/components/crate-sidebar.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ ul.owners, ul.keywords {
115115
composes: yanked from '../styles/shared/typography.module.css';
116116
}
117117

118-
.more-versions-link {
118+
.more-versions-link,
119+
.reverse-deps-link {
119120
composes: small from '../styles/shared/typography.module.css';
120121
}

app/templates/crate/version.hbs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
{{#if this.crate.repository}}
3333
<li><a href="{{this.crate.repository}}">Repository</a></li>
3434
{{/if}}
35-
<li>
36-
<LinkTo @route="crate.reverse-dependencies" data-test-reverse-deps-link>
37-
Dependent crates
38-
</LinkTo>
39-
</li>
4035
</ul>
4136
</PageHeader>
4237

0 commit comments

Comments
 (0)