mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
09026a2e4b
Tweak colour brightnesses
12 lines
304 B
Ruby
12 lines
304 B
Ruby
module ArticlesHelper
|
|
def preview_text(article, full)
|
|
if article.text_coding == Article::CODING_HTML
|
|
content = article.text.html_safe
|
|
else
|
|
content = article.text_parsed.html_safe
|
|
end
|
|
|
|
content = truncate(raw(strip_tags(content)), length: 200) if !full
|
|
content
|
|
end
|
|
end
|