Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. .container
  2. .row
  3. .panel.panel-info
  4. .panel-heading
  5. .row
  6. .col-md-2
  7. -if !@idea.avatar_id.nil?
  8. =image_tag get_idea_avatar(@idea), :class => "p-bot-5", :size => '150x150'
  9. -else
  10. =image_tag '/img/no_image_available_thumb.jpg', :class => "p-bot-5", :width => 100, :height => 100
  11. .col-md-10
  12. %h2.idea-title.text-left
  13. =@idea.title
  14. .row
  15. .pull-right{ :style => 'padding-right:15px;' }
  16. =link_to @idea.user do
  17. = image_tag(@idea.user.avatar.small_avatar.url, :class => 'img-circle')
  18. =@idea.user.first_name + " " + @idea.user.last_name
  19. at
  20. =@idea.created_at.localtime.strftime('%d-%m-%Y, %H:%M')
  21. .panel-body
  22. =@idea.description.html_safe
  23. -if !@idea.attachments.empty?
  24. .panel-footer
  25. %h4 Attachments:
  26. .row
  27. =render partial: @idea.attachments
  28. .row
  29. .pull-right
  30. %input#input-rating.rating{"data-max" => "5", "data-min" => "0","data-show-clear"=>"false", "data-step" => "0.1",
  31. :value => get_idea_rating(@idea)}
  32. -if(!@idea.comments.empty?)
  33. .row
  34. %h4 Comments
  35. .detailBox
  36. .actionBox
  37. %ul.commentList
  38. =comments_tree_for(@idea.comments.hash_tree)
  39. .row
  40. %br
  41. %h4 Your comment
  42. %ul#reply_comment
  43. .post-comment
  44. =form_for Comment.new do |f|
  45. =f.hidden_field :idea_id, :value => params[:id]
  46. =f.hidden_field :parent_id, :id => 'parent_comment_id'
  47. =f.text_area :text, :placeholder => "Your comments", :class => "ckeditor"
  48. .post-button
  49. =f.submit "Post comment", :class => "btn btn-success post-button"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement