Added django_compress and cssmin to the requirements files and enalbed django_compress for CSS and JS files
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
{% load i18n %}
|
||||
{% load theme_tags %}
|
||||
{% load compress %}
|
||||
|
||||
{% get_theme as web_theme %}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
@@ -11,6 +13,7 @@
|
||||
|
||||
{% block web_theme_head %}{% endblock %}
|
||||
|
||||
{% compress css %}
|
||||
<link rel="stylesheet" href="{{ STATIC_URL }}web_theme_media/stylesheets/base.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" id="current-theme" href="{{ STATIC_URL }}web_theme_media/stylesheets/themes/{{ web_theme }}/style.css" type="text/css" media="screen" />
|
||||
<style type="text/css">
|
||||
@@ -32,15 +35,18 @@
|
||||
}
|
||||
</style>
|
||||
{% block web_theme_stylesheets %}{% endblock %}
|
||||
{% endcompress %}
|
||||
|
||||
{% compress js %}
|
||||
<script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}web_theme_media/javascripts/jquery-1.5.2.min.js"></script>
|
||||
|
||||
{% if enable_scroll_js %}
|
||||
<script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}web_theme_media/javascripts/jquery.scrollTo.js"></script>#}
|
||||
<script type="text/javascript" charset="utf-8" src="{{ STATIC_URL }}web_theme_media/javascripts/jquery.localscroll.js"></script>#}
|
||||
{% endif %}
|
||||
|
||||
{% block web_theme_javascript %}{% endblock %}
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".message").fadeIn("slow");
|
||||
@@ -59,6 +65,7 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endcompress %}
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
|
||||
Reference in New Issue
Block a user