From 746e9c5cfcb42397bf221fce7264ab6130d106df Mon Sep 17 00:00:00 2001 From: Diaspora Europe Date: Fri, 9 Mar 2012 15:22:15 +0100 Subject: [PATCH 1/2] nice more and comment buttons --- app/views/comments/_new_comment.mobile.haml | 10 +++++----- app/views/people/show.mobile.haml | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/views/comments/_new_comment.mobile.haml b/app/views/comments/_new_comment.mobile.haml index eac92f7cf..f5578a13a 100644 --- a/app/views/comments/_new_comment.mobile.haml +++ b/app/views/comments/_new_comment.mobile.haml @@ -4,8 +4,8 @@ = form_tag( post_comments_path(post_id), :id => "new_comment_on_#{post_id}", :class => 'new_comment', :autocomplete => "off") do %fieldset - = hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}" - = text_area_tag :text, nil, :class => "span12 comment_box", :id => "comment_text_on_#{post_id}", :placeholder => t('.comment'), :autofocus => true - - = link_to t('cancel'), post_path(post_id), :class => "cancel_new_comment btn" - = submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :disable_with => t('.commenting'), :class => "btn primary" + .control-group + = hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}" + = text_area_tag :text, nil, :class => "span12 comment_box", :id => "comment_text_on_#{post_id}", :placeholder => t('.comment'), :autofocus => true + = submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :disable_with => t('.commenting'), :class => "btn primary btn-toolbar" + = link_to t('cancel'), post_path(post_id), :class => "cancel_new_comment btn btn-toolbar" diff --git a/app/views/people/show.mobile.haml b/app/views/people/show.mobile.haml index 8cb44d1c2..b6b6aa7b5 100644 --- a/app/views/people/show.mobile.haml +++ b/app/views/people/show.mobile.haml @@ -32,7 +32,10 @@ #main_stream.stream = render 'shared/stream', :posts => @stream.stream_posts #pagination - =link_to(t('more'), next_page_path, :class => 'paginate') + %a.more-link.paginate{:href => next_page_path} + %h1 + = t("more") + - else #main_stream %div{:style=>"text-align:center;", :class => "dull"} From c98a7286457005eebd703d474af830a04c7953ee Mon Sep 17 00:00:00 2001 From: Diaspora Europe Date: Mon, 12 Mar 2012 08:32:22 +0100 Subject: [PATCH 2/2] remove useless cancel button --- app/views/comments/_new_comment.mobile.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/comments/_new_comment.mobile.haml b/app/views/comments/_new_comment.mobile.haml index f5578a13a..cf0f1d4a4 100644 --- a/app/views/comments/_new_comment.mobile.haml +++ b/app/views/comments/_new_comment.mobile.haml @@ -7,5 +7,4 @@ .control-group = hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}" = text_area_tag :text, nil, :class => "span12 comment_box", :id => "comment_text_on_#{post_id}", :placeholder => t('.comment'), :autofocus => true - = submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :disable_with => t('.commenting'), :class => "btn primary btn-toolbar" - = link_to t('cancel'), post_path(post_id), :class => "cancel_new_comment btn btn-toolbar" + = submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :disable_with => t('.commenting'), :class => "btn primary"