* fixed problems with mail templates for new Redmine
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@245 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
c30809169f
commit
e61e71ec58
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<%= render(:partial => "file_new_revision") if User.current.allowed_to?(:file_manipulation, @file.project) %>
|
<%= 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 %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
17
app/views/dmsf_mailer/files_deleted.html.erb
Normal file
17
app/views/dmsf_mailer/files_deleted.html.erb
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
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| %>
|
||||||
|
<p>
|
||||||
|
<%= 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 %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
5
app/views/dmsf_mailer/files_deleted.text.erb
Normal file
5
app/views/dmsf_mailer/files_deleted.text.erb
Normal file
@ -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 %>
|
||||||
25
app/views/dmsf_mailer/files_updated.html.erb
Normal file
25
app/views/dmsf_mailer/files_updated.html.erb
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
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| %>
|
||||||
|
<p>
|
||||||
|
<%= 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? %>
|
||||||
|
<br /><span style="font-size: 0.9em"> <em><%= h(file.last_revision.comment) %></em></span>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
6
app/views/dmsf_mailer/files_updated.text.erb
Normal file
6
app/views/dmsf_mailer/files_updated.text.erb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
User <%= @user %> actualized 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 %><%= ", #{file.last_revision.workflow_str}" unless file.last_revision.workflow_str.blank? %>
|
||||||
|
<%= url_for({:only_path => false, :controller => "dmsf_files", :action => "show", :id => file}) %>
|
||||||
|
<% unless file.last_revision.comment.blank? %> comment: <%= file.last_revision.comment %><% end %>
|
||||||
|
<% end %>
|
||||||
Loading…
x
Reference in New Issue
Block a user