|
|
|
@ -581,13 +581,19 @@ |
|
|
|
|
{{template "shared/user/authorlink" .Poster}} |
|
|
|
|
{{$oldProjectDisplayHtml := "Unknown Project"}} |
|
|
|
|
{{if .OldProject}} |
|
|
|
|
{{$trKey := printf "projects.type-%d.display_name" .OldProject.Type}} |
|
|
|
|
{{$oldProjectDisplayHtml = HTMLFormat `<span data-tooltip-content="%s">%s</span>` (ctx.Locale.Tr $trKey) .OldProject.Title}} |
|
|
|
|
{{$tooltip := ctx.Locale.Tr "projects.deleted.display_name"}} |
|
|
|
|
{{if not .OldProject.IsGhost}} |
|
|
|
|
{{$tooltip = ctx.Locale.Tr (printf "projects.type-%d.display_name" .OldProject.Type)}} |
|
|
|
|
{{end}} |
|
|
|
|
{{$oldProjectDisplayHtml = HTMLFormat `<span data-tooltip-content="%s">%s</span>` $tooltip .OldProject.Title}} |
|
|
|
|
{{end}} |
|
|
|
|
{{$newProjectDisplayHtml := "Unknown Project"}} |
|
|
|
|
{{if .Project}} |
|
|
|
|
{{$trKey := printf "projects.type-%d.display_name" .Project.Type}} |
|
|
|
|
{{$newProjectDisplayHtml = HTMLFormat `<span data-tooltip-content="%s">%s</span>` (ctx.Locale.Tr $trKey) .Project.Title}} |
|
|
|
|
{{$tooltip := ctx.Locale.Tr "projects.deleted.display_name"}} |
|
|
|
|
{{if not .Project.IsGhost}} |
|
|
|
|
{{$tooltip = ctx.Locale.Tr (printf "projects.type-%d.display_name" .Project.Type)}} |
|
|
|
|
{{end}} |
|
|
|
|
{{$newProjectDisplayHtml = HTMLFormat `<span data-tooltip-content="%s">%s</span>` $tooltip .Project.Title}} |
|
|
|
|
{{end}} |
|
|
|
|
{{if and (gt .OldProjectID 0) (gt .ProjectID 0)}} |
|
|
|
|
{{ctx.Locale.Tr "repo.issues.change_project_at" $oldProjectDisplayHtml $newProjectDisplayHtml $createdStr}} |
|
|
|
|