diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-12 17:59:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-12 17:59:02 +0000 |
commit | 027bf93849e82ef3c60e4a3024db49d65f0fb3c9 (patch) | |
tree | c6bc438fcd50370944b94f605b3f34fe54b73248 /app/views/documents | |
parent | 071f8e18d02f789149071abb8e052bae7ad01003 (diff) | |
download | redmine-027bf93849e82ef3c60e4a3024db49d65f0fb3c9.tar.gz redmine-027bf93849e82ef3c60e4a3024db49d65f0fb3c9.zip |
added svn:eol-style native property on /app files
git-svn-id: http://redmine.rubyforge.org/svn/trunk@333 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r-- | app/views/documents/_document.rhtml | 4 | ||||
-rw-r--r-- | app/views/documents/_form.rhtml | 8 | ||||
-rw-r--r-- | app/views/documents/show.rhtml | 66 |
3 files changed, 39 insertions, 39 deletions
diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index 81e039be2..e1539b828 100644 --- a/app/views/documents/_document.rhtml +++ b/app/views/documents/_document.rhtml @@ -1,3 +1,3 @@ -<p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br />
-<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %><br /><% end %>
+<p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br /> +<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %><br /><% end %> <em><%= format_time(document.created_on) %></em></p>
\ No newline at end of file diff --git a/app/views/documents/_form.rhtml b/app/views/documents/_form.rhtml index 40bbdc66a..bd6e6cc7e 100644 --- a/app/views/documents/_form.rhtml +++ b/app/views/documents/_form.rhtml @@ -1,11 +1,11 @@ <%= error_messages_for 'document' %> <div class="box"> <!--[form:document]--> -<p><label for="document_category_id"><%=l(:field_category)%></label>
-<select name="document[category_id]">
+<p><label for="document_category_id"><%=l(:field_category)%></label> +<select name="document[category_id]"> <%= options_from_collection_for_select @categories, "id", "name", @document.category_id %> -</select></p>
-
+</select></p> + <p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label> <%= text_field 'document', 'title', :size => 60 %></p> diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 31595ab0f..730cbbb11 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -1,37 +1,37 @@ -<div class="contextual">
-<%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %>
-<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
-</div>
-
-<h2><%= @document.title %></h2>
-
-<p><em><%= @document.category.name %><br />
-<%= format_date @document.created_on %></em></p>
-<%= textilizable @document.description %>
-<br />
-
-<h3><%= l(:label_attachment_plural) %></h3>
+<div class="contextual"> +<%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit' %> +<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> +</div> + +<h2><%= @document.title %></h2> + +<p><em><%= @document.category.name %><br /> +<%= format_date @document.created_on %></em></p> +<%= textilizable @document.description %> +<br /> + +<h3><%= l(:label_attachment_plural) %></h3> <ul class="documents"> <% for attachment in @attachments %> - <li>
- <div class="contextual">
- <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
- </div>
- <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
- (<%= number_to_human_size attachment.filesize %>)<br />
+ <li> + <div class="contextual"> + <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy_attachment', :id => @document, :attachment_id => attachment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> + </div> + <%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %> + (<%= number_to_human_size attachment.filesize %>)<br /> <em><%= attachment.author.display_name %>, <%= format_date(attachment.created_on) %></em><br /> - <%= lwr(:label_download, attachment.downloads) %>
- </li>
+ <%= lwr(:label_download, attachment.downloads) %> + </li> +<% end %> +</ul> +<br /> + + +<% if authorize_for('documents', 'add_attachment') %> + <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %> + <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> + <%= image_to_function "add.png", "addFileField();return false" %></label> + <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> + <%= submit_tag l(:button_add) %> + <% end %> <% end %> -</ul>
-<br />
-
-
-<% if authorize_for('documents', 'add_attachment') %>
- <% form_tag ({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :class => "tabular") do %>
- <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%>
- <%= image_to_function "add.png", "addFileField();return false" %></label>
- <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
- <%= submit_tag l(:button_add) %>
- <% end %>
-<% end %>
|