aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wilmott <p@p8952.info>2015-08-16 18:03:16 +0100
committerPeter Wilmott <p@p8952.info>2015-08-16 18:03:16 +0100
commit2c092ae8be416204ac2dffc1481093e5c6af32a0 (patch)
tree23a7573ce2be94529e3096fcbfe846df11c3bd6b /web/views/repoman_checks_sha1.erb
parentMove routes out of app.rb and into their own directory (diff)
downloadruby-tinderbox-2c092ae8be416204ac2dffc1481093e5c6af32a0.tar.gz
ruby-tinderbox-2c092ae8be416204ac2dffc1481093e5c6af32a0.tar.bz2
ruby-tinderbox-2c092ae8be416204ac2dffc1481093e5c6af32a0.zip
Restructure views to match the layout of the routes directory
Diffstat (limited to 'web/views/repoman_checks_sha1.erb')
-rw-r--r--web/views/repoman_checks_sha1.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/web/views/repoman_checks_sha1.erb b/web/views/repoman_checks_sha1.erb
new file mode 100644
index 0000000..459ee9d
--- /dev/null
+++ b/web/views/repoman_checks_sha1.erb
@@ -0,0 +1,20 @@
+<h1 class="text-center"><%=repomans.first.package[:identifier]%></h1>
+
+<table id="sortable" class="table table-bordered table-condensed">
+ <thead>
+ <tr>
+ <th class="width-50">Check Date</th>
+ <th class="width-5o">Check Result</th>
+ </tr>
+ </thead>
+ <%repomans.each do |repoman|%>
+ <tr>
+ <td class="width-50">
+ <%=Time.at(repoman[:timestamp].to_i).strftime('%Y-%m-%d')%>
+ </td>
+ <td class="width-50 <%=repoman[:result]%>">
+ <a href="/repoman_checks/<%=repoman.package[:sha1]%>/<%=repoman[:timestamp]%>"><%=repoman[:result].camelcase%></a>
+ </td>
+ </tr>
+ <%end%>
+</table>