#1576 Issue notifications
This commit is contained in:
parent
98cc32431c
commit
e66489df23
@ -20,10 +20,24 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<% unless @dmsf_already_rendered %>
|
<%# The original Redmine code %>
|
||||||
<% @dmsf_already_rendered = true # Prevent recursion %>
|
<%# TODO: Render the original template %>
|
||||||
<%# Render the original view %>
|
<h1>
|
||||||
<%= render partial: 'mailer/issue', locals: { issue: issue, issue_url: issue_url, user: user } %>
|
<%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url) %>
|
||||||
<%# DMSF extension %>
|
<%= issue_status_type_badge(issue.status) %>
|
||||||
<%= render partial: 'hooks/redmine_dmsf/view_mailer_issue', locals: { issue: issue } %>
|
</h1>
|
||||||
|
|
||||||
|
<%= render_email_issue_attributes(issue, user, true) %>
|
||||||
|
|
||||||
|
<%= textilizable(issue, :description, :only_path => false) %>
|
||||||
|
|
||||||
|
<% if issue.attachments.any? %>
|
||||||
|
<fieldset class="attachments"><legend><%= l(:label_attachment_plural) %></legend>
|
||||||
|
<% issue.attachments.each do |attachment| %>
|
||||||
|
<%= link_to_attachment attachment, :download => true, :only_path => false %>
|
||||||
|
(<%= number_to_human_size(attachment.filesize) %>)<br />
|
||||||
|
<% end %>
|
||||||
|
</fieldset>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<%# DMSF extension %>
|
||||||
|
<%= render partial: 'hooks/redmine_dmsf/view_mailer_issue', locals: { issue: issue } %>
|
||||||
|
|||||||
@ -20,10 +20,20 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<% unless @dmsf_already_rendered %>
|
<%# The original Redmine code %>
|
||||||
<% @dmsf_already_rendered = true # Prevent recursion %>
|
<%# TODO: Render the original template %>
|
||||||
<%# Render the original view %>
|
<%= "#{issue.tracker.name} ##{issue.id}: #{issue.subject}" %>
|
||||||
<%= render partial: 'mailer/issue', locals: { issue: issue, issue_url: issue_url, user: user } %>
|
<%= issue_url %>
|
||||||
<%# DMSF extension %>
|
|
||||||
<%= render partial: 'hooks/redmine_dmsf/view_mailer_issue', locals: { issue: issue } %>
|
<%= render_email_issue_attributes(issue, user) %>
|
||||||
<% end %>
|
----------------------------------------
|
||||||
|
<%= issue.description %>
|
||||||
|
|
||||||
|
<% if issue.attachments.any? -%>
|
||||||
|
---<%= l(:label_attachment_plural).ljust(37, '-') %>
|
||||||
|
<% issue.attachments.each do |attachment| -%>
|
||||||
|
<%= attachment.filename %> (<%= number_to_human_size(attachment.filesize) %>)
|
||||||
|
<% end -%>
|
||||||
|
<% end -%>
|
||||||
|
<%# DMSF extension %>
|
||||||
|
<%= render partial: 'hooks/redmine_dmsf/view_mailer_issue', locals: { issue: issue } %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user