diff options
author | Peter Wilmott <p@p8952.info> | 2015-08-16 18:03:16 +0100 |
---|---|---|
committer | Peter Wilmott <p@p8952.info> | 2015-08-16 18:03:16 +0100 |
commit | 2c092ae8be416204ac2dffc1481093e5c6af32a0 (patch) | |
tree | 23a7573ce2be94529e3096fcbfe846df11c3bd6b /web/views/build_status_sha1.erb | |
parent | Move routes out of app.rb and into their own directory (diff) | |
download | ruby-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/build_status_sha1.erb')
-rw-r--r-- | web/views/build_status_sha1.erb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web/views/build_status_sha1.erb b/web/views/build_status_sha1.erb new file mode 100644 index 0000000..96f3fe4 --- /dev/null +++ b/web/views/build_status_sha1.erb @@ -0,0 +1,20 @@ +<h1 class="text-center"><%=builds.first.package[:identifier]%></h1> + +<table id="sortable" class="table table-bordered table-condensed"> + <thead> + <tr> + <th class="width-50">Build Date</th> + <th class="width-50">Build Result</th> + </tr> + </thead> + <%builds.each do |build|%> + <tr> + <td class="width-50"> + <%=Time.at(build[:timestamp].to_i).strftime('%Y-%m-%d')%> + </td> + <td class="width-50 <%=build[:result]%>"> + <a href="/build_status/<%=build.package[:sha1]%>/<%=build[:timestamp]%>"><%=build[:result].camelcase%></a> + </td> + </tr> + <%end%> +</table> |