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' --- .../app/templates/components/paginated-list.hbs | 2 +- javascript/app/templates/package.hbs | 48 +++++++++++++++------- 2 files changed, 34 insertions(+), 16 deletions(-) (limited to 'javascript/app/templates') diff --git a/javascript/app/templates/components/paginated-list.hbs b/javascript/app/templates/components/paginated-list.hbs index 2ae9813..82d4eee 100644 --- a/javascript/app/templates/components/paginated-list.hbs +++ b/javascript/app/templates/components/paginated-list.hbs @@ -1,5 +1,5 @@
- Found {{total}} + Found {{total}} {{{foundWhere}}} {{#if (or next prev)}}     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