code.gitea.io/gitea@v1.22.3/templates/shared/issueicon.tmpl (about)

     1  {{if .IsPull}}
     2  	{{if not .PullRequest}}
     3  		No PullRequest
     4  	{{else}}
     5  		{{if .IsClosed}}
     6  			{{if .PullRequest.HasMerged}}
     7  				{{svg "octicon-git-merge" 16 "text purple"}}
     8  			{{else}}
     9  				{{svg "octicon-git-pull-request" 16 "text red"}}
    10  			{{end}}
    11  		{{else}}
    12  			{{if .PullRequest.IsWorkInProgress ctx}}
    13  				{{svg "octicon-git-pull-request-draft" 16 "text grey"}}
    14  			{{else}}
    15  				{{svg "octicon-git-pull-request" 16 "text green"}}
    16  			{{end}}
    17  		{{end}}
    18  	{{end}}
    19  {{else}}
    20  	{{if .IsClosed}}
    21  		{{svg "octicon-issue-closed" 16 "text red"}}
    22  	{{else}}
    23  		{{svg "octicon-issue-opened" 16 "text green"}}
    24  	{{end}}
    25  {{end}}