diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-04-18 18:28:02 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-04-18 18:28:02 +0300 |
commit | cad4eb989e87c2e1ce996cfb5817d2c1729111c8 (patch) | |
tree | c22d766e5f9dd8a299a3d68cd70f8a04df7e754a /app/views/notify | |
parent | 02579d6aeba3673c950896bdb511df8c678e20ca (diff) | |
parent | d8dd75ca775f66fd756e43ddd73ac75d39fc3e64 (diff) |
Merge branch 'master' into 'bootstrap4'
# Conflicts:
# app/views/projects/issues/_nav_btns.html.haml
# app/views/projects/merge_requests/creations/_new_compare.html.haml
Diffstat (limited to 'app/views/notify')
-rw-r--r-- | app/views/notify/issue_due_email.html.haml | 12 | ||||
-rw-r--r-- | app/views/notify/issue_due_email.text.erb | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/app/views/notify/issue_due_email.html.haml b/app/views/notify/issue_due_email.html.haml new file mode 100644 index 00000000000..e81144b8fcb --- /dev/null +++ b/app/views/notify/issue_due_email.html.haml @@ -0,0 +1,12 @@ +%p.details + #{link_to @issue.author_name, user_url(@issue.author)}'s issue is due soon. + +- if @issue.assignees.any? + %p + Assignee: #{@issue.assignee_list} +%p + This issue is due on: #{@issue.due_date.to_s(:medium)} + +- if @issue.description + %div + = markdown(@issue.description, pipeline: :email, author: @issue.author) diff --git a/app/views/notify/issue_due_email.text.erb b/app/views/notify/issue_due_email.text.erb new file mode 100644 index 00000000000..3c7a57a8a2e --- /dev/null +++ b/app/views/notify/issue_due_email.text.erb @@ -0,0 +1,7 @@ +The following issue is due on <%= @issue.due_date %>: + +Issue <%= @issue.iid %>: <%= url_for(project_issue_url(@issue.project, @issue)) %> +Author: <%= @issue.author_name %> +Assignee: <%= @issue.assignee_list %> + +<%= @issue.description %> |