commit
e676636e2e
@ -0,0 +1,17 @@
|
|||||||
|
<div class="attachments" style="font-weight:normal;">
|
||||||
|
<% for attachment in attachments %>
|
||||||
|
<div title="<%= attachment.filename%>" id = "attachment_" style="max-width: 300px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;float: left;">
|
||||||
|
<%= link_to_short_attachment attachment, :class => 'link_file', :download => true, :length => 100 -%>
|
||||||
|
</div>
|
||||||
|
<% if attachment.is_text? %>
|
||||||
|
<div style="float: left;">
|
||||||
|
<%= link_to image_tag('magnifier.png'),
|
||||||
|
{:controller => 'attachments',
|
||||||
|
:action => 'show',
|
||||||
|
:id => attachment,
|
||||||
|
:filename => attachment.filename},
|
||||||
|
:target => "_blank"%>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -1,12 +1,11 @@
|
|||||||
<h3><%=l(:label_news)%></h3>
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
|
||||||
|
<div class="project_r_h">
|
||||||
<%= labelled_form_for @news, :html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
<h2 class="project_h2"><%= l(:label_course_news) %></h2>
|
||||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
</div>
|
||||||
<%= submit_tag l(:button_save) %>
|
<div id="edit-news">
|
||||||
<%#= preview_link preview_news_path(:project_id => @project, :id => @news), 'news-form' %>
|
<%= labelled_form_for :news, @news, :url => news_path(@news),
|
||||||
<% end %>
|
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
|
||||||
<div id="preview" class="wiki"></div>
|
<%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
|
||||||
|
<% end %>
|
||||||
<% content_for :header_tags do %>
|
<div id="preview" class="wiki"></div>
|
||||||
<%= stylesheet_link_tag 'scm' %>
|
</div>
|
||||||
<% end %>
|
|
Loading…
Reference in new issue