added ip addr search

This commit is contained in:
albert
2011-07-29 18:04:50 -04:00
parent 5da43c54f0
commit c8afd34d15
55 changed files with 406 additions and 189 deletions

View File

@@ -1,6 +1,6 @@
<div id="c-forum-topics">
<div id="a-edit">
<h3>Edit Forum Post</h3>
<h1>Edit Forum Post</h1>
<%= render "form" %>
</div>

View File

@@ -1,28 +1,28 @@
<table width="100%" class="striped">
<thead>
<tr>
<th>Topic</th>
<th>Excerpt</th>
<th>Creator</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<% @forum_posts.each do |forum_post| %>
<tr>
<td><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
<td><%= link_to truncate(forum_post.body, :length => 50), forum_post_path(forum_post) %></td>
<td><%= forum_post.creator.name %></td>
<td><%= time_ago_in_words forum_post.created_at %> ago</td>
</tr>
<% end %>
</tbody>
</table>
<div id="c-forum-posts">
<div id="a-index">
<table width="100%" class="striped">
<thead>
<tr>
<th>Topic</th>
<th>Excerpt</th>
<th>Creator</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<% @forum_posts.each do |forum_post| %>
<tr>
<td><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
<td><%= link_to truncate(forum_post.body, :length => 50), forum_post_path(forum_post) %></td>
<td><%= forum_post.creator.name %></td>
<td><%= time_ago_in_words forum_post.created_at %> ago</td>
</tr>
<% end %>
</tbody>
</table>
<div id="paginator">
<%= numbered_paginator(@forum_posts) do |page| %>
<%= link_to(page, forum_posts_path(:search => params[:search], :page => page)) %>
<% end %>
<%= numbered_paginator(@forum_posts) %>
</div>
</div>
<%= render "forum_topics/secondary_links" %>

View File

@@ -1,6 +1,6 @@
<div id="c-forum-topics">
<div id="a-new">
<h3>New Forum Post</h3>
<h1>New Forum Post</h1>
<%= render "form" %>
<%= error_messages_for "forum_post" %>
</div>

View File

@@ -1,6 +1,6 @@
<div id="c-forum-topics">
<div id="a-search">
<h3>Search Forum Posts</h3>
<h1>Search Forum Posts</h1>
<%= simple_form_for @search do |f| %>
<%= f.input :topic_title_matches, :label => "Title" %>
<%= f.input :body_matches, :label => "Body" %>