Reviewed: https://review.openstack.org/253178 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=e6e8d727eb20cd4da07df2f601e88c7bb8e1e4ac Submitter: Jenkins Branch: master
commit e6e8d727eb20cd4da07df2f601e88c7bb8e1e4ac Author: Cindy Lu <[email protected]> Date: Wed Dec 2 16:14:19 2015 -0800 hzIfApiVersion directive to check if api version enabled Similar to the directives inside openstack_dashboard/static/app/core/cloud-services, we want to remove particular HTML content if not supported by the api version. For example, we only want to show the users magic search if v3 is enabled because only v3 supports the filtering. Or we want to show the Domain ID/Name on the Create Users modal if v3 is enabled. You can do simple comparison checks, e.g. keystone version > 2 or glance <= 2 and chain together multiple checks. Change-Id: Ided631a38d61347bb766fb11234917a29d2b5fe8 Closes-Bug: #1522520 ** Changed in: horizon Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1522520 Title: need directive to check if api version is enabled Status in OpenStack Dashboard (Horizon): Fix Released Bug description: Similar to the directives inside openstack_dashboard/static/app/core /cloud-services, we want to remove particular HTML content depending on some condition, in this case, api version support. For example: 1) we should only show the Users magic search if v3 is enabled. Otherwise, default to quicksearch. 2) We should show Domain ID/Name on the Create User modal if v3 is enabled. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1522520/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

