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

View File

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

View File

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