diff --git a/app/views/dmsf_files/show.html.erb b/app/views/dmsf_files/show.html.erb index 19822217..689d0bc9 100644 --- a/app/views/dmsf_files/show.html.erb +++ b/app/views/dmsf_files/show.html.erb @@ -49,7 +49,7 @@ <%= render(:partial => "file_new_revision") if User.current.allowed_to?(:file_manipulation, @file.project) %> -<% form_tag({}, :id => "manipulation_form") do |f| %> +<% form_tag("", :id => "manipulation_form") do %> <% end %> diff --git a/app/views/dmsf_mailer/files_deleted.html.erb b/app/views/dmsf_mailer/files_deleted.html.erb new file mode 100644 index 00000000..6c930a4e --- /dev/null +++ b/app/views/dmsf_mailer/files_deleted.html.erb @@ -0,0 +1,17 @@ + + +
+ + + + User <%= link_to(h(@user), {:only_path => false, :controller => "users", :action => "show", :id => @user }) %> + deleted DMSF files in project <%= @project.name %>: + <% @files.each do |file| %> ++ <%= h(file.dmsf_path_str) %> (<%= file.name %>), + <%= number_to_human_size(file.last_revision.size) %>, + version: <%= file.last_revision.major_version %>.<%= file.last_revision.minor_version %> +
+ <% end %> + + \ No newline at end of file diff --git a/app/views/dmsf_mailer/files_deleted.text.erb b/app/views/dmsf_mailer/files_deleted.text.erb new file mode 100644 index 00000000..52905590 --- /dev/null +++ b/app/views/dmsf_mailer/files_deleted.text.erb @@ -0,0 +1,5 @@ +User <%= @user %> deleted DMSF files in project <%= @project.name %>: +<% @files.each do |file| %> + <%= file.dmsf_path_str %> (<%= file.name %>), <%= number_to_human_size(file.last_revision.size) %>, version: <%= file.last_revision.major_version %>.<%= file.last_revision.minor_version %> + +<% end %> \ No newline at end of file diff --git a/app/views/dmsf_mailer/files_updated.html.erb b/app/views/dmsf_mailer/files_updated.html.erb new file mode 100644 index 00000000..545256e2 --- /dev/null +++ b/app/views/dmsf_mailer/files_updated.html.erb @@ -0,0 +1,25 @@ + + + + + + + User <%= link_to(h(@user), {:only_path => false, :controller => "users", :action => "show", :id => @user }) %> + actualized DMSF files in project <%= @project.name %>: + <% @files.each do |file| %> +
+ <%= link_to(h(file.dmsf_path_str),
+ {:only_path => false, :controller => "dmsf_files", :action => "show", :id => file,
+ :download => ""}) %> (<%= file.name %>),
+ <%= number_to_human_size(file.last_revision.size) %>,
+ version: <%= file.last_revision.major_version %>.<%= file.last_revision.minor_version %>,
+ <%= "#{file.last_revision.workflow_str}," unless file.last_revision.workflow_str.blank? %>
+ <%= link_to("Details",
+ {:only_path => false, :controller => "dmsf_files", :action => "show", :id => file}) %>
+ <% unless file.last_revision.comment.blank? %>
+
<%= h(file.last_revision.comment) %>
+ <% end %>
+