Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(57)

Side by Side Diff: app/views/news/index.rhtml

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 <script> 1 <script>
2 function toggle_tags() { 2 function toggle_tags() {
3 e = 'tag_cloud'; 3 e = 'tag_cloud';
4 if (Element.visible(e)) 4 if (Element.visible(e))
5 new Effect.BlindUp(e); 5 new Effect.BlindUp(e);
6 else 6 else
7 new Effect.BlindDown(e); 7 new Effect.BlindDown(e);
8 } 8 }
9 </script> 9 </script>
10 10
11 <!-- Tag Search Form --> 11 <!-- Tag Search Form -->
12 <div style="text-align: center"> 12 <div style="text-align: center">
13 <%= start_form_tag :action => 'search', :id => (@author ? @author.id : nil) %> 13 <% form_tag :action => 'search', :id => (@author ? @author.id : nil) do %>
14 Search by author: 14 Search by author:
15 <%= collection_select 'search', 'user_id', 15 <%= collection_select 'search', 'user_id',
16 User.find(:all, :order => 'lastname, firstname'), 16 User.find(:all, :order => 'lastname, firstname'),
17 :id, :name, :include_blank => true %> 17 :id, :name, :include_blank => true %>
18 with tags: 18 with tags:
19 <%= text_field 'search', 'tags', :size => 10 %> 19 <%= text_field 'search', 'tags', :size => 10 %>
20 <%= submit_tag 'Go' %> 20 <%= submit_tag 'Go' %>
21 <%= link_to_function "show tags", "toggle_tags()" %> 21 <%= link_to_function "show tags", "toggle_tags()" %>
22 <%= end_form_tag %> 22 <% end %>
23 </div> 23 </div>
24 <p></p> 24 <p></p>
25 <!-- End Tag Search Form --> 25 <!-- End Tag Search Form -->
26 26
27 <div style="display:none; text-align:justify" id="tag_cloud"> 27 <div style="display:none; text-align:justify" id="tag_cloud">
28 <p>There are news items that have been tagged with the following:</p> 28 <p>There are news items that have been tagged with the following:</p>
29 <div class="section"> 29 <div class="section">
30 <% for tag in Tag.find(:all) %> 30 <% for tag in Tag.find(:all) %>
31 <%= link_to_tag(tag) %> 31 <%= link_to_tag(tag) %>
32 <% end %> 32 <% end %>
(...skipping 22 matching lines...) Expand all
55 <%= link_to 'Next page', { :page => @news_item_pages.current.next } if @news_i tem_pages.current.next %> 55 <%= link_to 'Next page', { :page => @news_item_pages.current.next } if @news_i tem_pages.current.next %>
56 <% end -%> 56 <% end -%>
57 <br /> 57 <br />
58 58
59 <% if @author or @tags -%> 59 <% if @author or @tags -%>
60 <% limited = @author ? "not just #{@author.firstname}'s" : "not just tagged it ems" %> 60 <% limited = @author ? "not just #{@author.firstname}'s" : "not just tagged it ems" %>
61 <center> 61 <center>
62 <%= link_to "Show All Family News (#{limited})", :controller => 'news' %> 62 <%= link_to "Show All Family News (#{limited})", :controller => 'news' %>
63 </center> 63 </center>
64 <% end -%> 64 <% end -%>
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483