From ec62c27f360f4a9a3bff57449684c8d00cf428a4 Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Thu, 6 Aug 2015 09:49:50 -0700 Subject: [PATCH] [Representations] grid-item and label display links grid-item and label representations now use the "location" capability to determine whether or not to show a link indicator. --- platform/commonUI/browse/bundle.json | 8 ++++---- .../commonUI/browse/res/templates/items/grid-item.html | 9 ++++----- platform/commonUI/general/res/templates/label.html | 7 +++---- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/platform/commonUI/browse/bundle.json b/platform/commonUI/browse/bundle.json index 7355a6b69c..6e166edb02 100644 --- a/platform/commonUI/browse/bundle.json +++ b/platform/commonUI/browse/bundle.json @@ -69,8 +69,8 @@ { "key": "grid-item", "templateUrl": "templates/items/grid-item.html", - "uses": [ "type", "action" ], - "gestures": [ "info","menu" ] + "uses": [ "type", "action", "location" ], + "gestures": [ "info", "menu" ] }, { "key": "object-header", @@ -88,12 +88,12 @@ { "key": "navigationService", "implementation": "navigation/NavigationService.js" - }, + }, { "key": "creationService", "implementation": "creation/CreationService.js", "depends": [ "persistenceService", "$q", "$log" ] - } + } ], "actions": [ { diff --git a/platform/commonUI/browse/res/templates/items/grid-item.html b/platform/commonUI/browse/res/templates/items/grid-item.html index 6d041b48b9..64282a9ee1 100644 --- a/platform/commonUI/browse/res/templates/items/grid-item.html +++ b/platform/commonUI/browse/res/templates/items/grid-item.html @@ -34,11 +34,10 @@
{{type.getGlyph()}} - + class="ui-symbol icon l-icon-link" title="This object is a link" + ng-show="location.isLink()" + >
}
@@ -51,4 +50,4 @@ - \ No newline at end of file + diff --git a/platform/commonUI/general/res/templates/label.html b/platform/commonUI/general/res/templates/label.html index 61905cb7bf..7ca73bb026 100644 --- a/platform/commonUI/general/res/templates/label.html +++ b/platform/commonUI/general/res/templates/label.html @@ -22,11 +22,10 @@ {{type.getGlyph()}} - + class='ui-symbol icon l-icon-link' + ng-show="location.isLink()" + >