summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-07-05 19:52:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-07-05 19:52:09 +0000
commit9c8daee045c0087863149192a9f6d54c8b474c92 (patch)
tree00ae35bc24645e29ea25e63e90dcb854a8807cab
parent6151e95e37207c0c8b270edb4d631bfbd7d9a03a (diff)
downloadredmine-9c8daee045c0087863149192a9f6d54c8b474c92.tar.gz
redmine-9c8daee045c0087863149192a9f6d54c8b474c92.zip
Adds permalinks to message replies (#3587).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2815 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/messages/show.rhtml9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml
index c1c3105fc..fd32fad94 100644
--- a/app/views/messages/show.rhtml
+++ b/app/views/messages/show.rhtml
@@ -22,14 +22,17 @@
<% unless @replies.empty? %>
<h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
<% @replies.each do |message| %>
- <a name="<%= "message-#{message.id}" %>"></a>
- <div class="message reply">
+ <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) %>
<%= 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><%=h message.subject %> - <%= authoring message.created_on, message.author %></h4>
+ <h4>
+ <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :anchor => "message-#{message.id}" } %>
+ -
+ <%= authoring message.created_on, message.author %>
+ </h4>
<div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
<%= link_to_attachments message, :author => false %>
</div>