Skip to content

Commit dbefb19

Browse files
committed
Remove link to distro when already on distro page
1 parent 7fbe8c2 commit dbefb19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/show-search.tt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@
4242
</p>
4343
<% END %>
4444

45+
<% IF qd != item.distro %>
4546
<a href="<% link_to_distro %>"><i class="fa fa-list"></i>&nbsp;view all matches for this distribution</a><br>
4647
<% IF qd && qd.length && item.matches.size %>
4748
<a href="https://metacpan.org/release/<% item.distro | uri %>"><i class="fa fa-book"></i>&nbsp;<i>view release on metacpan</i></a>
4849
- <a href="https://metacpan.org/search?q=<% item.distro | uri %>"><i class="fa fa-search"></i>&nbsp;<i>search on metacpan</i></a>
4950
<% END %>
51+
<% END %>
5052

5153
<span class="relatize"><% item.version %></span>
5254
<br>

0 commit comments

Comments
 (0)