-
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.
Added dropdown link, my pins view, and fixed endless scroll
- Loading branch information
Neil Gehani
committed
Nov 6, 2013
1 parent
8c94e7d
commit 0c0bc16
Showing
11 changed files
with
62 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,6 @@ | ||
/* Required for jQuery Masonry */ | ||
/* anything beginning with a . is a class and used in views as class = "blah" */ | ||
|
||
.box { | ||
margin: 5px; | ||
padding: 5px; | ||
font-size: 11px; | ||
line-height: 1.4em; | ||
float: left; | ||
-webkit-border-radius: 5px; | ||
-moz-border-radius: 5px; | ||
border-radius: 5px; | ||
box-shadow: 1px 1px 10px #444; | ||
width: 214px; | ||
} | ||
|
||
.box img { | ||
width: 100%; | ||
-webkit-border-radius: 5px; | ||
-moz-border-radius: 5px; | ||
border-radius: 5px; | ||
} | ||
|
||
.description { | ||
margin: 10px 0 5px; | ||
} | ||
|
||
#view_paginate { | ||
visibility: hidden; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
|
||
<div class="form-group"> | ||
<%= f.label :email %> | ||
<%= f.email_field :email, placeholder: '[email protected]', autofocus: true, class: "form-control" %> | ||
<%= f.email_field :email, placeholder: '[email protected]', class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
|
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,8 @@ | ||
<% unless user_signed_in? %> | ||
<div class="jumbotron center"> | ||
<h1>Social Butterfly</h1> | ||
<p> | ||
<%= link_to "Sign up", new_user_registration_path, class: "btn btn-primary btn-lg" %> | ||
<%= link_to "Log in", new_user_session_path, class: "btn btn-default btn-lg" %> | ||
</p> | ||
<h1>Social Butterfly</h1> | ||
<p> | ||
<%= link_to "Sign up", new_user_registration_path, class: "btn btn-primary btn-lg" %> | ||
<%= link_to "Log in", new_user_session_path, class: "btn btn-default btn-lg" %> | ||
</p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
<%= form_for @pin, html: { multipart: true } do |f| %> | ||
<%# f.error_notification %> | ||
<%# f.full_error :image_file_size, class: "alert alert-error" %> | ||
<%# f.full_error :image_content_type, class: "alert alert-error" %> | ||
<% if @pin.errors.any? %> | ||
<div id="error_explanation"> | ||
<h2><%= pluralize(@pin.errors.count, "error") %> prohibited this pin from being saved:</h2> | ||
|
||
<ul> | ||
<% @pin.errors.full_messages.each do |msg| %> | ||
<li><%= msg %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> | ||
|
||
<%# f.input :image_remote_url, label: "or enter a URL" %> | ||
<%# f.input :description, as: :text, input_html: { rows: "3" } %> | ||
|
||
<div class="form-group"> | ||
<%= f.label :image_remote_url %> | ||
<%= f.file_field :image_remote_url, class: "form-control" %> | ||
<%= f.label "Enter the image URL" %> | ||
<%= f.text_field :image_remote_url, class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= f.label :image %> | ||
<%= f.file_field :image, class: "form-control" %> | ||
</div> | ||
|
||
|
||
<div class="form-group"> | ||
<%= f.label :description %> | ||
<%= f.text_field :description, class: "form-control" %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<%= f.submit class: "btn btn-primary" %> | ||
</div> | ||
<% end %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<%# render includes partials that begin with _*.html.erb %> | ||
<%# means look in pages subfolder for _home.html.erb %> | ||
<%= render 'pages/home' unless user_signed_in? %> | ||
<div id="pins" class="transitions-enabled"> | ||
<% if user_signed_in? %> | ||
<%= render current_user.pins %> | ||
<% end %> | ||
</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