annotate .svn/pristine/9d/9d877c8347c80eb0a2dfdf19e1809ccce67984a2.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}),
Chris@909 2 link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %>
Chris@909 3
Chris@909 4 <div class="contextual">
Chris@909 5 <%= watcher_tag(@topic, User.current) %>
Chris@909 6 <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'quote', :id => @topic} }, :class => 'icon icon-comment') unless @topic.locked? %>
Chris@909 7 <%= link_to(l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit') if @message.editable_by?(User.current) %>
Chris@909 8 <%= 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) %>
Chris@909 9 </div>
Chris@909 10
Chris@909 11 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
Chris@909 12
Chris@909 13 <div class="message">
Chris@909 14 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
Chris@909 15 <div class="wiki">
Chris@909 16 <%= textilizable(@topic.content, :attachments => @topic.attachments) %>
Chris@909 17 </div>
Chris@909 18 <%= link_to_attachments @topic, :author => false %>
Chris@909 19 </div>
Chris@909 20 <br />
Chris@909 21
Chris@909 22 <% unless @replies.empty? %>
Chris@909 23 <h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
Chris@909 24 <% @replies.each do |message| %>
Chris@909 25 <div class="message reply" id="<%= "message-#{message.id}" %>">
Chris@909 26 <div class="contextual">
Chris@909 27 <%= link_to_remote_if_authorized(image_tag('comment.png'), { :url => {:action => 'quote', :id => message} }, :title => l(:button_quote)) unless @topic.locked? %>
Chris@909 28 <%= link_to(image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit)) if message.editable_by?(User.current) %>
Chris@909 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) %>
Chris@909 30 </div>
Chris@909 31 <h4>
Chris@909 32 <%= avatar(message.author, :size => "24") %>
Chris@909 33 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
Chris@909 34 -
Chris@909 35 <%= authoring message.created_on, message.author %>
Chris@909 36 </h4>
Chris@909 37 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
Chris@909 38 <%= link_to_attachments message, :author => false %>
Chris@909 39 </div>
Chris@909 40 <% end %>
Chris@909 41 <p class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></p>
Chris@909 42 <% end %>
Chris@909 43
Chris@909 44 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
Chris@909 45 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
Chris@909 46 <div id="reply" style="display:none;">
Chris@909 47 <% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@909 48 <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
Chris@909 49 <%= submit_tag l(:button_submit) %>
Chris@909 50 <%= link_to_remote l(:label_preview),
Chris@909 51 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
Chris@909 52 :method => 'post',
Chris@909 53 :update => 'preview',
Chris@909 54 :with => "Form.serialize('message-form')",
Chris@909 55 :complete => "Element.scrollTo('preview')"
Chris@909 56 }, :accesskey => accesskey(:preview) %>
Chris@909 57 <% end %>
Chris@909 58 <div id="preview" class="wiki"></div>
Chris@909 59 </div>
Chris@909 60 <% end %>
Chris@909 61
Chris@909 62 <% content_for :header_tags do %>
Chris@909 63 <%= stylesheet_link_tag 'scm' %>
Chris@909 64 <% end %>
Chris@909 65
Chris@909 66 <% html_title @topic.subject %>