File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ func Action(ctx *context.Context) {
343
343
case "watch" , "unwatch" :
344
344
ctx .Data ["IsWatchingRepo" ] = repo_model .IsWatching (ctx , ctx .Doer .ID , ctx .Repo .Repository .ID )
345
345
case "star" , "unstar" :
346
- ctx .Data ["IsStaringRepo " ] = repo_model .IsStaring (ctx , ctx .Doer .ID , ctx .Repo .Repository .ID )
346
+ ctx .Data ["IsStarringRepo " ] = repo_model .IsStaring (ctx , ctx .Doer .ID , ctx .Repo .Repository .ID )
347
347
}
348
348
349
349
switch ctx .Params (":action" ) {
Original file line number Diff line number Diff line change 1
- <form hx-boost="true" hx-target="this" method="post" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo }}un{{end}}star">
1
+ <form hx-boost="true" hx-target="this" method="post" action="{{$.RepoLink}}/action/{{if $.IsStarringRepo }}un{{end}}star">
2
2
<div class="ui labeled button" {{if not $.IsSigned}}data-tooltip-content="{{ctx.Locale.Tr "repo.star_guest_user"}}"{{end}}>
3
3
<button type="submit" class="ui compact small basic button"{{if not $.IsSigned}} disabled{{end}}>
4
- {{if $.IsStaringRepo }}
4
+ {{if $.IsStarringRepo }}
5
5
{{svg "octicon-star-fill"}}<span class="text">{{ctx.Locale.Tr "repo.unstar"}}</span>
6
6
{{else}}
7
7
{{svg "octicon-star"}}<span class="text">{{ctx.Locale.Tr "repo.star"}}</span>
You can’t perform that action at this time.
0 commit comments