From ef990e04cdf7c01b5a4e3cc9795452c5ce3f7e1c Mon Sep 17 00:00:00 2001 From: Pistos Date: Thu, 10 Nov 2011 19:53:13 -0500 Subject: [PATCH] Refactor new user helper text in publisher; improved code readability. --- app/views/shared/_publisher.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_publisher.html.haml b/app/views/shared/_publisher.html.haml index 35f1e63f4..8e3b3285e 100644 --- a/app/views/shared/_publisher.html.haml +++ b/app/views/shared/_publisher.html.haml @@ -32,7 +32,8 @@ = link_to( image_tag('deletelabel.png'), "#", :id => "hide_publisher", :title => t('.discard_post')) %ul#photodropzone = status.text_area :fake_text, :rows => 2, :value => h(publisher_formatted_text), :tabindex => 1, :placeholder => t('.whats_on_your_mind'), - :title => "#{popover_with_close_html("1. #{t('shared.public_explain.share')}")}", 'data-content' => t('shared.public_explain.new_user_welcome_message') + :title => popover_with_close_html( '1. ' + t('shared.public_explain.share') ), + 'data-content' => t('shared.public_explain.new_user_welcome_message') = status.hidden_field :text, :value => h(publisher_hidden_text), :class => 'clear_on_submit' #file-upload{:title => t('.upload_photos')}