Adding default setup to allow for rollback from Rackspace theme

This commit is contained in:
Jason Cannavale 2012-10-29 09:40:25 -05:00
parent 3c6cbc29d4
commit b7da0abe52
2 changed files with 15 additions and 0 deletions

View File

@ -200,6 +200,14 @@ cookbook_file "#{node["horizon"]["dash_path"]}/static/dashboard/css/folsom.css"
group grp
end
template node["horizon"]["dash_path"]/templates/_stylesheets.html do
only_if(node["horizon"]["theme"] == "default")
source "default_stylesheets.html.erb"
mode 0644
owner "root"
group grp
end
template node["horizon"]["dash_path"]/templates/_stylesheets.html do
only_if(node["horizon"]["theme"] == "Rackspace")
source "rs_stylesheets.html.erb"

View File

@ -0,0 +1,7 @@
{% load compress %}
{% compress css %}
<link href='{{ STATIC_URL }}dashboard/less/horizon.less' type='text/less' media='screen' rel='stylesheet' />
{% endcompress %}
<link rel="shortcut icon" href="{{ STATIC_URL }}dashboard/img/favicon.ico"/>