Skip to content

Commit

Permalink
Merge branch 'master' into update-logo-svg
Browse files Browse the repository at this point in the history
  • Loading branch information
techknowlogick committed Dec 14, 2020
2 parents 855acc5 + c3fc190 commit 81e7454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion models/action.go
Expand Up @@ -13,6 +13,7 @@ import (
"time"

"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/timeutil"
Expand Down Expand Up @@ -238,7 +239,7 @@ func (a *Action) getCommentLink(e Engine) string {

// GetBranch returns the action's repository branch.
func (a *Action) GetBranch() string {
return a.RefName
return strings.TrimPrefix(a.RefName, git.BranchPrefix)
}

// GetContent returns the action's content.
Expand Down
2 changes: 1 addition & 1 deletion templates/repo/projects/view.tmpl
Expand Up @@ -160,7 +160,7 @@
</div>
<div class="extra content">
{{ range .Labels }}
<a class="ui label has-emoji" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description}}">{{.Name}}</a>
<a class="ui label" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a>
{{ end }}
</div>
</div>
Expand Down

0 comments on commit 81e7454

Please sign in to comment.