forgotten files for previous commit

This commit is contained in:
Okechi Onyeje 2017-01-20 11:48:10 -05:00
parent 384033bfe6
commit 3f62c9f03c
3 changed files with 173 additions and 162 deletions

View File

@ -89,8 +89,9 @@
<% else %>
<h2 class="sub-header">Recent Results</h2>
<% end %>
<div class="table-responsive">
<div class="table-responsive panel panel-primary">
<table class="table table-striped">
<div class="panel-heading">
<thead>
<tr>
<% if current_user.admin? %>
@ -106,6 +107,8 @@
<th>Oyster Info</th>
</tr>
</thead>
</div>
<div class="panel-body">
<tbody>
<% if current_user.admin? %>
<% @results.each_slice(1) do |row| %>
@ -156,6 +159,9 @@
<td>
<%= run.other ? run.other : "" %>
</td>
<td>
<%= link_to "Show", oysters_index_path( :result_id => result.id, :page_num => params[:page]), :class => "btn btn-primary" %>
</td>
<% end %>
</tr>
<% end %>
@ -207,12 +213,13 @@
<% end %>
<% end %>
</tbody>
</table>
<div class="center-block">
<div class="col-sm-6 panel panel-primary" align="center">
<%= paginate @results %><br>
<%= page_entries_info @results %>
</div>
</table>
</div>
<div class="center-block">
<div class="col-sm-6 col-sm-offset-3 panel panel-primary" align="center">
<%= paginate @results %></br>
<%= page_entries_info @results %>
</div>
</div>
</div>

View File

@ -16,7 +16,7 @@
<body>
<%= yield %>
<%= debug(params) if Rails.env.development? %>
<!-- <%= debug(params) if Rails.env.development? %> -->
</body>
</html>

View File

@ -68,6 +68,7 @@
<% else %>
<div class="panel panel-primary table-responsive">
<table class="table table-striped">
<div class="panel-heading">
<thead>
<tr>
<th>Oyster Grade</th>
@ -77,6 +78,8 @@
<th>Height</th>
</tr>
</thead>
</div>
<div class="panel-body">
<tbody>
<% @oysters.each_slice(1) do |row| %>
<tr>
@ -110,12 +113,13 @@
</tr>
<% end %>
</tbody>
</div>
</table>
</div>
<% end %>
<% if !@oysters.empty? %>
<div class="center-block">
<div class="col-sm-6 panel panel-primary" align="center">
<div class="col-sm-6 col-sm-offset-3 panel panel-primary" align="center">
<%= paginate @oysters %><br>
<%= page_entries_info @oysters %>
</div>