Commit c155c06efc1565f8ae717c31b1c6bfb5edc58d0a
1 parent
4ec3d8c2
Exists in
ratings_minor_fixes
and in
3 other branches
Scope RelevantContentPlugin partials
By moving them into a folder we avoid possible name clashes with other plugins.
Showing
5 changed files
with
13 additions
and
13 deletions
Show diff stats
plugins/relevant_content/views/blocks/_doc.slim
plugins/relevant_content/views/blocks/_subcontent.slim
plugins/relevant_content/views/blocks/relevant_content.slim
1 | 1 | = block_title(block.title, block.subtitle) |
2 | 2 | |
3 | 3 | - if block.show_most_read |
4 | - = render partial: 'blocks/subcontent', locals: {docs: Article.most_accessed(block.owner, block.limit), title: _("Most read articles"), html_class: 'mread'} | |
4 | + = render partial: 'blocks/relevant_content/subcontent', locals: {docs: Article.most_accessed(block.owner, block.limit), title: _("Most read articles"), html_class: 'mread'} | |
5 | 5 | - if block.show_most_commented |
6 | - = render partial: 'blocks/subcontent', locals: {docs: Article.most_commented_relevant_content(block.owner, block.limit), title: _("Most commented articles"), html_class: 'mcommented'} | |
6 | + = render partial: 'blocks/relevant_content/subcontent', locals: {docs: Article.most_commented_relevant_content(block.owner, block.limit), title: _("Most commented articles"), html_class: 'mcommented'} | |
7 | 7 | |
8 | 8 | - if block.env.plugin_enabled?('VotePlugin') |
9 | 9 | - if block.show_most_liked |
10 | - = render partial: 'blocks/subcontent', locals: {docs: Article.more_positive_votes(block.owner, block.limit), title: _("Most liked articles"), html_class: 'mliked'} | |
10 | + = render partial: 'blocks/relevant_content/subcontent', locals: {docs: Article.more_positive_votes(block.owner, block.limit), title: _("Most liked articles"), html_class: 'mliked'} | |
11 | 11 | - if block.show_most_disliked |
12 | - = render partial: 'blocks/subcontent', locals: {docs: Article.more_negative_votes(block.owner, block.limit), title: _("Most disliked articles"), html_class: 'mdisliked'} | |
12 | + = render partial: 'blocks/relevant_content/subcontent', locals: {docs: Article.more_negative_votes(block.owner, block.limit), title: _("Most disliked articles"), html_class: 'mdisliked'} | |
13 | 13 | - if block.show_most_voted |
14 | - = render partial: 'blocks/subcontent', locals: {docs: Article.most_voted(block.owner, block.limit), title: _("Most voted articles"), html_class: 'mvoted'} | |
14 | + = render partial: 'blocks/relevant_content/subcontent', locals: {docs: Article.most_voted(block.owner, block.limit), title: _("Most voted articles"), html_class: 'mvoted'} | ... | ... |
plugins/relevant_content/views/blocks/relevant_content/_doc.slim
0 → 100644
plugins/relevant_content/views/blocks/relevant_content/_subcontent.slim
0 → 100644