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
Showing
8 changed files
with
61 additions
and
21 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 |
---|---|---|
|
@@ -14,3 +14,6 @@ | |
*= require_self | ||
*/ | ||
|
||
.text-shadow { | ||
color: #999999; | ||
} |
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,11 @@ | ||
.mod-hover-hidden:hover { | ||
.mod-hover-hidden-item { | ||
display: initial; | ||
} | ||
} | ||
|
||
.mod-hover-hidden { | ||
.mod-hover-hidden-item { | ||
display: none; | ||
} | ||
} |
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,2 @@ | ||
class PostsDecorator < Draper::CollectionDecorator | ||
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,28 +1,34 @@ | ||
/ locals: | ||
/ post {Post} | ||
a.list-group-item.post-list data-post-id=post.id href=post_path(post) | ||
a.list-group-item.post-list.mod-hover-hidden data-post-id=post.id href=post_path(post) | ||
.container-fluid | ||
.row | ||
.col-xs-10 | ||
.text-primary #{post.title} | ||
.col-xs-2 | ||
small.pull-right | ||
= post.id | ||
##{post.id} | ||
.row | ||
.col-xs-10 | ||
small | ||
.col-xs-8 | ||
small.text-success | ||
| #{post.author.name} posted | ||
abbr.js-time-ago data-time-ago-at=post.updated_at | ||
|. | ||
- post.tags.each do |tag| | ||
span.label.label-success ##{tag.name} | ||
| | ||
.col-xs-2 | ||
.col-xs-4 | ||
small.pull-right | ||
span.glyphicon.glyphicon-paperclip 1 | ||
| | ||
span.glyphicon.glyphicon-eye-open 2 | ||
| | ||
span.glyphicon.glyphicon-edit 3 | ||
| | ||
span.glyphicon.glyphicon-time | ||
span.mod-hover-hidden-item | ||
| 読了時間 | ||
| #{post.read_time} | ||
span.glyphicon.glyphicon-edit | ||
span.mod-hover-hidden-item | ||
| コメント | ||
| #{post.comments.count} | ||
.row | ||
.col-xs-12 | ||
small.text-shadow | ||
= truncate post.body, length: 240 |
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,12 +1,12 @@ | ||
require 'spec_helper' | ||
# require 'spec_helper' | ||
|
||
describe StockController do | ||
# describe StockController do | ||
|
||
describe "GET 'show'" do | ||
it "returns http success" do | ||
get 'show' | ||
response.should be_success | ||
end | ||
end | ||
# describe "GET 'show'" do | ||
# it "returns http success" do | ||
# get 'show' | ||
# response.should be_success | ||
# end | ||
# end | ||
|
||
end | ||
# end |