Sha256: 2fbe05c9326d5e9ba510774946e45a8f0e0f492dd0e6c8e5e1930cb756c8da68
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
<% form_tag({:action => 'index'}, :method => :get, :name => 'search') do %> <table cellspacing="1" cellpadding="0"> <tr> <th><%= _("Title") %></th> <th><%= _("Date") %></th> <th><%= _("Author")%></th> <th><%= _("Status") %></th> <th><%= _("Permalink")%></th> </tr> <tr class="menubar"> <td> </td> <td> <%= collection_select_with_current(:search, :published_at, Page.find_by_published_at, "publication", "publication", @search[:published_at].to_s, true) %> </td> <td><%= collection_select_with_current(:search, :user_id, User.find(:all), "id", "name", @search[:user_id].to_i, true) %></td> <td> <select name="search[published]"> <%= options_for_select([[_("Please select"), ""], [_("Unpublished"), "0"], [ _("Published"), "1"]], @search[:published]) %> </select> </td> <td><input type="submit" value="<%= _("Filter") %>" /> </tr> <%= render_void_table(@pages.size, 5) %> <% for page in @pages %> <tr <%= alternate_class %>> <td><%= link_to_edit_with_profiles page.title, page %></td> <td><%= page.created_at.strftime('%d/%m/%Y') %></td> <td><%= author_link(page) %></td> <td><%= link_to_published page %></td> <td><%= page.name%></td> </tr> <% end %> <%= display_pagination(@pages, 5)%> </table> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems