diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-27 10:34:47 +1100 |
commit | 835b51c1de0d49e652fe9c9a60f0974275de070c (patch) | |
tree | 0d64a841f28654a66556bcc0c0bb1153bae645a2 /app/views/comment/preview.html.erb | |
parent | 77a284d6d088f7aa6d40810d46a39658fc6cf2cd (diff) |
Rename ALL THE TEMPLATES!!1!!!one!!1!!
.rhtml is deprecated in favour of .erb in Rails 3
Diffstat (limited to 'app/views/comment/preview.html.erb')
-rw-r--r-- | app/views/comment/preview.html.erb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/comment/preview.html.erb b/app/views/comment/preview.html.erb new file mode 100644 index 000000000..5367338ab --- /dev/null +++ b/app/views/comment/preview.html.erb @@ -0,0 +1,26 @@ +<% @title = _("Preview new annotation on '{{info_request_title}}'",:info_request_title=>h(@info_request.title)) %> + +<%= form_for(:comment, @comment, :html => { :id => 'preview_form' }, :url => { :controller => "comment", :action => "new", :type => "request" } ) do |f| %> + + <h1><%= _('Now preview your annotation') %></h1> + + <%= render :partial => 'comment/single_comment', :locals => { :comment => @comment } %> + + <p> + <%= _('Your name and annotation will appear in <strong>search engines</strong>.')%> + </p> + + <p> + <%= f.hidden_field(:body) %> + <% if params[:subscribe_to_request] %> + <%= hidden_field_tag(:subscribe_to_request, "1") %> + <% end %> + <%= hidden_field_tag(:submitted_comment, 1) %> + <%= hidden_field_tag(:preview, 0 ) %> + <%= submit_tag _("Re-edit this annotation"), :name => 'reedit' %> + <%= submit_tag _("Post annotation"), :name => 'submit' %> + </p> + +<% end %> + + |