Sha256: b542e792139a086b68849499fbac86608157a30c991a277531e428163fcfd05a

Contents?: true

Size: 696 Bytes

Versions: 13

Compression:

Stored size: 696 Bytes

Contents

- class_name = commentable.class.name.downcase
.comment#comment_edit{style: "margin: 5px 0px 0px 0px"}
  = link_to avatar_for(current_user, size: :small), user_path(current_user)
  #post
    = form_for(@comment, remote: true) do |f|
      = hidden_field_tag "comment[user_id]", current_user.id
      = hidden_field_tag "comment[commentable_id]", commentable.id
      = hidden_field_tag "comment[commentable_type]", class_name.capitalize
      = f.text_area :comment
      %div{style: "padding:6px 0px 0px 40px;"}
        = f.submit t :edit_note
        #{t :or}
        = link_to(t(:cancel), send("edit_#{class_name}_comment_url", commentable), method: :get, with: "'cancel=true'", remote: true)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.22.0 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.21.0 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.20.1 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.20.0 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.19.2 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.19.0 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.18.2 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.17.3 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.18.1 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.18.0 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.17.2 app/views/shared/_edit_comment.html.haml
fat_free_crm-0.17.1 app/views/shared/_edit_comment.html.haml