Skip to content

Commit

Permalink
FIX preview button height and comments controller
Browse files Browse the repository at this point in the history
  • Loading branch information
makaroni4 committed Apr 17, 2012
1 parent 4ace95a commit 2556585
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/buttons.css.scss
Expand Up @@ -5,4 +5,8 @@
&:active, &:hover, &:focus, &.active { &:active, &:hover, &:focus, &.active {
color: $base; color: $base;
} }
}

.high_button {
height: 26px ! important;
} }
2 changes: 1 addition & 1 deletion app/controllers/comments_controller.rb
Expand Up @@ -7,7 +7,7 @@ def create
@comment.user = current_user @comment.user = current_user


render_preview and return if params[:commit] == 'Write' render_preview and return if params[:commit] == 'Write'
if false#@comment.save if @comment.save
render_create render_create
else else
render_json_error("We are sorry, but comment couldn't be saved.") render_json_error("We are sorry, but comment couldn't be saved.")
Expand Down
2 changes: 1 addition & 1 deletion app/views/posts/show.html.slim
Expand Up @@ -26,7 +26,7 @@ section class="comments" id="comments"
= f.label :question, 'Is it a Question?' = f.label :question, 'Is it a Question?'
div class="button-groups" div class="button-groups"
div class="button-group" div class="button-group"
= f.submit 'Preview', :class => 'button preview_button' = f.submit 'Preview', :class => 'button preview_button high_button'
= f.submit commit_title('Comment'), :class => 'button' = f.submit commit_title('Comment'), :class => 'button'
- if @presenter.comments.any? - if @presenter.comments.any?
= render :partial => 'comments/comment', :collection => @presenter.comments = render :partial => 'comments/comment', :collection => @presenter.comments
Expand Down

0 comments on commit 2556585

Please sign in to comment.