annotate .svn/pristine/18/185ae4625d7d985009b3be79f0d708b104a00d0b.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 <%= link_to(l(:label_news_new),
Chris@909 3 new_project_news_path(@project),
Chris@909 4 :class => 'icon icon-add',
Chris@909 5 :onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %>
Chris@909 6 </div>
Chris@909 7
Chris@909 8 <div id="add-news" style="display:none;">
Chris@909 9 <h2><%=l(:label_news_new)%></h2>
Chris@909 10 <% labelled_tabular_form_for @news, :url => project_news_index_path(@project),
Chris@909 11 :html => { :id => 'news-form' } do |f| %>
Chris@909 12 <%= render :partial => 'news/form', :locals => { :f => f } %>
Chris@909 13 <%= submit_tag l(:button_create) %>
Chris@909 14 <%= link_to_remote l(:label_preview),
Chris@909 15 { :url => preview_news_path(:project_id => @project),
Chris@909 16 :method => 'get',
Chris@909 17 :update => 'preview',
Chris@909 18 :with => "Form.serialize('news-form')"
Chris@909 19 }, :accesskey => accesskey(:preview) %> |
Chris@909 20 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %>
Chris@909 21 <% end if @project %>
Chris@909 22 <div id="preview" class="wiki"></div>
Chris@909 23 </div>
Chris@909 24
Chris@909 25 <h2><%=l(:label_news_plural)%></h2>
Chris@909 26
Chris@909 27 <% if @newss.empty? %>
Chris@909 28 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@909 29 <% else %>
Chris@909 30 <% @newss.each do |news| %>
Chris@909 31 <h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
Chris@909 32 <%= link_to h(news.title), news_path(news) %>
Chris@909 33 <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
Chris@909 34 <p class="author"><%= authoring news.created_on, news.author %></p>
Chris@909 35 <div class="wiki">
Chris@909 36 <%= textilizable(news.description) %>
Chris@909 37 </div>
Chris@909 38 <% end %>
Chris@909 39 <% end %>
Chris@909 40 <p class="pagination"><%= pagination_links_full @news_pages %></p>
Chris@909 41
Chris@909 42 <% other_formats_links do |f| %>
Chris@909 43 <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %>
Chris@909 44 <% end %>
Chris@909 45
Chris@909 46 <% content_for :header_tags do %>
Chris@909 47 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
Chris@909 48 <%= stylesheet_link_tag 'scm' %>
Chris@909 49 <% end %>
Chris@909 50
Chris@909 51 <% html_title(l(:label_news_plural)) -%>