Merge pull request #2986 from diasp/improve-mobile

Nice more and comment buttons[ci skip]
This commit is contained in:
Maxwell Salzberg 2012-03-13 14:16:33 -07:00
commit 24f8447248
2 changed files with 8 additions and 6 deletions

View file

@ -4,8 +4,7 @@
= 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"

View file

@ -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"}