diff options
author | Peter Wilmott <p@p8952.info> | 2015-01-25 18:50:24 +0000 |
---|---|---|
committer | Peter Wilmott <p@p8952.info> | 2015-01-25 18:50:24 +0000 |
commit | 689c664bf437b1655d379f78af12e401a7ba66ca (patch) | |
tree | 074502c92b2e6966bb1aa46c05da119835985382 /web | |
parent | Add repoman logs and history pages (diff) | |
download | ruby-tinderbox-689c664bf437b1655d379f78af12e401a7ba66ca.tar.gz ruby-tinderbox-689c664bf437b1655d379f78af12e401a7ba66ca.tar.bz2 ruby-tinderbox-689c664bf437b1655d379f78af12e401a7ba66ca.zip |
Keep table columns a uniform size
Diffstat (limited to 'web')
-rw-r--r-- | web/public/css/style.css | 4 | ||||
-rw-r--r-- | web/views/build_history.erb | 8 | ||||
-rw-r--r-- | web/views/repoman_history.erb | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/web/public/css/style.css b/web/public/css/style.css index 0e7909d..a4ebef9 100644 --- a/web/public/css/style.css +++ b/web/public/css/style.css @@ -55,6 +55,10 @@ table th.sort-up:after { width: 52%; } +.width-50 { + width: 50%; +} + .width-24 { width: 24%; } diff --git a/web/views/build_history.erb b/web/views/build_history.erb index 33deb58..fde2445 100644 --- a/web/views/build_history.erb +++ b/web/views/build_history.erb @@ -3,8 +3,8 @@ <table id="sortable" class="table table-bordered table-condensed"> <thead> <tr> - <th>Build Date</th> - <th>Build Result</th> + <th class="width-50">Build Date</th> + <th class="width-50">Build Result</th> </tr> </thead> <%builds.each do |build|%> @@ -13,10 +13,10 @@ <%result = 'info' if build[:result] == 'timed out'%> <%result = 'danger' if build[:result] == 'failed'%> <tr> - <td> + <td class="width-50"> <%=Time.at(build[:time].to_i).strftime('%Y-%m-%d')%> </td> - <td class="<%=result%>"> + <td class="width-50 <%=result%>"> <a href="/build_logs/<%=build[:package_id]%>/<%=build[:time]%>"><%=build[:result].camelcase%></a> </td> </tr> diff --git a/web/views/repoman_history.erb b/web/views/repoman_history.erb index 6dd6c5f..954e85a 100644 --- a/web/views/repoman_history.erb +++ b/web/views/repoman_history.erb @@ -3,8 +3,8 @@ <table id="sortable" class="table table-bordered table-condensed"> <thead> <tr> - <th>Check Date</th> - <th>Check Result</th> + <th class="width-50">Check Date</th> + <th class="width-5o">Check Result</th> </tr> </thead> <%repomans.each do |repoman|%> @@ -13,10 +13,10 @@ <%result = 'info' if repoman[:next_result] == 'failed'%> <%result = 'danger' if repoman[:current_result] == 'failed'%> <tr> - <td> + <td class="width-50"> <%=Time.at(repoman[:time].to_i).strftime('%Y-%m-%d')%> </td> - <td class="<%=result%>"> + <td class="width-50 <%=result%>"> <a href="/repoman_logs/<%=repoman[:package_id]%>/<%=repoman[:time]%>"><%=repoman[:current_result].camelcase%> / <%=repoman[:next_result].camelcase%></a> </td> </tr> |