Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Use easy_thumbnails_tags #278

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Arne Schauf
* Benjamin Wohlwend
* Bertrand Bordage
* Bryan Marty
* Claudio Bartolini
* Cucu
* Dan Johnson
Expand Down Expand Up @@ -49,4 +50,4 @@
* Toni Röyhy
* Venelin Stoykov
* Waldecir Loureiro dos Santos Filho
* Yann Malet
* Yann Malet
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Dependencies
* Django >= 1.8
* django-cms >= 3.1
* django-sekizai >= 0.4.2
* easy_thumbnails >= 1.0
* easy_thumbnails >= 2.4.1
* django-appconf
* djangocms-attributes-field

Expand Down
1 change: 1 addition & 0 deletions cmsplugin_filer_file/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ def icon_src(self, instance):
return file_icon
return static("filer/icons/file_%sx%s.png" % (32, 32,))


plugin_pool.register_plugin(FilerFilePlugin)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n thumbnail sekizai_tags staticfiles %}
{% load i18n easy_thumbnails_tags sekizai_tags staticfiles %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{% static 'cmsplugin_filer_folder/css/slideshow.css' %}" media="screen, projection" />{% endaddtoblock "css" %}
{% addtoblock "js" %}<script type="text/javascript" src="{% static 'cmsplugin_filer_folder/js/jquery.cycle.lite-1.7.js' %}"></script>{% endaddtoblock "js" %}
{% addtoblock "js" %}
Expand Down
2 changes: 2 additions & 0 deletions cmsplugin_filer_image/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ def icon_src(self, instance):
return thumbnail.url
else:
return static("filer/icons/missingfile_%sx%s.png" % (32, 32,))


plugin_pool.register_plugin(FilerImagePlugin)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load thumbnail filer_tags filer_image_tags %}{% spaceless %}
{% load easy_thumbnails_tags filer_tags filer_image_tags %}{% spaceless %}
{% comment %}
You may change the image size for special cases in your project by overriding
this template. There are a few size manipulation filters for this in
Expand Down
1 change: 1 addition & 0 deletions cmsplugin_filer_teaser/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ def get_render_template(self, context, instance, placeholder):
))
return template


plugin_pool.register_plugin(FilerTeaserPlugin)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n thumbnail %}
{% load i18n easy_thumbnails_tags %}
<div{% if instance.style %} class="{{ instance.style }}"{% endif %}>
<h2>{{ instance.title }}</h2>
{% if instance.image or instance.image_url %}
Expand Down
1 change: 1 addition & 0 deletions cmsplugin_filer_video/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ def render(self, context, instance, placeholder):
def icon_src(self, instance):
return static("filer/icons/video_%sx%s.png" % (32, 32,))


plugin_pool.register_plugin(FilerVideoPlugin)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

"django-cms >= 3.1",
"django-sekizai >= 0.4.2",
"easy_thumbnails >= 1.0",
"easy_thumbnails >= 2.4.1",
"django-appconf",
"djangocms-attributes-field>=0.1.1",
],
Expand Down
1 change: 1 addition & 0 deletions test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ def run():
from djangocms_helper import runner
runner.cms('cmsplugin_filer_file')


if __name__ == "__main__":
run()