Commit cef870cc6c041956fa5a803e2ebde7306f82d86b
1 parent
98bd9a06
Exists in
master
and in
28 other branches
Add option to remove description
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/views/search/_article_common.rhtml
1 | <% article = article_common %> | 1 | <% article = article_common %> |
2 | +<% show_description = true if show_description.nil? %> | ||
2 | 3 | ||
3 | <%= render :partial => 'article_author', :object => article %> | 4 | <%= render :partial => 'article_author', :object => article %> |
4 | -<%= render :partial => 'article_description', :object => article %> | 5 | +<%= render :partial => 'article_description', :object => article if show_description %> |
5 | <%= render :partial => 'article_tags', :object => article.tags %> | 6 | <%= render :partial => 'article_tags', :object => article.tags %> |
6 | <%= render :partial => 'article_categories', :object => article.categories %> | 7 | <%= render :partial => 'article_categories', :object => article.categories %> |
7 | <%= render :partial => 'article_last_change', :object => article %> | 8 | <%= render :partial => 'article_last_change', :object => article %> |