Sha256: ab3b6d1b6b400750153930671e127c14c3950151948ffa2c37e86fa4a8a711a0

Contents?: true

Size: 774 Bytes

Versions: 1

Compression:

Stored size: 774 Bytes

Contents

<% limit = limit || false %>
<article class="kblog-article">
	<aside class="kblog-created">
		<%= localize(article.created_at, format: :long) %>
	</aside>
	<h2><%= article.title %></h2>

	<div class="kblog-content">
		<% if limit %>
			<%= textilize(truncate(article.content, :length => limit, :omission => "... <em>#{link_to('continued', kblog.article_path(article))}</em> ")).html_safe %>
		<% else %>
			<%= textilize(article.content).html_safe %>
		<% end %>
	</div>
	<% if defined?(current_user) && Kblog::Article.user_rights(current_user) %>
		<div class="kblog-links">
			<%= link_to 'Edit', kblog.edit_article_path(article) %> |
			<%= link_to 'Destroy', kblog.article_path(article), :confirm => 'Are you sure?', :method => :delete %>
		</div>
	<% end %>
</article>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kblog-0.0.4 app/views/kblog/articles/_article.html.erb