Skip to content

Commit

Permalink
Show what type of path was found in search results
Browse files Browse the repository at this point in the history
Fixes NixOS#695
  • Loading branch information
dasJ committed Feb 24, 2020
1 parent eb5873a commit 701d6c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/root/search.tt
Expand Up @@ -7,7 +7,7 @@

[% IF builds.size > 0 %]

<p>The following builds match your query:[% IF builds.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>
<p>The [% type %] paths of the following builds match your query:[% IF builds.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>

[% INCLUDE renderBuildList %]

Expand Down Expand Up @@ -75,8 +75,8 @@

[% END %]

[% INCLUDE renderBuildSearch %]
[% INCLUDE renderBuildSearch builds=buildsdrv %]
[% INCLUDE renderBuildSearch type='output' %]
[% INCLUDE renderBuildSearch type='derivation' builds=buildsdrv %]

[% IF builds.size > 0 || buildsdrv.size > 0 ; matched = 1 ; END %]

Expand Down

0 comments on commit 701d6c4

Please sign in to comment.