mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
5ed4dd1891
Fix forums unread icon Fix double linebreaks in BBcode Increase colour darkness
31 lines
794 B
Text
31 lines
794 B
Text
<div class="article preview">
|
|
<h1><%= namelink article %></h1>
|
|
|
|
<div class="content">
|
|
<% if article.text_coding == Article::CODING_HTML %>
|
|
<%
|
|
content = article.text.html_safe
|
|
content = truncate(raw(strip_tags(article.text)), length: 200) if !expanded
|
|
%>
|
|
|
|
<%= content %>
|
|
<% else %>
|
|
<%
|
|
content = article.text_parsed.html_safe
|
|
content = truncate(raw(strip_tags(article.text_parsed)), length: 200) if !expanded
|
|
%>
|
|
|
|
<%= content %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="author">
|
|
<%= namelink(article.user) %> on <%= longertime article.created_at %>
|
|
</div>
|
|
|
|
<div class="comments">
|
|
<%= link_to article do %>
|
|
<%= icon 'comments' %> Comments (<%= article.comments.count %>)
|
|
<% end %>
|
|
</div>
|
|
</div>
|