code.gitea.io/gitea@v1.22.3/templates/repo/code/recently_pushed_new_branches.tmpl (about)

     1  {{range .RecentlyPushedNewBranches}}
     2  	<div class="ui positive message tw-flex tw-items-center tw-gap-2">
     3  		<div class="tw-flex-1 tw-break-anywhere">
     4  			{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
     5  			{{$branchLink := HTMLFormat `<a href="%s">%s</a>` .BranchLink .BranchDisplayName}}
     6  			{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}
     7  		</div>
     8  		<a role="button" class="ui compact green button tw-m-0" href="{{.BranchCompareURL}}">
     9  			{{ctx.Locale.Tr "repo.pulls.compare_changes"}}
    10  		</a>
    11  	</div>
    12  {{end}}