- <%= labelled_form_for :news, @news, :url => news_path(@news),
- :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
- <%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
- <% end %>
-
-
-<% end %>
-
<%= link_to image_tag(url_to_avatar(@news.author),:width => 42,:height => 42), user_path(@news.author), :class => "problem_pic fl" %>
@@ -26,9 +16,7 @@
<%= link_to(l(:button_edit),
edit_news_path(@news),
- :class => 'talk_edit fr',
- :accesskey => accesskey(:edit),
- :onclick => '$("#edit-news").show(); return false;') if User.current.allowed_to?(:manage_news, @course) %>
+ :class => 'talk_edit fr') if User.current.allowed_to?(:manage_news, @course) %>
<%= delete_link(news_path(@news),:class => 'talk_edit fr') if User.current.allowed_to?(:manage_news, @course) %>
diff --git a/app/views/news/edit.html.erb b/app/views/news/edit.html.erb
index 3e9860feb..758976d1b 100644
--- a/app/views/news/edit.html.erb
+++ b/app/views/news/edit.html.erb
@@ -1,12 +1,11 @@
-
<%=l(:label_news)%>
-
-<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
-<%= render :partial => 'form', :locals => { :f => f } %>
-<%= submit_tag l(:button_save) %>
-<%#= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %>
-<% end %>
-
-
-<% content_for :header_tags do %>
- <%= stylesheet_link_tag 'scm' %>
-<% end %>
+<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
+
+
<%= l(:label_course_news) %>
+
+
+ <%= labelled_form_for :news, @news, :url => news_path(@news),
+ :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
+ <%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
+ <% end %>
+
+
\ No newline at end of file