added placeholder in context for latest post plugin

This commit is contained in:
Davide Truffo 2015-06-02 17:23:53 +02:00
parent 150de8866f
commit 010c648b08

View file

@ -30,6 +30,7 @@ class BlogLatestEntriesPlugin(BlogPlugin):
context['instance'] = instance context['instance'] = instance
context['posts_list'] = instance.get_posts(context['request']) context['posts_list'] = instance.get_posts(context['request'])
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT') context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
context['placeholder'] = placeholder
return context return context
@ -47,6 +48,7 @@ class BlogLatestEntriesPluginCached(BlogPlugin):
context['instance'] = instance context['instance'] = instance
context['posts_list'] = instance.get_posts() context['posts_list'] = instance.get_posts()
context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT') context['TRUNCWORDS_COUNT'] = get_setting('POSTS_LIST_TRUNCWORDS_COUNT')
context['placeholder'] = placeholder
return context return context