annotate app/views/news/edit.rhtml @ 344:1a514b9347d4 feature_121

Add Recent Activity partial, include it as a block in My Page (on by default) and in the project information page
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 31 Mar 2011 15:19:30 +0100
parents 94944d00e43c
children
rev   line source
Chris@0 1 <h2><%=l(:label_news)%></h2>
Chris@0 2
chris@37 3 <% labelled_tabular_form_for :news, @news, :url => news_path(@news),
chris@22 4 :html => { :id => 'news-form', :method => :put } do |f| %>
Chris@0 5 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@0 6 <%= submit_tag l(:button_save) %>
Chris@0 7 <%= link_to_remote l(:label_preview),
chris@37 8 { :url => preview_news_path(:project_id => @project),
chris@37 9 :method => 'get',
Chris@0 10 :update => 'preview',
Chris@0 11 :with => "Form.serialize('news-form')"
Chris@0 12 }, :accesskey => accesskey(:preview) %>
Chris@0 13 <% end %>
Chris@0 14 <div id="preview" class="wiki"></div>
chris@22 15
chris@22 16 <% content_for :header_tags do %>
chris@22 17 <%= stylesheet_link_tag 'scm' %>
chris@22 18 <% end %>