diff --git a/redmine/app/views/documents/_form.rhtml b/redmine/app/views/documents/_form.rhtml index 724bcbaa..873c9632 100644 --- a/redmine/app/views/documents/_form.rhtml +++ b/redmine/app/views/documents/_form.rhtml @@ -10,6 +10,20 @@ <%= text_field 'document', 'title', :size => 60 %>
-<%= text_area 'document', 'description', :cols => 60, :rows => 5 %>
+<%= text_area 'document', 'description', :cols => 60, :rows => 15 %> - \ No newline at end of file + + +<% unless $RDM_TEXTILE_DISABLED %> +<%= javascript_include_tag 'jstoolbar' %> + +<% end %> \ No newline at end of file diff --git a/redmine/app/views/documents/show.rhtml b/redmine/app/views/documents/show.rhtml index 2b8da670..c6dbbe95 100644 --- a/redmine/app/views/documents/show.rhtml +++ b/redmine/app/views/documents/show.rhtml @@ -1,47 +1,48 @@<%= @document.category.name %>
+<%= format_date @document.created_on %>
<%= link_to_if_authorized l(:button_edit), :controller => 'documents', :action => 'edit', :id => @document %> | +
<% if authorize_for('documents', 'destroy') %>
<%= start_form_tag({ :controller => 'documents', :action => 'destroy', :id => @document } ) %>
<%= submit_tag l(:button_delete) %>
- <%= end_form_tag %>
+ <%= end_form_tag %>
<% end %>
-
- - -
+ <%= l(:label_attachment_plural) %>+
+ + <% if authorize_for('documents', 'add_attachment') %> <%= start_form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true) %> - <%=l(:label_attachment_new)%> <%= file_field 'attachment', 'file' %> + + <%= file_field 'attachment', 'file' %> <%= submit_tag l(:button_add) %> <%= end_form_tag %> <% end %> - diff --git a/redmine/app/views/projects/list_documents.rhtml b/redmine/app/views/projects/list_documents.rhtml index e47abceb..9bbadc47 100644 --- a/redmine/app/views/projects/list_documents.rhtml +++ b/redmine/app/views/projects/list_documents.rhtml @@ -10,8 +10,8 @@ - <%=l(:field_description)%>: <%= d.description %> - <%= format_time(d.created_on) %> + <%= truncate d.description, 250 %> + <%= format_time(d.created_on) %> |