-
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
Nov 2, 2013
1 parent
8de63ea
commit 334ae06
Showing
10 changed files
with
209 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
To Do List | ||
Neil's Models and relationships: | ||
|
||
USER | ||
has_many :created_invitations (:event) | ||
has_many :hosted_invitations (:event) | ||
has_many :guest_invitations (:event) | ||
has_many :rsvps | ||
has_many :attended_events (:event_attendance) | ||
fields >> [:first_name, :last_name, :email, :password_stuff] | ||
|
||
EVENT | ||
belongs_to :creator (:user) | ||
has_many :hosts (:user) | ||
has_many :invited_guests (:user) | ||
has_many :rsvps | ||
belongs_to :location | ||
fields >> [:start_date, :end_date, :start_time, :end_time, :location_id ] | ||
|
||
RSVP | ||
belongs_to :user | ||
belongs_to :event | ||
:yes/no/maybe | ||
|
||
LOCATION | ||
has_many :events | ||
fields >> [:city, :state, :zip, :address, :lat, :lng] | ||
|
||
EVENT_ATTENDANCE 1. who needs to be related to this? 2. How many of each thing can each side have? | ||
belongs_to :user | ||
belong_to :event | ||
|
||
:id :user_id :event_id | ||
1 1 1 | ||
2 1 3 | ||
3 1 4 | ||
... | ||
|
||
|
||
----------------------- | ||
Join tables | ||
|
||
INVITATIONHOSTING << "join table" | ||
belongs_to :host (:user) | ||
belongs_to :hosted_invitation (:invitation) | ||
invitation_id user_id | ||
1 1 | ||
1 2 | ||
1 5 | ||
2 1 | ||
2 5 | ||
|
||
GUESTINVITING | ||
belongs_to :invited_guest (:user) | ||
belongs_to :invitation | ||
|
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,57 @@ | ||
To Do List | ||
Neil's Models and relationships: | ||
|
||
USER | ||
has_many :created_invitations (:event) | ||
has_many :hosted_invitations (:event) | ||
has_many :guest_invitations (:event) | ||
has_many :rsvps | ||
has_many :attended_events (:event_attendance) | ||
fields >> [:first_name, :last_name, :email, :password_stuff] | ||
|
||
EVENT | ||
belongs_to :creator (:user) | ||
has_many :hosts (:user) | ||
has_many :invited_guests (:user) | ||
has_many :rsvps | ||
belongs_to :location | ||
fields >> [:start_date, :end_date, :start_time, :end_time, :location_id ] | ||
|
||
RSVP | ||
belongs_to :user | ||
belongs_to :event | ||
:yes/no/maybe | ||
|
||
LOCATION | ||
has_many :events | ||
fields >> [:city, :state, :zip, :address, :lat, :lng] | ||
|
||
EVENT_ATTENDANCE 1. who needs to be related to this? 2. How many of each thing can each side have? | ||
belongs_to :user | ||
belong_to :event | ||
|
||
:id :user_id :event_id | ||
1 1 1 | ||
2 1 3 | ||
3 1 4 | ||
... | ||
|
||
|
||
----------------------- | ||
Join tables | ||
|
||
INVITATIONHOSTING << "join table" | ||
belongs_to :host (:user) | ||
belongs_to :hosted_invitation (:invitation) | ||
invitation_id user_id | ||
1 1 | ||
1 2 | ||
1 5 | ||
2 1 | ||
2 5 | ||
|
||
GUESTINVITING | ||
belongs_to :invited_guest (:user) | ||
belongs_to :invitation | ||
|
||
|
44 changes: 44 additions & 0 deletions
44
app/assets/stylesheets/bootstrap_and_customization.css.scss
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,44 @@ | ||
/* | ||
Import Font Families | ||
*/ | ||
$baseFontFamily: Oxygen; | ||
@import url(http://fonts.googleapis.com/css?family=Oxygen); | ||
|
||
$body-bg: #ecf0f1; | ||
$navbar-height: 45px; | ||
$navbar-default-bg: white; | ||
$navbar-default-brand-color: #2980b9; | ||
$brand-primary: #2980b9; | ||
$jumbotron-bg: white; | ||
$grayLight: #bdc3c7; | ||
|
||
@import 'bootstrap'; | ||
body{ | ||
padding-top: 1px; | ||
} | ||
|
||
.navbar-brand { | ||
font-weight: bold; | ||
} | ||
|
||
.btn-primary { | ||
color: white; | ||
background-color: #2980b9; | ||
border-color: #2980b9; | ||
} | ||
|
||
|
||
.navbar-inner{ | ||
@include box-shadow(none !important); | ||
border: 0; | ||
} | ||
|
||
.footer{ | ||
margin-top: 50px; | ||
color: $grayLight; | ||
a{ | ||
color: $gray; | ||
} | ||
} |
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,34 +1,32 @@ | ||
<div class="navbar navbar-fixed-top"> | ||
<div class="navbar-inner"> | ||
<div class="container"> | ||
|
||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</a> | ||
|
||
<%= link_to "Social Butterfly", root_path, class: "brand" %> | ||
|
||
<div class="nav-collapse"> | ||
<ul class="nav"> | ||
<li> | ||
<%= link_to 'Home', root_path %> | ||
</li> | ||
<li> | ||
<%= link_to 'About', about_path %> | ||
</li> | ||
</ul> | ||
<ul class="nav pull-right"> | ||
<% if user_signed_in? %> | ||
<li><%= link_to "Add +", new_pin_path %></li> | ||
<li><%= link_to "Edit Profile", edit_user_registration_path %></li> | ||
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li> | ||
<% else %> | ||
<li><%= link_to 'Login', new_user_session_path %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</div> | ||
<nav class="navbar navbar-static-top navbar-default" role="navigation"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" | ||
<%= link_to "Social Butterfly", root_path, class: "navbar-brand" %> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<!-- Collect the nav links, forms, and other content for toggling --> | ||
<div class="collapse navbar-collapse navbar-ex1-collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li><%= link_to "Home", root_path %></li> | ||
<li><%= link_to "About", about_path %></li> | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<% if user_signed_in? %> | ||
<li><%= link_to "Add +", new_pin_path %></li> | ||
<li><%= link_to "Edit Profile", edit_user_registration_path %></li> | ||
<li><%= link_to "Logout", destroy_user_session_path, method: :delete %></li> | ||
<% else %> | ||
<li><%= link_to 'Login', new_user_session_path %></li> | ||
<% end %> | ||
</ul> | ||
</div><!-- /.navbar-collapse --> | ||
</div><!-- .container --> | ||
</nav> |
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 |
---|---|---|
|
@@ -5,4 +5,6 @@ | |
<%= render @pins %> | ||
</div> | ||
|
||
<%= will_paginate @pins %> | ||
<div id="view_paginate"> | ||
<%= will_paginate @pins %> | ||
</div> |