LP#1770246: (follow-up) display the open-in-new-window/tab icon
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 5 Oct 2018 20:41:04 +0000 (16:41 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 5 Oct 2018 20:41:04 +0000 (16:41 -0400)
Since the title links added by the previous patch intentionally open
the record in a new tab, display the corresponding icon to be
consistent with other interfaces.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/bucket/record/t_pending.tt2
Open-ILS/src/templates/staff/cat/bucket/record/t_search.tt2

index 2e910b2..ec4473b 100644 (file)
@@ -19,7 +19,7 @@
 
   <eg-grid-field label="[% l('Title') %]" path="title">
     <a target="_blank" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
-    {{item.title}}
+    {{item.title}} <span ng-show="item.id" class="glyphicon glyphicon-new-window"/>
     </a>
   </eg-grid-field>
 </eg-grid>
index 1f8e9f6..02506bc 100644 (file)
@@ -45,7 +45,7 @@
 
   <eg-grid-field label="[% l('Title') %]" path="title">
     <a target="_blank" href="[% ctx.base_path %]/staff/cat/catalog/record/{{item.id}}">
-    {{item.title}}
+    {{item.title}} <span ng-show="item.id" class="glyphicon glyphicon-new-window"/>
     </a>
   </eg-grid-field>
 </eg-grid>