From 525cd70b62a0bb7e7a5616b3415de870b877996a Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Fri, 16 Aug 2013 15:19:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E9=9D=9E=E6=9C=AC?= =?UTF-8?q?=E4=BA=BA=E4=B8=8D=E8=83=BD=E5=88=A0=E9=99=A4=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E4=BA=BA=E7=95=99=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/words/_message.html.erb | 61 ++++++++++++++----------------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/app/views/words/_message.html.erb b/app/views/words/_message.html.erb index 7f311f4d7..a8fbb98cc 100644 --- a/app/views/words/_message.html.erb +++ b/app/views/words/_message.html.erb @@ -4,41 +4,36 @@ <% for journal in jour%> - - - - + + + +
<%= link_to image_tag(url_to_avatar(journal.user), :class => "avatar"), user_path(journal.user), :class => "avatar" %> - - - - - - - - - - -
<%=link_to journal.user, user_path(journal.user)%> - <% if @user == User.current%> - <%= l(:label_leave_me_message) %> - <% else %> - <%= l(:label_leave_others_message) %> - <% end %> -

<%= textilizable journal.notes%>

<%= format_time journal.created_on %> - <% if @user == User.current%> - <%= link_to(image_tag('comment.png'), {:controller => 'words', :action => 'new', :id => user, :journal_id => journal}, :remote => true, - :method => 'post', :title => l(:button_quote))%><%= link_to(image_tag('delete.png'), {:controller => 'words', :action => 'destroy', :object_id => journal, :user_id => user}, - :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) if remove_allowed || journal.jour_id == User.current.id %> - <% else %> - <%= link_to(image_tag('comment.png'), {:controller => 'words', :action => 'new', :id => user, :journal_id => journal}, :remote => true, - :method => 'post', :title => l(:button_quote))%> - <% end %> -
<%= link_to image_tag(url_to_avatar(journal.user), :class => "avatar"), user_path(journal.user), :class => "avatar" %> + + + + + + + + + + + + <% else %> + <%= link_to(image_tag('comment.png'), {:controller => 'words', :action => 'new', :id => user, :journal_id => journal}, :remote => true, + :method => 'post', :title => l(:button_quote))%> + <% end %> + +
<%= link_to journal.user, user_path(journal.user)%> <% if @user == User.current %> <%= l(:label_leave_me_message) %> <% else %> <%= l(:label_leave_others_message) %> <% end %>
+

+ <%= textilizable journal.notes%> +

<%= format_time journal.created_on %> <% if @user == User.current %> + <%= link_to(image_tag('comment.png'), {:controller => 'words', :action => 'new', :id => user, :journal_id => journal}, :remote => true, + :method => 'post', :title => l(:button_quote))%> + <%= link_to(image_tag('delete.png'), {:controller => 'words', :action => 'destroy', :object_id => journal, :user_id => user}, + :remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) if remove_allowed || journal.jour_id == User.current.id %>
<% end %> <% end %> - - -