forked from ohadlevy/dish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplified mux lookup, added last change date per package in host view
- Loading branch information
Showing
4 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<span class=pagination> | ||
<% value ||= "name_like" -%> | ||
<% form_for @search do |f|-%> | ||
<%= f.text_field :name_like, :size => 10 %> | ||
<%= f.text_field value, :size => 10 %> | ||
<%= f.submit "Search" %> | ||
<% end %> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
<% title "#{h @host.name} (#{@host.os})" %> | ||
<%= render "common/search" %> | ||
<%= render "common/search", :value => :package_name_like %> | ||
<table> | ||
<tr> | ||
<th>Package</th> | ||
<th>Version(arch)</th> | ||
<th>Version</th> | ||
<th>Arch</th> | ||
<th>Last changed</th> | ||
</tr> | ||
<% for package in @packages -%> | ||
<% for mux in @muxes -%> | ||
<tr> | ||
<td><%= link_to h(package), package_path(package) %></td> | ||
<td> <%= h @host.package_details(package).to_sentence %></td> | ||
<td><%= link_to h(mux.package), package_path(mux.package) %></td> | ||
<td><%= h mux.version %></td> | ||
<td><%= h mux.arch %></td> | ||
<td><%= time_ago_in_words mux.updated_at %></td> | ||
</tr> | ||
<% end -%> | ||
</table> | ||
<%= page_entries_info @packages %> | ||
<%= will_paginate @packages %> | ||
<%= page_entries_info @muxes %> | ||
<%= will_paginate @muxes %> | ||
|
||
<p> | ||
<%= link_to "View All", hosts_path %> | ||
<span class="pagination">last updated at <%= @host.updated_at %></span> | ||
<span class="pagination">last updated <%= time_ago_in_words @host.updated_at %> ago</span> | ||
</p> |