You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2014/06/12 05:22:02 UTC

[jira] [Created] (AMBARI-6095) Views: standardize way to obtain "icon" from view

Tom Beerbower created AMBARI-6095:
-------------------------------------

             Summary: Views: standardize way to obtain "icon" from view
                 Key: AMBARI-6095
                 URL: https://issues.apache.org/jira/browse/AMBARI-6095
             Project: Ambari
          Issue Type: Task
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower



As part of view definition (or part of standard ui resource that can be loaded from a view), need a way to obtain the icon for the view.

1. <icon> for all sizes, but we recommend 32x32 (because we'll resize on display to 16x16, 32x32 and 48x48)

<icon>/this/is/the/icon/url/icon.png</icon>

2. <icon64> for big size 64x64. If not specified, the smaller <icon> will be used.

<icon64>/this/is/the/icon/url/icon64.png</icon64>

3. Available at definition and instance level. Asking an instance for it's icon should handle the logic (check if available on instance, if not, get use definition). If the icon is not specified by the view, Ambari Web should have a default icon for views to use and it.

<view>
<name></name>
<version></version>
<icon>/this/is/the/icon/url/icon.png</icon>
<icon64>/this/is/the/icon/url/icon64.png</icon64>
...

<instance>
<icon>/this/is/the/instance/icon/url/icon.png</icon>
...

</view>

4. The path is relative to the view resource. And this is the path it should be in the view package.

http://<server>:8080/views/WEATHER/1.0.0/US_WEST/this/is/the/icon/url/icon.png




--
This message was sent by Atlassian JIRA
(v6.2#6252)