Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
some work on comments, recent posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Jan 30, 2009
1 parent 22466f0 commit 5f1a6da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/views/shared/_comments.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div class='comments' id='comments'>
<% if commentable.comments.any? %>
<h3>Comments</h3>
<h4><%= link_to "Post a comment", "#new_comment" %></h4>
<% commentable.comments.find(:all, :order => 'created_at DESC').each do |comment| %>
<%= show_comment(comment) %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div class='recent-posts'>
<ul class='recent-posts widget'>
<h3>Recent Posts</h3>
<% Ansuz::JAdams::BlogPost.recent.each do |post| %>
<div class='post'>
<li class='post'>
<%= link_to post.title, article_path(post) %>
</div>
</li>
<% end %>
</div>
</ul>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% form_tag submit_form_builder_path(plugin_module) do %>
<table class='form-table'>
<table class='form-table subdued'>
<% plugin_module.form_fields.each do |form_field| %>
<%= form_field_display_for(form_field) %>
<% end %>
Expand Down

0 comments on commit 5f1a6da

Please sign in to comment.