TEMPLATE_LOADERS was defined after loading local_settings.py and was sqashing
any attempt to customize the template loaders.
This patch adds CACHED_TEMPLATE_LOADERS, ADD_TEMPLATE_LOADERS and a doc
defining how to use them in order to ease customization process.
Change-Id: I2544529ee965ef01c6ac4973056801ebee50be6d
Closes-Bug: #1568764
This adds the Scheduler Hints step to the angular Launch Instance
workflow and allows specifying arbitrary hints when launching an
instance. It also displays available hints from the glance metadata
definitions catalog OS::Nova::Server namespace that use the
"scheduler_hints" properties target.
Implements: blueprint add-scheduler-hints
Change-Id: Ic33c31e645f45b7a4cbdf13e9a115c96399d5e32
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.
Change-Id: I905736fc5f998385128b306c75bc8191b2797dc6
Closes-Bug: #1552251
Previously only the predefined provider network types
can be used in supported_provider_types.
Neutron support various network back-ends and some of
them use different provider network types.
Operators who use such back-ends cannot specify extra
provider network types not defined in Horizon.
This commit reorganizes the logic around neutron provider
network and allows to specify extra provider network types.
Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com>
Related-Bug: #1504466
Change-Id: Ia5e3f91b7c5964a5253a67a42c7d63e35619d1c2
1. ADD_JS_FILES should be mentioned
2. scss files can not be discovered automatically
3. remove incorrect scss exmaple codes
Change-Id: Id543673a925eedb824b8222982e9ba35110fc44a
Closes-Bug: #1562834
Django 1.8 altered and deprecated the existing pattern for defining
URLs. This will be removed in 1.10, meaning that many deprecation
warnings show up under Django 1.9. We should fix the URLs promptly to
avoid logspam, and to support Django 1.10 in Newton.
See
https://docs.djangoproject.com/en/1.9/releases/1.8/#django-conf-urls-patterns
Change-Id: I074d20850de59bfe678a3bc72e9f0f25bd743cbf
Partially-Implements: blueprint dj110
Current link is out of date. It's 404 Page not found now.
Change it to an address regardless of specific django version.
Remove the warning content since the bug has been fixed.
Change-Id: Idd0060313d538e25f9b89d7197adca739d2f6782
Closes-Bug: #1560449
The page locate at http://docs.openstack.org/developer/horizon/testing.html
is not displaying commands with appropiate styling, for instance there are
some command options using en dash instead of double hyphens.
This patch fixes the way these lines should appear in the browser: using
mono-spaced font, enclosed in a gray box and with double hyphens instead of
en dashes. This way we prevent users seeing errors when copy-pasting the
instructions.
Change-Id: Id76675cd6510d0491cdc08d9cc845c0fc66ab2c6
Closes-bug: #1559276
List of topics:
* go_to_<pagename>page() methods and proper file structure is covered
* regions facilities
* customizing gate environment
* running tests in plugins
Change-Id: I885705b62e63b72c5ba823a8ebf7be20f9fcddbe
This patch enables the Angular Launch Instance workflow by default. The
toggle has been maintained for those running the Python workflow, and
also for the integration tests to run against both simultaneously.
Keep integration tests running for a legacy Launch Instance workflow
by means of a separate local_settings.d code snippet activated before
starting the tests.
Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Change-Id: Id0c57b33df46397711e32092cec6cc5268841779
Implements: blueprint enable-angular-launch-instance
Horizon checkboxes were using a standard checkbox. Unfortunately,
this type of checkbox is only customizable through Chrome, and
even then, its not completely flexible.
The default checkboxes have now been altered to allow for a highly
customized experience through the use of CSS pseudo elements and
Icon Fonts. This allows the color, size and unselected and selected
states of the checkbox to be customized.
The 'default' theme uses the standard Font Awesome checked and
unchecked icons. The 'material' now uses the Material Design
checkbox design.
It was also noticed (and fixed) that the help-icon on the forms
were not the same color as its corresponding text.
Partially-Implements: blueprint horizon-theme-css-reorg
Change-Id: I52602357d831a5e978fe6916b37b0cde9edb2b9b
Starting with Mitaka, Neutron API handing of default subnetpool has
changed [1].
If a default subnetpool exists in Neutron it will show up in the
subnetpool list. Thus no change in Horizon is needed to handle this
part.
The following changes are required in Horizon:
- Mark the 'default_ipv4_subnet_pool_label' and
'default_ipv6_subnet_pool_label' configuration options for use
with Liberty only, deprecate them and tag them for removal in
future release.
- When the configuration options are removed the _check_subnet_data
function should no longer allow to pass empty 'cidr' and
'subnetpool_id'.
References:
1: http://docs.openstack.org/releasenotes/neutron/unreleased.html
Change-Id: Ib1d4143251421d03e4e9c3071d43d2423e3b0d8c
Closes-Bug: #1551333
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.
Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
Horizon themes are now configurable at a user level, through the use
of cookies. The themes that can be set are configurable at a
deployment level through settings.py. Horizon can be configured to
run with multiple themes, and allow users to choose which themes
they wish to run.
Django Compressor:
In order to support dynamic themes, each theme configuration must
be pre-compiled through the Django compressor. By making use of its
built in COMPRESS_OFFLINE_CONTEXT, we now return a generator to
create each of the theme's necessary offline contexts.
Templates:
Horizon themes allowed template overrides via their 'templates'
subfolder. In order to maintain this parity, a custom theme template
loader was created. It is run before the other loads, and simply
looks for a Django template in the current theme (cookie driven)
before diverting to the previous template loaders.
Static Files:
Horizon themes allowed static overrides of the images in
'dashboard/img' folder. A template tag, 'themable_asset' was created
to maintain this parity. Any asset that is wished to be made themable,
given that it is located in Horizon's 'static/dashboard' folder, can
now be made ot be themable. By making this a template tag, this
gives the developers more granular control over what branders can
customize.
Angular and Plugins:
By far, the trickiest part of this task, Angular and Plugins are
dynamic in the files that they 'discover'. SCSS is not flexible in
this manner at ALL. SCSS disallows the importation of a variable
name. To get around this, themes.scss was created as a Django
template. This template is the top level import file for all styles
within Horizon, and therefore, allows ALL the scss files to share a
common namespace and thus, can use shared variables as well as extend
shared styles.
Other:
This change is fundamental, in that it changes the method by which
Horizon ingests its SCSS files. Many problems existing in the
previous implementation, in an effort to make Horizon flexible, its
SCSS was made very inflexible. This patch corrects those problems.
Change-Id: Ic48b4b5c1d1a41f1e01a8d52784c9d38d192c8f1
Implements: blueprint horizon-dynamic-theme
Closes-Bug: #1480427
django.conf.urls.patterns() is deprecated since 1.8.
We should not use patterns(), so this patch updates URLs to
1.8 style.
Since many urls.py use patterns(), this patch revises docs and
template related to plugins and new panels.
Change-Id: Ib8fb5b1047bc4dd56000abe87affe3c22c30879e
Partial-Bug: #1539354
All files ending with '.py' in local_settings.d/ are evaluated
after reading the settings from local_settings.py . That means
changing the settings can be done without changing local_settings.py .
Change-Id: I0b25ef2c4dada23f8cb66aa5e8af44b3a1cba3b9
Implements: blueprint local-settings-override-mechanism
In our recommended local_conf.rst, we use pass for password.
We should change pass to match what we have in devstack and i9n tests.
Change-Id: Ia019eadf91bc6195f40b99d6b1f8478982b76404
Closes-Bug: #1541090
Because the $static_url scss variable is now available through the
scss namespace by default via the settings.py value for STATIC_URL,
it is no longer necessary to have an example theme on how to set
this manually.
Change-Id: I39ddfbd8e574768202233cfff09c8699486b3c01
Closes-Bug: #1478794
This adds a setting that can be used to specify the default value
for the Configuration Drive option when launching an instance.
Closes-Bug: #1537106
Change-Id: If402d3331158b462bece27fa6fce2bdb7f6a4a2e
This commit is as follow-up work of:https://review.openstack.org/#/c/261695/.
Mention how to use policy directive to complete policy.rst.
Change-Id: I64e64ba8d7fd0c2e15ffd0f460b9bb981742b4b9
Partial-Bug: #1529007