1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-19 14:00:27 +00:00

Moved jquery and datatables back to asset pipline. Log out now works

This commit is contained in:
2015-05-05 12:39:15 +00:00
parent cf7b19838c
commit 89e6a81bd1
12 changed files with 35 additions and 23 deletions

View File

@@ -1,10 +1,15 @@
<h1>Pick A Tournament</h1>
<script>
$(document).ready(function() {
$('#tournamentList').dataTable();
} );
</script>
<% if user_signed_in? %>
<%= link_to 'New Tournament', new_tournament_path, :class=>"btn btn-default" %>
<% end %>
</br>
</br>
<table class="display compact cell-border" id="tournaments">
<table class="display compact cell-border" id="tournamentList">
<thead>
<tr>
<th>Name</th>

View File

@@ -1,10 +1,15 @@
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %>
<script>
$(document).ready(function() {
$('#matchList').dataTable();
} );
</script>
<br>
<br>
<h3>Upcoming Matches</h3>
<br>
<br>
<table class="display compact cell-border" id="matches">
<table class="display compact cell-border" id="matchList">
<thead>
<tr>
<th>Round</th>