1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-12 16:25:41 +00:00

Installed devise

This commit is contained in:
Jacob Cody Wimer
2014-01-21 22:23:09 -05:00
parent 73d22a126a
commit 382e1a0c05
4 changed files with 36 additions and 9 deletions

View File

@@ -5,13 +5,16 @@
<nav>
<ul class="nav pull-right">
<li><%= link_to "Home", root_path %></li>
<li><%= link_to "School Scores", '/static_pages/school' %></li>
<li><%= link_to "Brackets" , '#' %></li>
<li><%= link_to "Bout Board" , '#' %></li>
<% #If logged in %>
<li><%= link_to "Admin" , '/admin/index' %></li>
<% #ELSE %>
<li><%= link_to "Log In" , '#' %></li>
<% if @tournament %>
<li><%= link_to "Brackets" , '#' %></li>
<li><%= link_to "Bout Board" , '#' %></li>
<% end %>
<% if user_signed_in? %>
<li><%= link_to "Admin" , '/admin/index' %></li>
<li><%= link_to "Log Out", destroy_user_session_path, method: :delete %></li>
<% else %>
<li><%= link_to "Log In" , new_user_session_path %></li>
<% end %>
</ul>
</nav>
</div>

View File

@@ -14,7 +14,12 @@
<% @tournaments.each do |tournament| %>
<tr>
<td><%= tournament.name %></td>
<td><%= link_to 'Show', tournament, :class=>"btn" %><%= link_to 'Edit', edit_tournament_path(tournament), :class=>"btn" %><%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %></td>
<td><%= link_to 'Show', tournament, :class=>"btn" %>
<% if user_signed_in? %>
<%= link_to 'Edit', edit_tournament_path(tournament), :class=>"btn" %>
<%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>
<% end %>
</td>
</tr>
<% end %>
</tbody>