Commit Graph

10 Commits

Author SHA1 Message Date
Radomir Dopieralski 4a89303231 Clean up the syntax of html attributes to always use double quotes
Our templates are very inconsistent and sometimes even use single and
double quotes in the same tag. This is an attempt to clean it up a
little and use double quotes everywhere.

In addition, I have run into a problem with single quotes being
incorrectly escaped by the Django compressor, and I want to see if
this will help with the issue.

Change-Id: I2d5137a87ed65c6abef38a49264346f917a1c85a
2023-04-05 11:00:26 +02:00
Akihiro Motoki 1a40115eee Use "load static" instead of "load staticfiles"
"{% load staticfiles %}" is deprecated in Django 2.1 [1] and will be
removed in Django 3.0. This commit addresses the deprecation warning.

[1] https://docs.djangoproject.com/en/3.1/releases/2.1/#id2

Change-Id: Icf0c032bae2674b4d9373b753ef8d81f3729a401
2021-01-13 21:31:36 +09:00
Jenkins 26cbc8d5e5 Merge "Add apple-touch-icon and safari-pinned-tab" 2017-07-27 07:42:06 +00:00
Ivan Kolodyazhny 2b3c7bdbcb Fix styles for error page template
500.html template has incorrect styles for OpenStack logo. This patch
fixes margins and background image size to fit into the container.

Change-Id: Icc2af2731eb8a842c12c073474f3865709b6de2b
Closes-Bug: #1696437
2017-06-07 17:28:53 +03:00
Mateusz Kowalski 55144382e3 Add apple-touch-icon and safari-pinned-tab
Apple devices handle website icons through Apple Touch
Icon which requires apple-touch-icon tag in stylesheet.
Also Safari pinned tab icon requires a separate SVG
for being correctly displayed.

Change-Id: I108039b263dafee3f0f23a4f7daa796eca36a52f
Closes-Bug: #1689504
2017-05-09 10:30:34 +02:00
Rob Cresswell 939731183b Update default OpenStack branding across Horizon
This patch updates the OpenStack logos across Horizon to the newer
versions. It also uses SVG files instead of PNG, so that it scales
better.

Change-Id: Ief3661023332ed6777256d20a4dc865f6a51695f
Closes-Bug: 1637490
2017-01-25 10:15:11 +00:00
lin-hua-cheng 1f19522a85 Add optional Report Bug link to Horizon
Change-Id: I2d0053adbdfcb196683c709f755f778427e6109b
Closes-Bug: #1499476
2015-09-25 17:29:15 -07:00
Sam Betts 48a257185b Use WEBROOT setting for the 500 page home button
The home button on the 500 page currently links to "/" which is not
always the true app root, in settings we define a WEBROOT
variable so that we can inform the app of its actual location.

This patch uses that variable to set href location for the home link
on the 500 page, so it will be acurate for all cases.

To make this possible the load_conf template tag now returns conf
itself instead of conf.HORIZON_CONFIG giving the template access to
more of the settings including WEBROOT.

Change-Id: I9d42ac8eeb7f2bf558ba86440fd5ae85ef591568
Closes-Bug: 1427903
2015-03-30 13:55:28 +01:00
Kieran Spear 76ef256dc4 Don't inherit from base.html in 500 error page
For server errors, the context passed to the template is empty,
so things like STATIC_URL and context processors don't work.

Fixes bug 1067206.

Change-Id: Ia1801afaecd6a23fbcc6054552d0fd313597d1c1
2012-11-21 12:13:17 +11:00
Gabriel Hurley 052aa55d34 Unifies the project packaging into one set of modules.
There are no longer two separate projects living inside the horizon
repository. There is a single project now with a single setup.py,
single README, etc.

The openstack-dashboard/dashboard django project is now named
"openstack_dashboard" and lives as an example project in the
topmost horizon directory.

The "horizon/horizon" directory has been bumped up a level and now
is directly on the path when the root horizon directory is on
your python path.

Javascript media which the horizon module directly relies upon
now ships in the horizon/static dir rather than
openstack-dashboard/dashboard/static.

All the corresponding setup, installation, build, and env scripts
have been updated accordingly.

Implements blueprint unified-packaging.

Change-Id: Ieed8e3c777432cd046c3e0298869a9428756ab62
2012-02-29 00:20:13 -08:00