Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
References #11 - Added tooltip help to the controls for votes, editin…
…g, and displaying a thought full-screen.
- Loading branch information
Showing
4 changed files
with
7 additions
and
7 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,2 +1,2 @@ | ||
.thought-controls | ||
/ %span.size-big=link_to("\u270e", edit_thought_path(thought), {:remote => true}) | ||
/ %span.size-big=link_to("\u270e", edit_thought_path(thought), {:remote => true, title: "Edit this thought"}) |
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 @@ | ||
.thought-controls | ||
=link_to("\u270e", edit_thought_path(thought), {:remote => true}) | ||
=link_to("\u25ff", thought, remote: true) | ||
=link_to("\u270e", edit_thought_path(thought), {remote: true, title: "Edit this thought"}) | ||
=link_to("\u25ff", thought, {remote: true, title: "Display full screen"}) |
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,4 +1,4 @@ | ||
.thought-votes | ||
%span.size-big=link_to("-", thought_path(thought, :vote => "down"), {:method => :put, :remote => true}) | ||
%span.size-big=link_to("+", thought_path(thought, :vote => "up"), {:method => :put, :remote => true}) | ||
%span.size-big=link_to("-", thought_path(thought, :vote => "down"), {method: :put, remote: true, title: "Down vote"}) | ||
%span.size-big=link_to("+", thought_path(thought, :vote => "up"), {method: :put, remote: true, title: "Up vote"}) | ||
%span.size-big=thought.score |
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,4 +1,4 @@ | ||
.thought-votes | ||
=link_to("-", thought_path(thought, :vote => "down"), {:method => :put, :remote => true}) | ||
=link_to("+", thought_path(thought, :vote => "up"), {:method => :put, :remote => true}) | ||
=link_to("-", thought_path(thought, :vote => "down"), {method: :put, remote: true, title: "Down vote"}) | ||
=link_to("+", thought_path(thought, :vote => "up"), {method: :put, remote: true, title: "Up vote"}) | ||
=thought.score |