Permalink
Browse files

design update

  • Loading branch information...
1 parent ed14271 commit 08beb315a70025770cac166de52f5e8941bbfa0b teppei machida committed Jul 8, 2012
Showing with 12 additions and 11 deletions.
  1. +3 −3 app/assets/stylesheets/sass/parties.css.sass
  2. +9 −8 app/views/tasks/_task.html.haml
@@ -166,6 +166,8 @@ body.parties_show
clear: both
overflow-y: auto
height: 100%
+ .comments
+ display: none
.current
+clearfix
.label
@@ -313,7 +315,7 @@ body.parties_show
border: none
+border-radius(4px)
.comments
- .activity
+ .comment
clear: both
padding: 0 0 14px 0
+clearfix
@@ -327,8 +329,6 @@ body.parties_show
display: block
padding: 14px 10px
+word-break
- &:first-child
- padding: 0 10px 14px 10px
&:last-child
border: none
.actions
@@ -30,11 +30,12 @@
%p.redo= link_to "redo", redo_party_task_path(@party, task), :remote => true
- if user_signed_in?
- .add
- = form_tag "/comments", :remote => true do
- = hidden_field_tag :task_id, task.id
- = text_area_tag :content, nil, :rows => 3, :cols => 15, :id => "new_comment_#{dom_id(task)}"
- = submit_tag "new comment"
- .comments
- %ul
- = render task.comments
+ .comments
+ .add
+ = form_tag "/comments", :remote => true do
+ = hidden_field_tag :task_id, task.id
+ = text_area_tag :content, nil, :rows => 3, :cols => 15, :id => "new_comment_#{dom_id(task)}"
+ = submit_tag "new comment"
+
+ %ul
+ %li.comment= render task.comments

0 comments on commit 08beb31

Please sign in to comment.