Changeset 621:72a006c32a64
- Timestamp:
- 11/06/12 21:20:54 (11 months ago)
- Branch:
- default
- Files:
-
- 9 edited
-
cyclope/apps/contacts/templates/contacts/contact_detail.html (modified) (2 diffs)
-
cyclope/apps/medialibrary/templates/medialibrary/media_player.html (modified) (1 diff)
-
cyclope/core/collections/templates/collections/category_slideshow.html (modified) (2 diffs)
-
cyclope/core/context_processors.py (modified) (2 diffs)
-
cyclope/default_settings.py (modified) (3 diffs)
-
cyclope/templates/comments/comments_list.html (modified) (1 diff)
-
cyclope/templates/cyclope/site_search_box.html (modified) (2 diffs)
-
cyclope/templates/cyclope/themes/neutrona/base.html (modified) (4 diffs)
-
setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/apps/contacts/templates/contacts/contact_detail.html
r493 r621 2 2 3 3 {% load comments i18n fb_versions cyclope_utils markup dbgettext_tags%} 4 5 {% block extra_head %}6 <style media="screen, print" type="text/css">7 </style>8 {% endblock extra_head %}9 4 10 5 {% block content %} … … 25 20 </div> 26 21 <!-- /herramientas --> 27 28 22 23 29 24 {% if contact.photo %} 30 25 <img class="contact_photo" src="{% version contact.photo 'cropped' %}" /> -
cyclope/apps/medialibrary/templates/medialibrary/media_player.html
r494 r621 1 {% load i18n %}1 {% load i18n compress %} 2 2 3 3 {% block extra_head %} 4 {% compress js %} 4 5 <script type='text/javascript' src='/media/cyclope/jwplayer/swfobject.js'></script> 6 {% endcompress %} 5 7 {% endblock %} 6 8 -
cyclope/core/collections/templates/collections/category_slideshow.html
r524 r621 1 1 {% extends host_template %} 2 2 3 {% load i18n cyclope_utils fb_versions %}3 {% load i18n cyclope_utils fb_versions compress %} 4 4 5 5 {% block extra_head %} 6 {% compress js %} 6 7 <script type="text/javascript" src="{{ CYCLOPE_STATIC_URL }}js/jquery.jcarousel.min.js"></script> 7 8 <script type="text/javascript"> … … 38 39 }); 39 40 </script> 41 {% endcompress %} 42 {% compress css %} 40 43 <link rel="stylesheet" type="text/css" href="{{ CYCLOPE_THEME_MEDIA_URL }}css/jcarousel.css" /> 44 {% endcompress %} 41 45 {% endblock %} 42 46 -
cyclope/core/context_processors.py
r277 r621 20 20 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21 21 22 from django.conf import settings 22 23 from cyclope import settings as cyc_settings 23 24 … … 30 31 settings_dict[setting] = getattr(cyc_settings, setting) 31 32 return settings_dict 33 34 35 def third_party_settings(request): 36 """Exposes some necesary settings of third party apps to the template. 37 """ 38 settings_dict = {} 39 40 settings_dict["COMPRESS_ENABLED"] = getattr(settings, "COMPRESS_ENABLED", False) 41 return settings_dict -
cyclope/default_settings.py
r570 r621 62 62 "django.core.context_processors.request", 63 63 "cyclope.core.context_processors.site_settings", 64 "cyclope.core.context_processors.third_party_settings", 64 65 ) 65 66 … … 126 127 'contact_form', 127 128 'markitup', 129 'compressor', 128 130 129 131 # 'debug_toolbar', … … 250 252 MARKITUP_FILTER = ('django.contrib.markup.templatetags.markup.textile', {}) 251 253 252 254 # compressor settings 255 COMPRESS_PARSER = "compressor.parser.HtmlParser" 256 257 COMPRESS_PRECOMPILERS = ( 258 ('text/less', '/usr/bin/lessc {infile} {outfile}'), 259 ) -
cyclope/templates/comments/comments_list.html
r527 r621 1 1 {% extends host_template %} 2 2 {% load i18n %} 3 4 {% block extra_head %}5 {% endblock %}6 3 7 4 {% block content %} -
cyclope/templates/cyclope/site_search_box.html
r402 r621 1 1 {% extends host_template %} 2 {% load i18n %}2 {% load i18n compress %} 3 3 4 4 {% block extra_head %} 5 {% compress js %} 5 6 {{ block.super }} 6 7 <script type="text/javascript"> … … 22 23 23 24 </script> 25 {% endcompress %} 24 26 {% endblock %} 25 27 -
cyclope/templates/cyclope/themes/neutrona/base.html
r612 r621 17 17 --> 18 18 19 {% load layout i18n tagging_tags %}20 19 {% load layout i18n tagging_tags compress %} 20 21 21 <html> 22 22 23 23 <head> 24 24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> … … 28 28 <link href="/rss" title="RSS" type="application/rss+xml" rel="alternate" /> 29 29 30 {% if not COMPRESS_ENABLED %} 30 31 <link href="{{ CYCLOPE_THEME_MEDIA_URL }}css/cyclope.less" rel="stylesheet/less" type="text/css"/> 31 <link href="{{ CYCLOPE_THEME_MEDIA_URL }}css/print.css" rel="stylesheet" type="text/css" media="print"/> 32 <script type="text/javascript" src="{{ CYCLOPE_STATIC_URL }}js/less-1.3.0.min.js"></script> 33 {% else %} 34 {% compress css %} 35 <link href="{{ CYCLOPE_THEME_MEDIA_URL }}css/cyclope.less" rel="stylesheet" type="text/less"/> 36 {% endcompress %} 37 {% endif %} 38 {% compress css %} 39 <link href="{{ CYCLOPE_THEME_MEDIA_URL }}css/print.css" rel="stylesheet" type="text/css" media="print"/> 32 40 <link href="{{ CYCLOPE_STATIC_URL }}js/lightbox/css/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css" media="screen"/> 33 <script type="text/javascript" src="{{ CYCLOPE_STATIC_URL }}js/less-1.3.0.min.js"></script> 41 {% endcompress %} 42 {% compress js %} 34 43 <script type="text/javascript" src="{{ CYCLOPE_STATIC_URL }}js/jquery-1.5.1.min.js"></script> 35 44 <script type="text/javascript" src="{{ CYCLOPE_STATIC_URL }}js/jquery-ui-1.8.13.custom.min.js"></script> … … 50 59 containerResizeSpeed: 400, 51 60 txtImage: '{% trans "Image"%}', 52 txtOf: '{% trans "of"%}' ,61 txtOf: '{% trans "of"%}' 53 62 }); 54 63 }); 55 64 </script> 65 {% endcompress %} 56 66 {% block extra_head %}{% endblock %} 57 67 </head> … … 115 125 </div> 116 126 <!-- /pie --> 117 127 118 128 </div> 119 129 <!-- /mascara --> -
setup.py
r537 r621 78 78 'django-jsonfield==0.6.0-cyclope', # installed from our clone 79 79 'feedparser==5.1', 80 'django-compressor==1.1.2', 80 81 ], 81 82
Note: See TracChangeset
for help on using the changeset viewer.

