-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Neil Gehani
committed
Sep 19, 2013
1 parent
4ad366b
commit 1783203
Showing
10 changed files
with
77 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://coffeescript.org/ | ||
|
||
jQuery -> | ||
$('#pins').imagesLoaded -> | ||
$('#pins').masonry itemSelector: ".box" |
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,10 +1,18 @@ | ||
|
||
<tr> | ||
<td><%= image_tag pin.image(:medium) %></td> | ||
<td><%= pin.description %></td> | ||
<td><%= link_to 'Show', pin %></td> | ||
<div class="box"> | ||
<%= link_to (image_tag pin.image(:medium)), pin %> | ||
<p class= "description"> | ||
<%= pin.description %> | ||
</p> | ||
<p> | ||
<strong> | ||
<%= link_to 'Show', pin %> | ||
</strong> | ||
</p> | ||
<% if current_user == pin.user %> | ||
<td><%= link_to 'Edit', edit_pin_path(pin) %></td> | ||
<td><%= link_to 'Destroy', pin, method: :delete, data: { confirm: 'Are you sure?' } %></td> | ||
<p> | ||
<%= link_to 'Edit', edit_pin_path(pin) %> | ||
<%= link_to 'Destroy', pin, method: :delete, data: { confirm: 'Are you sure?' } %> | ||
</p> | ||
<% end %> | ||
</tr> | ||
</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,21 +1,5 @@ | ||
<h1>Listing pins</h1> | ||
|
||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Image</th> | ||
<th>Description</th> | ||
<th></th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
<%= render @pins %> | ||
</tbody> | ||
</table> | ||
|
||
<br> | ||
<div id="pins"> | ||
<%= render @pins %> | ||
</div> | ||
|
||
<%= link_to 'New Pin', new_pin_path %> |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.