Reviewed: https://review.openstack.org/317051 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=4b870b12c139bda715c9d68e53daf80b51034d42 Submitter: Jenkins Branch: master
commit 4b870b12c139bda715c9d68e53daf80b51034d42 Author: Diana Whitten <[email protected]> Date: Mon May 16 10:34:21 2016 -0700 Django compressor cannot find custom theme templates An else condition was missed in the Theme Template loader. Some templates that are loaded from a theme do start with '/', so another elif was added to catching this possibility. Closes-bug: #1582298 Change-Id: I74e147d5abdcb2ab12f1a0c8e7af7fc7f89aff1e ** 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/1582298 Title: Django compressor cannot find custom theme templates Status in OpenStack Dashboard (Horizon): Fix Released Bug description: Looks like django compressor can't find templates files from custom theme. When I try to run .manage.py compress I have the following errors: `Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/custom/templates/header/_header.html` And Horizon can find that template because I see that overriden page has been changed. If I run it with material theme with followinf settings: AVAILABLE_THEMES = [ ('custom', 'Custom', 'themes/custom'), ('material', 'Material', 'themes/material') ] DEFAULT_THEME = 'material' I will get the following errors: Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/header/_header.html Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/auth/_splash.html Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/horizon/_sidebar.html Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/header/_brand.html If I remove DEFAULT_THEME and AVAILABLE_THEMES consts, there is no errors. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1582298/+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

