-
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.
style things, take out extra routes, change seed helper slightly, add…
… icons, another picture changes for heroku: update gitignore, gemfile, and config application
- Loading branch information
kellen hart
committed
Sep 15, 2013
1 parent
1d7c9cb
commit 3c80403
Showing
22 changed files
with
144 additions
and
49 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 |
---|---|---|
|
@@ -13,3 +13,5 @@ | |
# Ignore all logfiles and tempfiles. | ||
/log/*.log | ||
/tmp | ||
|
||
.DS_Store |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
Pah.Song = DS.Model.extend() | ||
Pah.Song = DS.Model.extend | ||
name: DS.attr('string') | ||
lyrics: DS.attr('string') | ||
chords: DS.attr('string') | ||
date_written: DS.attr('string') | ||
|
||
formatted_lyrics: (-> | ||
@get('lyrics').split("\n").join("<br/>") | ||
).property('lyrics') | ||
|
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,2 +1,2 @@ | ||
Pah.SongRoute = Ember.Route.extend | ||
model: (params) -> songs.findBy('id', params.song_id) | ||
model: (params) -> @store.find('song', params.song_id) |
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,15 +1,33 @@ | ||
<!-- this is the the layout rendered automatically when ember app .create() is called --> | ||
<div class="row"> | ||
<div class="large-10 small-12 columns"> | ||
<ul class="button-group"> | ||
<li>{{#linkTo "home" class="small button secondary"}}Home{{/linkTo}}</li> | ||
<li>{{#linkTo "bio" class="small button secondary"}}About Phil{{/linkTo}}</li> | ||
<li>{{#linkTo "songs.index" class="small button secondary"}}Lyrics and Chords{{/linkTo}}</li> | ||
<li>{{#linkTo "home" class="small button secondary"}}Listen to some songs{{/linkTo}}</li> | ||
<li>{{#linkTo "home" class="small button secondary"}}Buy some songs{{/linkTo}}</li> | ||
<li>{{#linkTo "home" class="small button secondary"}}Contact Phil{{/linkTo}}</li> | ||
<div class="fixed"> | ||
<nav class="top-bar"> | ||
<ul class="title-area"> | ||
<!-- Title Area --> | ||
<li class="name"> | ||
<h1><a href="#">pahart </a></h1> | ||
</li> | ||
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone --> | ||
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li> | ||
</ul> | ||
</div> | ||
|
||
<section class="top-bar-section"> | ||
<!-- Left Nav Section --> | ||
<ul class="left"> | ||
<li class="divider"></li> | ||
<li> | ||
{{#linkTo "home"}}<i title="home" class="icon-home"></i>{{/linkTo}} | ||
</li> | ||
<li class="divider"></li> | ||
<li> | ||
{{#linkTo "songs.index"}}<i title="music" class="icon-music"></i>{{/linkTo}} | ||
</li> | ||
<li class="divider"></li> | ||
<li> | ||
{{#linkTo "info"}}<i title="contact" class="icon-info-sign"></i>{{/linkTo}} | ||
</li> | ||
</ul> | ||
</section> | ||
</nav> | ||
</div> | ||
<section class="main-content">{{ outlet }}</section> | ||
|
||
{{ outlet }} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="panel"> | ||
<span><h4>{{name}}</h4></span> | ||
<span><%= audio_tag 'section_7.mp3', controls: true%></span> | ||
<p>{{{formatted_lyrics}}}</p> | ||
<p>{{chords}}</p> | ||
<p>{{date_written}}</p> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div class="row"> | ||
<div class="large-12 columns"> | ||
<div class="center-image panel"> | ||
<%= image_tag "gig1_960.jpg" %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="large-4 columns"> | ||
<div class="panel"> | ||
<ul class="side-nav"> | ||
{{#each}} | ||
{{#linkTo "song" this}} | ||
<li>{{name}}</li> | ||
{{/linkTo}} | ||
{{/each}} | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="large-8 columns"> | ||
{{!-- outlet for child song show view --}} | ||
{{ outlet }} | ||
</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
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class SongSerializer < ActiveModel::Serializer | ||
attributes :id, :name | ||
attributes :id, :name, :lyrics, :chords, :date_written | ||
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
Binary file not shown.