diff --git a/app/views/bids/_history.html.erb b/app/views/bids/_history.html.erb index ebb047089..ed969df00 100644 --- a/app/views/bids/_history.html.erb +++ b/app/views/bids/_history.html.erb @@ -25,10 +25,15 @@ 发布于 <%= time_tag(journal.created_on).html_safe %>之前 + <% if @user==User.current|| User.current.admin? %> <%= link_to(image_tag('comment.png'), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true, :method => 'post', :title => l(:button_quote))%> <%= link_to(image_tag('delete.png'), {:controller => 'bids', :action => 'destroy', :object_id => journal, :id => bid},:confirm => l(:label_delete_confirm), :remote => true, :method => 'delete', :class => "delete", :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if remove_allowed || journal.user_id == User.current.id %> + <% else %> + <%= link_to(image_tag('comment.png'), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true, + :method => 'post', :title => l(:button_quote))%> + <% end %> diff --git a/app/views/users/user_fanslist.html.erb b/app/views/users/user_fanslist.html.erb index 579ea42fd..01359edad 100644 --- a/app/views/users/user_fanslist.html.erb +++ b/app/views/users/user_fanslist.html.erb @@ -22,7 +22,7 @@

- <%= l(:label_user_joinin) %><%= format_date(@user.created_on) %> + <%= l(:label_user_joinin) %><%= format_date(user.created_on) %> diff --git a/app/views/users/user_watchlist.html.erb b/app/views/users/user_watchlist.html.erb index 222ac117e..1c759374a 100644 --- a/app/views/users/user_watchlist.html.erb +++ b/app/views/users/user_watchlist.html.erb @@ -22,7 +22,7 @@

- <%= l(:label_user_joinin) %><%= format_date(@user.created_on) %> + <%= l(:label_user_joinin) %><%= format_date(user.created_on) %>