From e8ded03ec40e0ba3d17b9e3e57805ce9afd43534 Mon Sep 17 00:00:00 2001 From: alexwl Date: Wed, 13 Feb 2019 23:44:05 +0300 Subject: Add a switch between 'search in the current package' and 'search in all packages' on the package page --- javascript/app/templates/package.hbs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'javascript/app/templates') diff --git a/javascript/app/templates/package.hbs b/javascript/app/templates/package.hbs index 5f9fa68..f58d10a 100644 --- a/javascript/app/templates/package.hbs +++ b/javascript/app/templates/package.hbs @@ -11,6 +11,7 @@ placeholder="Identifier" as |identifier|}} {{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}}
+ {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} {{#if identifier.locationInfo.modulePath}} {{identifier.locationInfo.modulePath}} {{else}} @@ -19,6 +20,18 @@
{{/input-with-autocomplete}} + {{#radio-button + value="currentPackage" + groupValue=searchMode + changed="searchModeChanged"}} + in {{model.id}} + {{/radio-button}} + {{#radio-button + value="allPackages" + groupValue=searchMode + changed="searchModeChanged"}} + in all packages + {{/radio-button}} {{#if currentFile}} {{currentFile}} -- cgit v1.2.3