|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
<div class="frame-wiki">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="contextual">
|
|
|
|
<div class="contextual">
|
|
|
|
<% if User.current.allowed_to?(:edit_documents, @project) %>
|
|
|
|
<% if User.current.allowed_to?(:edit_documents, @project) %>
|
|
|
|
<%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
|
|
|
|
<%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
|
|
|
@ -7,24 +9,13 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <h3><%=h @document.title %></h3>
|
|
|
|
<h2><%=h @document.title %></h2>
|
|
|
|
|
|
|
|
|
|
|
|
<p><em><%=h @document.category.name %><br />
|
|
|
|
<p><em><%=h @document.category.name %><br />
|
|
|
|
<%= format_date @document.created_on %></em></p>
|
|
|
|
<%= format_date @document.created_on %></em></p>
|
|
|
|
<div class="wiki">
|
|
|
|
<div class="wiki">
|
|
|
|
<%= textilizable @document.description, :attachments => @document.attachments %>
|
|
|
|
<%= textilizable @document, :description, :attachments => @document.attachments %>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
<!--add by huang-->
|
|
|
|
|
|
|
|
<table width="660px" align="center">
|
|
|
|
|
|
|
|
<tr><td><h3><strong><%=h @document.title %></strong></h3></td></tr>
|
|
|
|
|
|
|
|
<tr><td>
|
|
|
|
|
|
|
|
<div class="font_description">
|
|
|
|
|
|
|
|
<%= textilizable @document.description, :attachments => @document.attachments %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
|
|
|
|
<tr><td align="right"><p class="font_lighter"><%= format_date @document.created_on %></p></td></tr>
|
|
|
|
|
|
|
|
<tr><td class="line_under"></td></tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3><%= l(:label_attachment_plural) %></h3>
|
|
|
|
<h3><%= l(:label_attachment_plural) %></h3>
|
|
|
@ -42,3 +33,4 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% html_title @document.title -%>
|
|
|
|
<% html_title @document.title -%>
|
|
|
|
|
|
|
|
</div>
|
|
|
|