annotate .svn/pristine/9a/9ac63e5e929a03c7b0bb70dd2dff7c8190cd753b.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 038ba2d95de8
children
rev   line source
Chris@1296 1 <div class="contextual">
Chris@1296 2 <%= watcher_tag(@news, User.current) %>
Chris@1296 3 <%= link_to(l(:button_edit),
Chris@1296 4 edit_news_path(@news),
Chris@1296 5 :class => 'icon icon-edit',
Chris@1296 6 :accesskey => accesskey(:edit),
Chris@1296 7 :onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_news, @project) %>
Chris@1296 8 <%= delete_link news_path(@news) if User.current.allowed_to?(:manage_news, @project) %>
Chris@1296 9 </div>
Chris@1296 10
Chris@1296 11 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
Chris@1296 12
Chris@1296 13 <% if authorize_for('news', 'edit') %>
Chris@1296 14 <div id="edit-news" style="display:none;">
Chris@1296 15 <%= labelled_form_for :news, @news, :url => news_path(@news),
Chris@1296 16 :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
Chris@1296 17 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@1296 18 <%= submit_tag l(:button_save) %>
Chris@1296 19 <%= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %> |
Chris@1296 20 <%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;' %>
Chris@1296 21 <% end %>
Chris@1296 22 <div id="preview" class="wiki"></div>
Chris@1296 23 </div>
Chris@1296 24 <% end %>
Chris@1296 25
Chris@1296 26 <p><% unless @news.summary.blank? %><em><%=h @news.summary %></em><br /><% end %>
Chris@1296 27 <span class="author"><%= authoring @news.created_on, @news.author %></span></p>
Chris@1296 28 <div class="wiki">
Chris@1296 29 <%= textilizable(@news, :description) %>
Chris@1296 30 </div>
Chris@1296 31 <%= link_to_attachments @news %>
Chris@1296 32 <br />
Chris@1296 33
Chris@1296 34 <div id="comments" style="margin-bottom:16px;">
Chris@1296 35 <h3 class="comments"><%= l(:label_comment_plural) %></h3>
Chris@1296 36 <% @comments.each do |comment| %>
Chris@1296 37 <% next if comment.new_record? %>
Chris@1296 38 <div class="contextual">
Chris@1296 39 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
Chris@1296 40 :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
Chris@1296 41 </div>
Chris@1296 42 <h4><%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %></h4>
Chris@1296 43 <%= textilizable(comment.comments) %>
Chris@1296 44 <% end if @comments.any? %>
Chris@1296 45 </div>
Chris@1296 46
Chris@1296 47 <% if @news.commentable? %>
Chris@1296 48 <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
Chris@1296 49 <%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
Chris@1296 50 <div class="box">
Chris@1296 51 <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
Chris@1296 52 <%= wikitoolbar_for 'comment_comments' %>
Chris@1296 53 </div>
Chris@1296 54 <p><%= submit_tag l(:button_add) %></p>
Chris@1296 55 <% end %>
Chris@1296 56 <% end %>
Chris@1296 57
Chris@1296 58 <% html_title @news.title -%>
Chris@1296 59
Chris@1296 60 <% content_for :header_tags do %>
Chris@1296 61 <%= stylesheet_link_tag 'scm' %>
Chris@1296 62 <% end %>