mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Fix "stop time tracking button" on navbar (#33084)
Fix #33083 By the way (something I was working on): 1. relax color/background-color for more markup elements 2. fix a command line sentence error
This commit is contained in:
		| @@ -18,7 +18,7 @@ import ( | ||||
| var CmdMigrate = &cli.Command{ | ||||
| 	Name:        "migrate", | ||||
| 	Usage:       "Migrate the database", | ||||
| 	Description: "This is a command for migrating the database, so that you can run gitea admin create-user before starting the server.", | ||||
| 	Description: `This is a command for migrating the database, so that you can run "gitea admin create user" before starting the server.`, | ||||
| 	Action:      runMigrate, | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -48,7 +48,7 @@ func (st *Sanitizer) createDefaultPolicy() *bluemonday.Policy { | ||||
| 	policy.AllowAttrs("class").Matching(regexp.MustCompile(`^(unchecked|checked|indeterminate)$`)).OnElements("li") | ||||
|  | ||||
| 	// Allow 'color' and 'background-color' properties for the style attribute on text elements. | ||||
| 	policy.AllowStyles("color", "background-color").OnElements("span", "p") | ||||
| 	policy.AllowStyles("color", "background-color").OnElements("div", "span", "p", "tr", "th", "td") | ||||
|  | ||||
| 	policy.AllowAttrs("src", "autoplay", "controls").OnElements("video") | ||||
|  | ||||
|   | ||||
| @@ -192,7 +192,7 @@ | ||||
| 					<span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span> | ||||
| 				</a> | ||||
| 				<div class="tw-flex tw-gap-1"> | ||||
| 					<form class="stopwatch-commit" method="post" action="{{.ActiveStopwatch.IssueLink}}/times/stopwatch/toggle"> | ||||
| 					<form class="stopwatch-commit form-fetch-action" method="post" action="{{.ActiveStopwatch.IssueLink}}/times/stopwatch/toggle"> | ||||
| 						{{.CsrfTokenHtml}} | ||||
| 						<button | ||||
| 							type="submit" | ||||
| @@ -200,7 +200,7 @@ | ||||
| 							data-tooltip-content="{{ctx.Locale.Tr "repo.issues.stop_tracking"}}" | ||||
| 						>{{svg "octicon-square-fill"}}</button> | ||||
| 					</form> | ||||
| 					<form class="stopwatch-cancel" method="post" action="{{.ActiveStopwatch.IssueLink}}/times/stopwatch/cancel"> | ||||
| 					<form class="stopwatch-cancel form-fetch-action" method="post" action="{{.ActiveStopwatch.IssueLink}}/times/stopwatch/cancel"> | ||||
| 						{{.CsrfTokenHtml}} | ||||
| 						<button | ||||
| 							type="submit" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user