Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-6095

Views: standardize way to obtain "icon" from view

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              tbeerbower Tom Beerbower
              tbeerbower Tom Beerbower
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: