-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All routes and controllers debugged and working
- Loading branch information
kenney-g
committed
Sep 15, 2020
1 parent
5f09dff
commit f71f8c5
Showing
9 changed files
with
33 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
<br> | ||
<table class="table table-striped table-hover "> | ||
<thead> | ||
<tr> | ||
<th>Title</th> | ||
<th>Console</th> | ||
<th>Description</th> | ||
<th>Author</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><%= @log.game_title %> </td> | ||
<td><%= @log.game_console%></td> | ||
<td><%= @log.game_desc%></td> | ||
<td><%= @log.author.username%></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<br> | ||
<div class="well well-sm"> | ||
<h1>Title: <%= @log.game_title %></h1> | ||
</div> | ||
<div class="well well-sm"> | ||
<p>Console: <%= @log.game_console %></p> | ||
</div> | ||
<div class="well well-sm"> | ||
<p>Description: <%= @log.game_desc %></p> | ||
</div> | ||
<div class="well well-sm"> | ||
<p>Logged by <%= @log.author.username %></p> | ||
</div> | ||
<% if authorize_log(@log) %> | ||
<div> | ||
<div class="well well-sm"> | ||
<a href="/logs/<%= @log.id %>/edit"><button>Edit</button></a> | ||
<form method="post" action="/logs/<%= @log.id %>" style="display: inline-block;"> | ||
<input type="hidden" name="_method" value="delete" /> | ||
<input type="submit" value="Delete" /> | ||
</form> | ||
<form action="/logs/<%=@log.id%>" method="post"> | ||
<input type="hidden" name="_method" value="DELETE"> | ||
<input type="submit" value="Delete"> | ||
</form> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,6 @@ body { | |
} | ||
|
||
.well { | ||
margin-left: 10px; | ||
margin-left: 50px; | ||
max-width: 25%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters