% if !commentable && @commentable %> <% commentable = @commentable %> <% end %>
<% if commentable.is_a?(AdminPost) %> <%= t("comments.commentable.permissions.moderated_commenting.notice.admin_post") %> <% else %> <%= t("comments.commentable.permissions.moderated_commenting.notice.work") %> <% end %>
<%= t(".anonymous_forewarning") %>
(<%= allowed_html_instructions %>)
<% content_id = "comment_content_for_#{commentable.id}" %> <%= t(".landmark.comment") %> <%= f.text_area :comment_content, id: content_id, class: "comment_form observe_textlength", title: t(".comment_field_title") %>
<%= f.submit button_name, id: "comment_submit_for_#{commentable.id}", data: { disable_with: t(".processing_message") } %> <% if controller.controller_name == 'inbox' %> <%= t(".cancel_action") %> <% elsif comment.persisted? %> <%= cancel_edit_comment_link(comment) %> <% elsif commentable.is_a?(Comment) || commentable.is_a?(CommentDecorator) %> <%= cancel_comment_reply_link(commentable) %> <% end %>