aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2019-03-08 17:21:00 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2019-03-08 17:21:00 +0300
commit78f46be07c7d063c9d957bfe4d580fcbeb28786f (patch)
treee4d7b0c8c933cf235ef3ec4e631e3425ae069875 /javascript/app/templates
parent5ce658d25df2b1eba971131e33c412884fd8ab3f (diff)
Fix search results: add a package name and a module name of an identifier that doesn't have exact location info
Diffstat (limited to 'javascript/app/templates')
-rw-r--r--javascript/app/templates/search.hbs2
1 files changed, 2 insertions, 0 deletions
diff --git a/javascript/app/templates/search.hbs b/javascript/app/templates/search.hbs
index 343ce68..222919a 100644
--- a/javascript/app/templates/search.hbs
+++ b/javascript/app/templates/search.hbs
@@ -33,6 +33,8 @@
<div class="identifier-module">
{{#if identifier.locationInfo.modulePath}}
Defined in <b> {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} </b> <a href="/package/{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}/show/{{identifier.locationInfo.modulePath}}">{{identifier.locationInfo.modulePath}}</a>
+ {{else}}
+ Defined in <b> {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} </b> {{identifier.locationInfo.moduleName}}
{{/if}}
</div>
<div>{{{identifier.doc}}}</div>