summaryrefslogtreecommitdiffstats
path: root/app/views/messages/show.html.erb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-10 08:04:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-10 08:04:57 +0000
commit413b0cc324cdae40ea2afbef857987dfd39d9504 (patch)
tree8df8af6299a5826b37c25b836c5ddf69ba8a8284 /app/views/messages/show.html.erb
parent54b0b7073796e00f14da3729509da9dfaeeeb459 (diff)
downloadredmine-413b0cc324cdae40ea2afbef857987dfd39d9504.tar.gz
redmine-413b0cc324cdae40ea2afbef857987dfd39d9504.zip
code layout clean up app/views/messages/show.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8601 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages/show.html.erb')
-rw-r--r--app/views/messages/show.html.erb40
1 files changed, 34 insertions, 6 deletions
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb
index 272772737..859e0d3c8 100644
--- a/app/views/messages/show.html.erb
+++ b/app/views/messages/show.html.erb
@@ -3,9 +3,23 @@
<div class="contextual">
<%= watcher_tag(@topic, User.current) %>
- <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment') unless @topic.locked? %>
- <%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit') if @message.editable_by?(User.current) %>
- <%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if @message.destroyable_by?(User.current) %>
+ <%= link_to_remote_if_authorized(
+ l(:button_quote),
+ { :url => {:action => 'quote', :id => @topic} },
+ :class => 'icon icon-comment'
+ ) unless @topic.locked? %>
+ <%= link_to(
+ l(:button_edit),
+ {:action => 'edit', :id => @topic},
+ :class => 'icon icon-edit'
+ ) if @message.editable_by?(User.current) %>
+ <%= link_to(
+ l(:button_delete),
+ {:action => 'destroy', :id => @topic},
+ :method => :post,
+ :confirm => l(:text_are_you_sure),
+ :class => 'icon icon-del'
+ ) if @message.destroyable_by?(User.current) %>
</div>
<h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
@@ -24,9 +38,23 @@
<% @replies.each do |message| %>
<div class="message reply" id="<%= "message-#{message.id}" %>">
<div class="contextual">
- <%= link_to_remote_if_authorized(image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote)) unless @topic.locked? %>
- <%= link_to(image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit)) if message.editable_by?(User.current) %>
- <%= link_to(image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if message.destroyable_by?(User.current) %>
+ <%= link_to_remote_if_authorized(
+ image_tag('comment.png'),
+ { :url => {:action => 'quote', :id => message} },
+ :title => l(:button_quote)
+ ) unless @topic.locked? %>
+ <%= link_to(
+ image_tag('edit.png'),
+ {:action => 'edit', :id => message},
+ :title => l(:button_edit)
+ ) if message.editable_by?(User.current) %>
+ <%= link_to(
+ image_tag('delete.png'),
+ {:action => 'destroy', :id => message},
+ :method => :post,
+ :confirm => l(:text_are_you_sure),
+ :title => l(:button_delete)
+ ) if message.destroyable_by?(User.current) %>
</div>
<h4>
<%= avatar(message.author, :size => "24") %>