forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing to on reassign MR text email to unassigned.
Factors out text MR and issue email.
- Loading branch information
1 parent
4102eb3
commit c586192
Showing
3 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Reassigned <%= issuable.class.model_name.human.titleize %> <%= issuable.iid %> | ||
|
||
<%= url_for([issuable.project, issuable, {only_path: false}]) %> | ||
|
||
Assignee changed <%= "from #{@previous_assignee.name}" if @previous_assignee -%> | ||
to <%= "#{issuable.assignee_id ? issuable.assignee_name : 'Unassigned'}" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
Reassigned Issue <%= @issue.iid %> | ||
|
||
<%= url_for(project_issue_url(@issue.project, @issue)) %> | ||
|
||
Assignee changed <%= "from #{@previous_assignee.name}" if @previous_assignee %> to <%= "#{@issue.assignee_id ? @issue.assignee_name : 'Unassigned'}" %> | ||
<%= render 'reassigned_issuable_email', issuable: @issue %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
Reassigned Merge Request #<%= @merge_request.iid %> | ||
|
||
<%= url_for(project_merge_request_url(@merge_request.target_project, @merge_request)) %> | ||
|
||
|
||
Assignee changed <%= "from #{@previous_assignee.name}" if @previous_assignee %> to <%= @merge_request.assignee_name %> | ||
|
||
<%= render 'reassigned_issuable_email', issuable: @merge_request %> |