From 866bfff6ff41a2796329c6bb28db688cbfeed2b8 Mon Sep 17 00:00:00 2001 From: Alexey Kiryushin Date: Fri, 16 Nov 2018 16:19:03 +0300 Subject: Add cross-package 'find references' --- javascript/app/templates/package.hbs | 48 +++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 15 deletions(-) (limited to 'javascript/app/templates/package.hbs') diff --git a/javascript/app/templates/package.hbs b/javascript/app/templates/package.hbs index c8ed0dc..8c6d1a4 100644 --- a/javascript/app/templates/package.hbs +++ b/javascript/app/templates/package.hbs @@ -32,26 +32,44 @@ {{/resizable-panel}}
- {{outlet}} + {{outlet}}
{{#bottom-panel visible=bottomPanelVisible topPanelElementId="#file-container" containerElementId="#right-panel" as |section|}} {{#if (eq section "header")}} - References to {{occName}} in {{packageId}} + References to {{occName}} + {{#if locationInfo.packageId}} + (defined in {{locationInfo.packageId.name}}-{{locationInfo.packageId.version}} / {{locationInfo.moduleName}}) + {{/if}} {{else}} - {{#paginated-list url=referencesUrl as |files|}} - - {{/paginated-list}} +
+ {{#if globalReferences}} + + {{#each globalReferences as |ref|}} +
+ + {{ref.packageId}} + ({{ref.count}}) +
+ {{/each}} +
+ {{/if}} +
+
+ {{#paginated-list url=referencesUrl foundWhere=(concat "in " packageId "") as |files|}} + + {{/paginated-list}} +
{{/if}} - {{/bottom-panel}} + {{/bottom-panel}}
-- cgit v1.2.3