updated readme

This commit is contained in:
Mike Kelley
2011-08-27 01:41:48 -06:00
commit 17fee3c6d5
98 changed files with 11421 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<div class="right controls"><%= link_to "Back to Forum List", forums_path if can? :create, Forum %></div>
<div class="module">
<div class="module_header">
<%= @forum.title %>
<span class="controls right">
<%= link_to "New Topic", new_forum_topic_path(@forum) if can? :create, Topic %>
<%= link_to "Edit Forum", edit_forum_path(@forum) if can? :manage, @forum %>
<%= link_to "Delete Forum", forum_path(@forum), :confirm => "Are you sure you want to delete this forum?", :method => :delete if can? :manage, @forum %>
</span>
</div>
<div>
<table>
<% if @forum.topics.size > 0 %>
<tr class="smaller">
<th colspan="2" align="left">Topic</th>
<th>Replies</th>
<th>Views</th>
<th class="last_post" align="left">Last Post</th>
</tr>
<!-- No Topics -->
<% else %>
<tr>
<td colspan="5">
<strong><p>There aren't any topics yet <%= link_to "create one", new_forum_topic_path(@forum) if can? :create, Topic %></p></strong>
</td>
</tr>
<% end %>
<% @forum.topics.each do |topic| %>
<tr>
<td class="icon"><%= image_tag 'ruby.png' %></td>
<td class="description">
<%= link_to topic.title, topic_path(topic) %><br />
<span class="smaller">by <%= topic.user.username %></span>
</td>
<td class="counts smaller"><%= topic.posts.size - 1 %></td>
<td class="counts smaller"><%= topic.hits %></td>
<td class="last_post smaller">
<%= topic.posts.last.created_at %><br />
by <%= topic.posts.last.user.username %>
</td>
</tr>
<% end %>
</table>
</div>
</div>
<div class="right controls"><p><%= link_to "Back to Forum List", forums_path if can? :create, Forum %></p></div>