annotate .svn/pristine/db/dbc0240219da62eef782708d0af28fabe28645e6.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <%= board_breadcrumb(@message) %>
Chris@1295 2
Chris@1295 3 <div class="contextual">
Chris@1295 4 <%= watcher_link(@topic, User.current) %>
Chris@1295 5 <%= link_to(
Chris@1295 6 l(:button_quote),
Chris@1295 7 {:action => 'quote', :id => @topic},
Chris@1295 8 :remote => true,
Chris@1295 9 :method => 'get',
Chris@1295 10 :class => 'icon icon-comment',
Chris@1295 11 :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
Chris@1295 12 <%= link_to(
Chris@1295 13 l(:button_edit),
Chris@1295 14 {:action => 'edit', :id => @topic},
Chris@1295 15 :class => 'icon icon-edit'
Chris@1295 16 ) if @message.editable_by?(User.current) %>
Chris@1295 17 <%= link_to(
Chris@1295 18 l(:button_delete),
Chris@1295 19 {:action => 'destroy', :id => @topic},
Chris@1295 20 :method => :post,
Chris@1295 21 :data => {:confirm => l(:text_are_you_sure)},
Chris@1295 22 :class => 'icon icon-del'
Chris@1295 23 ) if @message.destroyable_by?(User.current) %>
Chris@1295 24 </div>
Chris@1295 25
Chris@1295 26 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
Chris@1295 27
Chris@1295 28 <div class="message">
Chris@1295 29 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
Chris@1295 30 <div class="wiki">
Chris@1295 31 <%= textilizable(@topic, :content) %>
Chris@1295 32 </div>
Chris@1295 33 <%= link_to_attachments @topic, :author => false %>
Chris@1295 34 </div>
Chris@1295 35 <br />
Chris@1295 36
Chris@1295 37 <% unless @replies.empty? %>
Chris@1295 38 <h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
Chris@1295 39 <% @replies.each do |message| %>
Chris@1295 40 <div class="message reply" id="<%= "message-#{message.id}" %>">
Chris@1295 41 <div class="contextual">
Chris@1295 42 <%= link_to(
Chris@1295 43 image_tag('comment.png'),
Chris@1295 44 {:action => 'quote', :id => message},
Chris@1295 45 :remote => true,
Chris@1295 46 :method => 'get',
Chris@1295 47 :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %>
Chris@1295 48 <%= link_to(
Chris@1295 49 image_tag('edit.png'),
Chris@1295 50 {:action => 'edit', :id => message},
Chris@1295 51 :title => l(:button_edit)
Chris@1295 52 ) if message.editable_by?(User.current) %>
Chris@1295 53 <%= link_to(
Chris@1295 54 image_tag('delete.png'),
Chris@1295 55 {:action => 'destroy', :id => message},
Chris@1295 56 :method => :post,
Chris@1295 57 :data => {:confirm => l(:text_are_you_sure)},
Chris@1295 58 :title => l(:button_delete)
Chris@1295 59 ) if message.destroyable_by?(User.current) %>
Chris@1295 60 </div>
Chris@1295 61 <h4>
Chris@1295 62 <%= avatar(message.author, :size => "24") %>
Chris@1295 63 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
Chris@1295 64 -
Chris@1295 65 <%= authoring message.created_on, message.author %>
Chris@1295 66 </h4>
Chris@1295 67 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
Chris@1295 68 <%= link_to_attachments message, :author => false %>
Chris@1295 69 </div>
Chris@1295 70 <% end %>
Chris@1295 71 <p class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></p>
Chris@1295 72 <% end %>
Chris@1295 73
Chris@1295 74 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
Chris@1295 75 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
Chris@1295 76 <div id="reply" style="display:none;">
Chris@1295 77 <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@1295 78 <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
Chris@1295 79 <%= submit_tag l(:button_submit) %>
Chris@1295 80 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
Chris@1295 81 <% end %>
Chris@1295 82 <div id="preview" class="wiki"></div>
Chris@1295 83 </div>
Chris@1295 84 <% end %>
Chris@1295 85
Chris@1295 86 <% html_title @topic.subject %>