Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .container
- .row
- .panel.panel-info
- .panel-heading
- .row
- .col-md-2
- -if !@idea.avatar_id.nil?
- =image_tag get_idea_avatar(@idea), :class => "p-bot-5", :size => '150x150'
- -else
- =image_tag '/img/no_image_available_thumb.jpg', :class => "p-bot-5", :width => 100, :height => 100
- .col-md-10
- %h2.idea-title.text-left
- =@idea.title
- .row
- .pull-right{ :style => 'padding-right:15px;' }
- =link_to @idea.user do
- = image_tag(@idea.user.avatar.small_avatar.url, :class => 'img-circle')
- =@idea.user.first_name + " " + @idea.user.last_name
- at
- =@idea.created_at.localtime.strftime('%d-%m-%Y, %H:%M')
- .panel-body
- =@idea.description.html_safe
- -if !@idea.attachments.empty?
- .panel-footer
- %h4 Attachments:
- .row
- =render partial: @idea.attachments
- .row
- .pull-right
- %input#input-rating.rating{"data-max" => "5", "data-min" => "0","data-show-clear"=>"false", "data-step" => "0.1",
- :value => get_idea_rating(@idea)}
- -if(!@idea.comments.empty?)
- .row
- %h4 Comments
- .detailBox
- .actionBox
- %ul.commentList
- =comments_tree_for(@idea.comments.hash_tree)
- .row
- %br
- %h4 Your comment
- %ul#reply_comment
- .post-comment
- =form_for Comment.new do |f|
- =f.hidden_field :idea_id, :value => params[:id]
- =f.hidden_field :parent_id, :id => 'parent_comment_id'
- =f.text_area :text, :placeholder => "Your comments", :class => "ckeditor"
- .post-button
- =f.submit "Post comment", :class => "btn btn-success post-button"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement