Skip to content

Commit 81e7454

Browse files
Merge branch 'master' into update-logo-svg
2 parents 855acc5 + c3fc190 commit 81e7454

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

models/action.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"time"
1414

1515
"code.gitea.io/gitea/modules/base"
16+
"code.gitea.io/gitea/modules/git"
1617
"code.gitea.io/gitea/modules/log"
1718
"code.gitea.io/gitea/modules/setting"
1819
"code.gitea.io/gitea/modules/timeutil"
@@ -238,7 +239,7 @@ func (a *Action) getCommentLink(e Engine) string {
238239

239240
// GetBranch returns the action's repository branch.
240241
func (a *Action) GetBranch() string {
241-
return a.RefName
242+
return strings.TrimPrefix(a.RefName, git.BranchPrefix)
242243
}
243244

244245
// GetContent returns the action's content.

templates/repo/projects/view.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
</div>
161161
<div class="extra content">
162162
{{ range .Labels }}
163-
<a class="ui label has-emoji" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description}}">{{.Name}}</a>
163+
<a class="ui label" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
164164
{{ end }}
165165
</div>
166166
</div>

0 commit comments

Comments
 (0)