app/views/posts/_reply.html.haml in radiant-forum-extension-1.1.2 vs app/views/posts/_reply.html.haml in radiant-forum-extension-1.2.1
- old
+ new
@@ -1,7 +1,6 @@
-- message_type = @page ? 'comment' : 'reply'
-- purpose = @page ? 'To add a comment' : 'To reply'
+- message_type = @page ? 'comment' : 'post'
- if @topic.locked?
%p.administrative
This topic is closed.
@@ -10,27 +9,27 @@
- if current_reader.activated?
- formurl = @page ? page_posts_url(@page) : topic_posts_url(@topic)
- @post ||= @topic.posts.build
%div.reply#replyform
- - form_for :post, :url => formurl, :html => {:id => 'reply_form', :multipart => true, :class => 'friendly inline'} do |f|
+ %div.speaker
+ %a{:href => reader_url(current_reader), :class => 'main'}
+ = gravatar_for(current_reader, {:size => 40}, {:alt => current_reader.name, :class => 'gravatar', :width => '40', :height => '40'})
+ .post_wrapper
.post_header
%h2
- %a{:href => reader_url(current_reader), :class => 'main'}
- = gravatar_for(current_reader, {:size => 40}, {:alt => current_reader.name, :class => 'gravatar', :width => '40', :height => '40'})
- Add a
- = message_type
-
+ = t('add_post', :message_type => message_type)
%p.context
- You are currently logged in as
- = link_to(current_reader.name, reader_url(current_reader)) + '.'
- If that's not you, please
- = link_to("log out", reader_logout_url) + '.'
+ = t('logged_in_as', :name => current_reader.name)
+ = t('if_not_you')
+ = link_to(t('log_out'), reader_logout_url) + '.'
- = render :partial => 'posts/form', :object => f
- %p.buttons
- = f.submit "Post #{message_type}"
+ - form_for :post, :url => formurl, :html => {:id => 'reply_form', :multipart => true, :class => 'friendly inline'} do |f|
+ = render :partial => 'posts/form', :object => f
+ %p.buttons
+ = f.submit t('post_post', :message_type => message_type)
+
- else
- = render :partial => 'reader_activations/activation_required', :locals => {:purpose => purpose}
+ = render :partial => 'reader_activations/activation_required', :locals => {:purpose => t('to_add_post', :message_type => message_type)}
- else
- = render :partial => 'reader_sessions/login_form', :locals => {:purpose => purpose}
+ = render :partial => 'reader_sessions/login_form', :locals => {:purpose => t('to_add_post', :message_type => message_type)}