view .svn/pristine/9f/9f357f2c7eb1d40e687170aa6fbdfe3424f380b0.svn-base @ 1080:5bd8c86cfa6a issue_540

Makes the Publication model act as an activity; overloading the default ActivitiesController#index view in the Bibliography Plugin in order to differentiate Publications from the other event types. * Known issues: ** route to /activities is not working (only to /activity); ** publication cache needs to be implemented in the model, not in the helper; ** when a publication is added to n projects, n events are created (all with the same content).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Nov 2012 16:51:23 +0000
parents cbb26bc654de
children
line wrap: on
line source
<h2><%=l(:label_news_new)%></h2>

<% labelled_tabular_form_for @news, :url => project_news_index_path(@project),
                                           :html => { :id => 'news-form' } do |f| %>
	<%= render :partial => 'news/form', :locals => { :f => f } %>
	<%= submit_tag l(:button_create) %>
	<%= link_to_remote l(:label_preview),
	                   { :url => preview_news_path(:project_id => @project),
	                     :method => 'get',
	                     :update => 'preview',
	                     :with => "Form.serialize('news-form')"
	                   }, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>