From 236c735d08c097cfe1a7e5f5c52a9dd6711250aa Mon Sep 17 00:00:00 2001
From: Jean-Philippe Lang <%= pagination_links_full @project_pages %>
-[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ] <%= link_to ('» ' + l(:label_project_new)), :controller => 'projects', :action => 'add' %><%=l(:label_project_plural)%>
@@ -25,6 +29,4 @@
<%= @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 %> - |
diff --git a/app/views/projects/list_documents.rhtml b/app/views/projects/list_documents.rhtml
index e6cf2b82..0b630e92 100644
--- a/app/views/projects/list_documents.rhtml
+++ b/app/views/projects/list_documents.rhtml
@@ -1,3 +1,7 @@
+
+<%= link_to_if_authorized l(:label_document_new), {:controller => 'projects', :action => 'add_document', :id => @project}, :class => 'pic picAdd' %>
+
+
<%=l(:label_document_plural)%><% if @documents.empty? %><%= l(:label_no_data) %> <% end %> @@ -16,8 +20,4 @@ <% end %> -<% end %> - --<%= link_to_if_authorized '» ' + l(:label_document_new), :controller => 'projects', :action => 'add_document', :id => @project %> - +<% end %> \ No newline at end of file diff --git a/app/views/projects/list_files.rhtml b/app/views/projects/list_files.rhtml index 5fe65e6a..881829a4 100644 --- a/app/views/projects/list_files.rhtml +++ b/app/views/projects/list_files.rhtml @@ -1,3 +1,7 @@ +
+<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'pic picAdd' %>
+
+
<%=l(:label_attachment_plural)%><% delete_allowed = authorize_for('versions', 'destroy_file') %> @@ -26,9 +30,9 @@ | <%= file.digest %> | <% if delete_allowed %>
- <%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %>
- <%= submit_tag l(:button_delete), :class => "button-small" %>
- <%= end_form_tag %>
+
+ <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
+
|
<% end %>
-<%= link_to_if_authorized '» ' + l(:label_attachment_new), :controller => 'projects', :action => 'add_file', :id => @project %> -
- - +
<%= l(:label_comment_plural) %>
<% @news.comments.each do |comment| %> -<% next if comment.new_record? %> -<%= format_time(comment.created_on) %> - <%= comment.author.name %>
-<%= format_time(comment.created_on) %> - <%= comment.author.name %>
+