Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced bootstrap. Fixed a bunch of styling issues and a few contr…
…oller problems.
- Loading branch information
1 parent
a24ea68
commit 25e1142
Showing
27 changed files
with
134 additions
and
121 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
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,5 +1,8 @@ | ||
<tr> | ||
<td><%= comment.body %></td> | ||
<td><%= link_to comment.user.username, comment.user %></td> | ||
<td><%= link_to comment.link.title, link_comments_path(comment.link) %> | ||
</tr> | ||
<div> | ||
<strong><%= link_to comment.user.username, comment.user %></strong> | ||
<p> | ||
<%= comment.body %><br> | ||
<%= link_to 'parent', link_comments_path(comment.link) %> | ||
</p> | ||
|
||
</div> |
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,10 +1 @@ | ||
<table> | ||
<tr> | ||
<th>Comment</th> | ||
<th>User</th> | ||
<th>Parent</th> | ||
</tr> | ||
|
||
<%= render comments %> | ||
|
||
</table> |
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,7 +1,12 @@ | ||
<%= render :partial => 'links/links', :locals => { :links => [@link] } %> | ||
|
||
<h2>Comments</h2> | ||
<p><%= @link.body %></p> | ||
|
||
<h3>Comments</h3> | ||
|
||
<%= render :partial => 'comments', :locals => { :comments => @link.comments } %> | ||
<%= render 'form' %> | ||
<% if @current_user %> | ||
<hr> | ||
<%= render 'form' %> | ||
<% 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
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,9 +1,11 @@ | ||
<tr class="<%= link_counter % 2 == 0 ? "even" : "odd" %>"> | ||
<td><%= link.title %></td> | ||
<td><%= link.body %></td> | ||
<td><%= link.link %></td> | ||
<td><%= link.user.username %></td> | ||
<td><%= link_to 'Comments', link_comments_path(link) %></td> | ||
<td><%= link_to 'Edit', edit_link_path(link) %></td> | ||
<td><%= link_to 'Destroy', link, method: :delete, data: { confirm: 'Are you sure?' } %></td> | ||
</tr> | ||
<div class="links"> | ||
<h2 class="link_header"><%= link_to link.title, link.link %></h2> | ||
<div> | ||
<%= link_to 'Comments', link_comments_path(link) %> | ||
<% if link.user == @current_user %> | ||
| <%= link_to 'Edit', edit_link_path(link) %> | ||
| <%= link_to 'Destroy', link, method: :delete, data: { confirm: 'Are you sure?' } %> | ||
<% end %> | ||
| <%= link_to link.user.username, link.user %> | ||
</div> | ||
</div> |
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,14 +1 @@ | ||
<table> | ||
<tr> | ||
<th>Title</th> | ||
<th>Body</th> | ||
<th>Link</th> | ||
<th>User</th> | ||
<th></th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
|
||
<%= render links %> | ||
|
||
</table> |
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,6 +1,5 @@ | ||
<h1>Editing link</h1> | ||
<h2>Editing link</h2> | ||
|
||
<%= render 'form' %> | ||
<%= link_to 'Show', @link %> | | ||
<%= link_to 'Back', links_path %> | ||
<%= link_to 'Cancel', link_comments_path(@link) %> |
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,5 +1,3 @@ | ||
<h1>Listing links</h1> | ||
|
||
<%= render :partial => 'links', :locals => { :links => @links } %> | ||
|
||
<br /> | ||
|
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,4 +1,4 @@ | ||
<h1>New link</h1> | ||
<h2>New Link</h2> | ||
|
||
<%= render 'form' %> | ||
|
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.