nice more and comment buttons
This commit is contained in:
parent
dbe7a4c72b
commit
746e9c5cfc
2 changed files with 9 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue