Project

General

Profile

Feature #3587 ยป comment_subject_to_link.diff

Harri H, 2009-07-05 21:16

View differences:

app/views/messages/show.rhtml (working copy)
22 22
<% unless @replies.empty? %>
23 23
<h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
24 24
<% @replies.each do |message| %>
25
  <a name="<%= "message-#{message.id}" %>"></a>
26
  <div class="message reply">
25
  <div class="message reply" id="<%= "message-#{message.id}" %>">
27 26
    <div class="contextual">
28 27
      <%= link_to_remote_if_authorized image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote) %>
29 28
      <%= link_to(image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit)) if message.editable_by?(User.current) %>
30 29
      <%= 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) %>
31 30
    </div>
32
  <h4><%=h message.subject %> - <%= authoring message.created_on, message.author %></h4>
31
  <h4>
32
    <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :anchor => "message-#{message.id}" } %>
33
    -
34
    <%= authoring message.created_on, message.author %>
35
  </h4>
33 36
  <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
34 37
  <%= link_to_attachments message, :author => false %>
35 38
  </div>
    (1-1/1)