summaryrefslogtreecommitdiffstats
path: root/front_end
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2020-02-23 11:14:44 +0000
committerKornel <kornel@geekhood.net>2020-02-23 11:56:10 +0000
commit98d96b03b485095d3f1a6179455900f1405b988a (patch)
treedfb8080ccf378d284132868f5ab8b21a9c747301 /front_end
parent11bbaf979d3dc5f0e0b0a0f921aac23a7915705a (diff)
Tweaks
Diffstat (limited to 'front_end')
-rw-r--r--front_end/templates/crate_page.rs.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/front_end/templates/crate_page.rs.html b/front_end/templates/crate_page.rs.html
index c719dda..fc4ba81 100644
--- a/front_end/templates/crate_page.rs.html
+++ b/front_end/templates/crate_page.rs.html
@@ -211,6 +211,7 @@
Used in <a href="@url.crate_by_origin(&Origin::from_crates_io_name(name))">@name</a>
}
} else {
+ @if direct > 0 {
@if deps != direct {
Used in <b>@c.format_number(deps)</b> crate@if deps != 1 {s}
@if direct == 1 {
@@ -224,7 +225,7 @@
} else {
Used in <a href="@url.reverse_deps(c.ver.origin())"><b>@c.format_number(deps)</b>&nbsp;crate@if deps != 1 {s}</a>
}
- }
+ }}
}
</p>
</section>