From 5f1fb6bc7128bf620b7915a6541bc8216a966608 Mon Sep 17 00:00:00 2001 From: Jeff Lunt Date: Sun, 3 Jun 2012 22:19:17 -0500 Subject: [PATCH] References #11 - Added tooltip help to the controls for votes, editing, and displaying a thought full-screen. --- app/views/thoughts/_controls_overlay.haml | 2 +- app/views/thoughts/_controls_standard.haml | 4 ++-- app/views/thoughts/_votes_overlay.haml | 4 ++-- app/views/thoughts/_votes_standard.haml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/thoughts/_controls_overlay.haml b/app/views/thoughts/_controls_overlay.haml index 8b83b7b..8c79549 100644 --- a/app/views/thoughts/_controls_overlay.haml +++ b/app/views/thoughts/_controls_overlay.haml @@ -1,2 +1,2 @@ .thought-controls - / %span.size-big=link_to("\u270e", edit_thought_path(thought), {:remote => true}) \ No newline at end of file + / %span.size-big=link_to("\u270e", edit_thought_path(thought), {:remote => true, title: "Edit this thought"}) \ No newline at end of file diff --git a/app/views/thoughts/_controls_standard.haml b/app/views/thoughts/_controls_standard.haml index 3ed10ec..4c6498e 100644 --- a/app/views/thoughts/_controls_standard.haml +++ b/app/views/thoughts/_controls_standard.haml @@ -1,3 +1,3 @@ .thought-controls - =link_to("\u270e", edit_thought_path(thought), {:remote => true}) - =link_to("\u25ff", thought, remote: true) \ No newline at end of file + =link_to("\u270e", edit_thought_path(thought), {remote: true, title: "Edit this thought"}) + =link_to("\u25ff", thought, {remote: true, title: "Display full screen"}) \ No newline at end of file diff --git a/app/views/thoughts/_votes_overlay.haml b/app/views/thoughts/_votes_overlay.haml index b0d28f1..184d890 100644 --- a/app/views/thoughts/_votes_overlay.haml +++ b/app/views/thoughts/_votes_overlay.haml @@ -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 diff --git a/app/views/thoughts/_votes_standard.haml b/app/views/thoughts/_votes_standard.haml index b7314f8..2ebd606 100644 --- a/app/views/thoughts/_votes_standard.haml +++ b/app/views/thoughts/_votes_standard.haml @@ -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