|  | 
| 4 | 4 | 		{{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}} | 
| 5 | 5 | 
 | 
| 6 | 6 | 		<!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF, | 
| 7 |  | -		5 = COMMENT_REF, 6 = PULL_REF, 7 = COMMENT_LABEL, 12 = START_TRACKING, | 
|  | 7 | +		5 = COMMENT_REF, 6 = PULL_REF, 7 = COMMENT_LABEL, 8 = MILESTONE_CHANGE, | 
|  | 8 | +		9 = ASSIGNEES_CHANGE, 10 = TITLE_CHANGE, 11 = DELETE_BRANCH, 12 = START_TRACKING, | 
| 8 | 9 | 		13 = STOP_TRACKING, 14 = ADD_TIME_MANUAL, 16 = ADDED_DEADLINE, 17 = MODIFIED_DEADLINE, | 
| 9 | 10 | 		18 = REMOVED_DEADLINE, 19 = ADD_DEPENDENCY, 20 = REMOVE_DEPENDENCY, 21 = CODE, | 
| 10 | 11 | 		22 = REVIEW, 23 = ISSUE_LOCKED, 24 = ISSUE_UNLOCKED, 25 = TARGET_BRANCH_CHANGED, | 
|  | 
| 184 | 185 | 					{{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{ctx.Locale.Tr "repo.issues.change_milestone_at" (.OldMilestone.Name|Escape) (.Milestone.Name|Escape) $createdStr | Safe}}{{else}}{{ctx.Locale.Tr "repo.issues.remove_milestone_at" (.OldMilestone.Name|Escape) $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{ctx.Locale.Tr "repo.issues.add_milestone_at" (.Milestone.Name|Escape) $createdStr | Safe}}{{end}} | 
| 185 | 186 | 				</span> | 
| 186 | 187 | 			</div> | 
| 187 |  | -		{{else if eq .Type 9}} | 
|  | 188 | +		{{else if and (eq .Type 9) (gt .AssigneeID 0)}} | 
| 188 | 189 | 			<div class="timeline-item event" id="{{.HashTag}}"> | 
| 189 | 190 | 				<span class="badge">{{svg "octicon-person"}}</span> | 
| 190 |  | -				{{if gt .AssigneeID 0}} | 
| 191 |  | -					{{if .RemovedAssignee}} | 
| 192 |  | -						{{template "shared/user/avatarlink" dict "user" .Assignee}} | 
| 193 |  | -						<span class="text grey muted-links"> | 
| 194 |  | -							{{template "shared/user/authorlink" .Assignee}} | 
| 195 |  | -							{{if eq .Poster.ID .Assignee.ID}} | 
| 196 |  | -								{{ctx.Locale.Tr "repo.issues.remove_self_assignment" $createdStr | Safe}} | 
| 197 |  | -							{{else}} | 
| 198 |  | -								{{ctx.Locale.Tr "repo.issues.remove_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}} | 
| 199 |  | -							{{end}} | 
| 200 |  | -						</span> | 
| 201 |  | -					{{else}} | 
| 202 |  | -						{{template "shared/user/avatarlink" dict "user" .Assignee}} | 
| 203 |  | -						<span class="text grey muted-links"> | 
| 204 |  | -							{{template "shared/user/authorlink" .Assignee}} | 
| 205 |  | -							{{if eq .Poster.ID .AssigneeID}} | 
| 206 |  | -								{{ctx.Locale.Tr "repo.issues.self_assign_at" $createdStr | Safe}} | 
| 207 |  | -							{{else}} | 
| 208 |  | -								{{ctx.Locale.Tr "repo.issues.add_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}} | 
| 209 |  | -							{{end}} | 
| 210 |  | -						</span> | 
| 211 |  | -					{{end}} | 
|  | 191 | +				{{if .RemovedAssignee}} | 
|  | 192 | +					{{template "shared/user/avatarlink" dict "user" .Assignee}} | 
|  | 193 | +					<span class="text grey muted-links"> | 
|  | 194 | +						{{template "shared/user/authorlink" .Assignee}} | 
|  | 195 | +						{{if eq .Poster.ID .Assignee.ID}} | 
|  | 196 | +							{{ctx.Locale.Tr "repo.issues.remove_self_assignment" $createdStr | Safe}} | 
|  | 197 | +						{{else}} | 
|  | 198 | +							{{ctx.Locale.Tr "repo.issues.remove_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}} | 
|  | 199 | +						{{end}} | 
|  | 200 | +					</span> | 
|  | 201 | +				{{else}} | 
|  | 202 | +					{{template "shared/user/avatarlink" dict "user" .Assignee}} | 
|  | 203 | +					<span class="text grey muted-links"> | 
|  | 204 | +						{{template "shared/user/authorlink" .Assignee}} | 
|  | 205 | +						{{if eq .Poster.ID .AssigneeID}} | 
|  | 206 | +							{{ctx.Locale.Tr "repo.issues.self_assign_at" $createdStr | Safe}} | 
|  | 207 | +						{{else}} | 
|  | 208 | +							{{ctx.Locale.Tr "repo.issues.add_assignee_at" (.Poster.GetDisplayName|Escape) $createdStr | Safe}} | 
|  | 209 | +						{{end}} | 
|  | 210 | +					</span> | 
| 212 | 211 | 				{{end}} | 
| 213 | 212 | 			</div> | 
| 214 | 213 | 		{{else if eq .Type 10}} | 
|  | 
0 commit comments