aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/views/package/outdated_gems.erb')
-rw-r--r--web/views/package/outdated_gems.erb38
1 files changed, 38 insertions, 0 deletions
diff --git a/web/views/package/outdated_gems.erb b/web/views/package/outdated_gems.erb
new file mode 100644
index 0000000..fc298a9
--- /dev/null
+++ b/web/views/package/outdated_gems.erb
@@ -0,0 +1,38 @@
+<div id="outdated_gems">
+ <h1>Outdated Gems</h1>
+ <small>
+ Last updated on
+ <%=Time.at(packages.first[:update_timestamp].to_i).strftime('%Y-%m-%d')%>
+ using a portage snapshot dated
+ <%=Time.at(packages.first[:portage_timestamp].to_i).strftime('%Y-%m-%d')%>
+ </small>
+</div>
+
+<form class="pull-right">
+ <input type="checkbox" onclick="$('td:contains(\'+amd64\')').parent().toggle();" checked> amd64
+ <input type="checkbox" onclick="$('td:contains(\'+~amd64\')').parent().toggle();" checked> ~amd64
+</form>
+
+<table id="sortable" class="table table-bordered table-condensed">
+ <thead>
+ <tr>
+ <th class="width-52">Package</th>
+ <th class="width-24">Gentoo Version</th>
+ <th class="width-24">RubyGem Version</th>
+ </tr>
+ </thead>
+ <%packages.each do |package|%>
+ <%if package[:gem_version] > package[:version]%>
+ <tr>
+ <td class="width-52">
+ <%=package[:identifier]%>
+ </td>
+ <td class="width-24 success"><%=package[:version]%></td>
+ <td class="width-24 danger"><a href="//rubygems.org/gems/<%=package[:name]%>"><%=package[:gem_version]%></a></td>
+ <td style="display:none;">
+ +<%=package[:amd64_keyword]%>
+ </td>
+ </tr>
+ <%end%>
+ <%end%>
+</table>