aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2019-02-13 23:44:05 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2019-02-13 23:44:05 +0300
commite8ded03ec40e0ba3d17b9e3e57805ce9afd43534 (patch)
treeb669e381faed51dff9445fe6d869513c46cb5589 /javascript/app/templates
parent0b17136d965ddc602a5a0176b538bdb0a47f4d12 (diff)
Add a switch between 'search in the current package' and 'search in all packages' on the package page
Diffstat (limited to 'javascript/app/templates')
-rw-r--r--javascript/app/templates/package.hbs13
1 files changed, 13 insertions, 0 deletions
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|}}
<span class="source-code-font">{{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}}</span>
<div class="module-name">
+ <b>{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}</b>
{{#if identifier.locationInfo.modulePath}}
{{identifier.locationInfo.modulePath}}
{{else}}
@@ -19,6 +20,18 @@
</div>
{{/input-with-autocomplete}}
</span>
+ {{#radio-button
+ value="currentPackage"
+ groupValue=searchMode
+ changed="searchModeChanged"}}
+ <span>in {{model.id}}</span>
+ {{/radio-button}}
+ {{#radio-button
+ value="allPackages"
+ groupValue=searchMode
+ changed="searchModeChanged"}}
+ <span>in all packages</span>
+ {{/radio-button}}
{{#if currentFile}}
<span class="package-header-filename">
{{currentFile}}