diff options
author | Matthias Runge <mrunge@redhat.com> | 2015-10-14 11:40:03 +0200 |
---|---|---|
committer | Matthias Runge <mrunge@redhat.com> | 2015-11-09 13:26:50 +0100 |
commit | dca415d6d834825fb59fd04338aac21429d4f0e5 (patch) | |
tree | d869e451d69082c8c1873a5d6f275700130466ac | |
parent | 79730bba92b397a47aa10885becfbd4548b609ee (diff) | |
download | horizon-dca415d6d834825fb59fd04338aac21429d4f0e5.tar.gz |
respect webroot setting in containers table
Change-Id: I847b8e4589a7b3122bb23431f1d88038dc10ae6c
Closes-Bug: #1505976
(cherry picked from commit 1296707d37abce5fcc7f1030f852875fbae9aff4)
-rw-r--r-- | openstack_dashboard/dashboards/project/containers/tables.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/project/containers/tables.py b/openstack_dashboard/dashboards/project/containers/tables.py index f58da7139..637ebf3e8 100644 --- a/openstack_dashboard/dashboards/project/containers/tables.py +++ b/openstack_dashboard/dashboards/project/containers/tables.py @@ -13,6 +13,7 @@ # under the License. import logging +from django.conf import settings from django import shortcuts from django import template from django.template import defaultfilters as filters @@ -32,7 +33,8 @@ from openstack_dashboard.dashboards.project.containers import utils LOG = logging.getLogger(__name__) -LOADING_IMAGE = '<img src="/static/dashboard/img/loading.gif" />' +static_url = getattr(settings, 'STATIC_URL', '/static/') +LOADING_IMAGE = '<img src="%s/dashboard/img/loading.gif" />' % static_url class ViewContainer(tables.LinkAction): |