Skip to content

Commit

Permalink
typo in filemanager include, what if post has no body?
Browse files Browse the repository at this point in the history
  • Loading branch information
Yule committed Mar 1, 2011
1 parent 3e6bddb commit ed74b09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/dashboard/_posts.html.erb
Expand Up @@ -14,7 +14,7 @@
link_to_permalink(post, post.title),
post.published_at.strftime(this_blog.date_format),
post.published_at.strftime(this_blog.time_format)) %></h4>
<p><%= post.body.strip_html.slice(0,300) %></p>
<p><%= post.body.strip_html.slice(0,300) if post.body %></p>
</li>
<% end %>
<% end %>
Expand Down
Expand Up @@ -2,7 +2,7 @@
<head>
<title>Filemanager</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%= javascript_include_tag 'prototype', 'scriptaculous', 'effetcs', 'builder', 'lightbox', 'prototype_ext', :cache => true %>
<%= javascript_include_tag 'prototype', 'scriptaculous', 'effects', 'builder', 'lightbox', 'prototype_ext', :cache => true %>

<script src="<%= this_blog.base_url %>/javascripts/prototype.js" type="text/javascript"></script>
<script src="<%= this_blog.base_url %>/javascript/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
Expand Down

0 comments on commit ed74b09

Please sign in to comment.