|
2 | 2 | {{range .Issue.Comments}} |
3 | 3 | {{if call $.ShouldShowCommentType .Type}} |
4 | 4 | {{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}} |
5 | | - {{$isWeightEnabled:= $.Repository.IsWeightEnabled ctx}} |
| 5 | + {{$isWeightEnabled:= $.Repository.IsWeightEnabled ctx}} |
6 | 6 |
|
7 | 7 | <!-- 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE_REF, 4 = COMMIT_REF, |
8 | 8 | 5 = COMMENT_REF, 6 = PULL_REF, 7 = COMMENT_LABEL, 8 = MILESTONE_CHANGE, |
|
701 | 701 | {{else}}{{ctx.Locale.Tr "repo.issues.unpin_comment" $createdStr}}{{end}} |
702 | 702 | </span> |
703 | 703 | </div> |
704 | | - {{else if and (eq .Type 38) ($isWeightEnabled)}} |
| 704 | + {{else if and (eq .Type 38) ($isWeightEnabled)}} |
705 | 705 | <div class="timeline-item event" id="{{.HashTag}}"> |
706 | 706 | <span class="badge">{{svg "octicon-clock"}}</span> |
707 | 707 | {{template "shared/user/avatarlink" dict "user" .Poster}} |
|
710 | 710 | {{ctx.Locale.Tr "repo.issues.weight_added" .Content $createdStr}} |
711 | 711 | </span> |
712 | 712 | </div> |
713 | | - {{else if and (eq .Type 39) ($isWeightEnabled)}} |
| 713 | + {{else if and (eq .Type 39) ($isWeightEnabled)}} |
714 | 714 | <div class="timeline-item event" id="{{.HashTag}}"> |
715 | 715 | <span class="badge">{{svg "octicon-clock"}}</span> |
716 | 716 | {{template "shared/user/avatarlink" dict "user" .Poster}} |
717 | 717 | <span class="text grey muted-links"> |
718 | 718 | {{template "shared/user/authorlink" .Poster}} |
719 | | - {{$splitWeight := StringUtils.Split .Content "|"}} |
| 719 | + {{$splitWeight := StringUtils.Split .Content "|"}} |
720 | 720 | {{if eq (len $splitWeight) 2}} |
721 | 721 | {{$to := (index $splitWeight 0)}} |
722 | 722 | {{$from := (index $splitWeight 1)}} |
|
0 commit comments