Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding player view, updating todos, added and organized stylesheet be…
…tter, partialized some elements that looked messy, removed broken back button... and a bunch of improvements (_I think_)
- Loading branch information
1 parent
9ce778e
commit ee50159
Showing
17 changed files
with
191 additions
and
46 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
class PlayerController < ApplicationController | |||
|
|||
def show | |||
@player = Dribbble::Player.find(params[:id]) | |||
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
module PlayerHelper | |||
end |
Binary file not shown.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
- @player.shots.each do |shot| | |||
%a{:href => shot_path(shot.id)} | |||
= image_tag shot.image_url | |||
%ul.stats | |||
%li.views=shot.views_count | |||
%li.comments=shot.comments_count | |||
%li.likes=shot.likes_count | |||
%li.view | |||
%a{:href => shot_path(shot.id)} view » |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
%h3 | |||
Drafted by: | |||
= @player.drafted_by_player_id | |||
%ul.player_stats | |||
%li | |||
Shots | |||
%span= @player.shots_count | |||
%li | |||
Draftees | |||
%span= @player.draftees_count | |||
%li | |||
Followers | |||
%span= @player.followers_count | |||
%li | |||
Following | |||
%span= @player.following_count |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
#header | |||
%h1.hooppps hooppps | |||
/= link_to "back", :back, :class => 'back_button' | |||
#content | |||
.shot_meta | |||
=image_tag @player.avatar_url | |||
%h2 | |||
= @player.name | |||
%span | |||
= @player.location | |||
%br | |||
%a{:href => @player.website_url , :target => '_blank'}=@player.website_url | |||
= render :partial => "player_stats" | |||
%h3=@player.name+'\'s shots:' | |||
= render :partial => "player_shots" | |||
|
|||
%a.big-pink{:href => "http://twitter.com/"+@player.twitter_screen_name , :target => "_blank"} Follow Player on Twitter |
Binary file not shown.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
- @shots.each do |shot| | |||
%a{:href => shot_path(shot.id)} | |||
= image_tag shot.image_url | |||
%ul.stats | |||
%li.views | |||
= shot.views_count | |||
%li.comments | |||
= shot.comments_count | |||
%li.likes | |||
= shot.likes_count | |||
%li.view | |||
%a{:href => shot_path(shot.id)} view » |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
require 'test_helper' | |||
|
|||
class PlayerControllerTest < ActionController::TestCase | |||
# Replace this with your real tests. | |||
test "the truth" do | |||
assert true | |||
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
require 'test_helper' | |||
|
|||
class PlayerHelperTest < ActionView::TestCase | |||
end |