ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-6095) Views: standardize way to obtain "icon" from view
Date Thu, 12 Jun 2014 03:22:02 GMT
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)

Mime
View raw message