annotate .svn/pristine/d9/d99d005bc4c66e06d02d4fede2fc4aa27612b15b.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <div class="contextual">
Chris@909 2 <%= watcher_tag(@news, User.current) %>
Chris@909 3 <%= link_to(l(:button_edit),
Chris@909 4 edit_news_path(@news),
Chris@909 5 :class => 'icon icon-edit',
Chris@909 6 :accesskey => accesskey(:edit),
Chris@909 7 :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %>
Chris@909 8 <%= link_to(l(:button_delete),
Chris@909 9 news_path(@news),
Chris@909 10 :confirm => l(:text_are_you_sure),
Chris@909 11 :method => :delete,
Chris@909 12 :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %>
Chris@909 13 </div>
Chris@909 14
Chris@909 15 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
Chris@909 16
Chris@909 17 <% if authorize_for('news', 'edit') %>
Chris@909 18 <div id="edit-news" style="display:none;">
Chris@909 19 <% labelled_tabular_form_for :news, @news, :url => news_path(@news),
Chris@909 20 :html => { :id => 'news-form', :method => :put } do |f| %>
Chris@909 21 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@909 22 <%= submit_tag l(:button_save) %>
Chris@909 23 <%= link_to_remote l(:label_preview),
Chris@909 24 { :url => preview_news_path(:project_id => @project),
Chris@909 25 :method => 'get',
Chris@909 26 :update => 'preview',
Chris@909 27 :with => "Form.serialize('news-form')"
Chris@909 28 }, :accesskey => accesskey(:preview) %> |
Chris@909 29 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("edit-news"); return false;' %>
Chris@909 30 <% end %>
Chris@909 31 <div id="preview" class="wiki"></div>
Chris@909 32 </div>
Chris@909 33 <% end %>
Chris@909 34
Chris@909 35 <p><% unless @news.summary.blank? %><em><%=h @news.summary %></em><br /><% end %>
Chris@909 36 <span class="author"><%= authoring @news.created_on, @news.author %></span></p>
Chris@909 37 <div class="wiki">
Chris@909 38 <%= textilizable(@news.description) %>
Chris@909 39 </div>
Chris@909 40 <br />
Chris@909 41
Chris@909 42 <div id="comments" style="margin-bottom:16px;">
Chris@909 43 <h3 class="comments"><%= l(:label_comment_plural) %></h3>
Chris@909 44 <% @comments.each do |comment| %>
Chris@909 45 <% next if comment.new_record? %>
Chris@909 46 <div class="contextual">
Chris@909 47 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
Chris@909 48 :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %>
Chris@909 49 </div>
Chris@909 50 <h4><%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %></h4>
Chris@909 51 <%= textilizable(comment.comments) %>
Chris@909 52 <% end if @comments.any? %>
Chris@909 53 </div>
Chris@909 54
Chris@909 55 <% if authorize_for 'comments', 'create' %>
Chris@909 56 <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
Chris@909 57 <% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
Chris@909 58 <div class="box">
Chris@909 59 <%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
Chris@909 60 <%= wikitoolbar_for 'comment_comments' %>
Chris@909 61 </div>
Chris@909 62 <p><%= submit_tag l(:button_add) %></p>
Chris@909 63 <% end %>
Chris@909 64 <% end %>
Chris@909 65
Chris@909 66 <% html_title @news.title -%>
Chris@909 67
Chris@909 68 <% content_for :header_tags do %>
Chris@909 69 <%= stylesheet_link_tag 'scm' %>
Chris@909 70 <% end %>