S32: thread SettingsActive=branches
- SHA
80351da760e1583c8ad78af3178cf82286081ac9- Parents
-
ea1ba9f - Tree
ebbdae0
80351da
80351da760e1583c8ad78af3178cf82286081ac9ea1ba9f
ebbdae0| Status | File | + | - |
|---|---|---|---|
| M |
internal/web/handlers/repo/settings_branches.go
|
7 | 6 |
internal/web/handlers/repo/settings_branches.gomodified@@ -44,12 +44,13 @@ func (h *Handlers) settingsBranches(w http.ResponseWriter, r *http.Request) { | ||
| 44 | 44 | refs, _ := repogit.ListRefs(r.Context(), gitDir) |
| 45 | 45 | |
| 46 | 46 | h.d.Render.RenderPage(w, r, "repo/settings_branches", map[string]any{ |
| 47 | - "Title": "Branch protection · " + row.Name, | |
| 48 | - "CSRFToken": middleware.CSRFTokenForRequest(r), | |
| 49 | - "Owner": owner.Username, | |
| 50 | - "Repo": row, | |
| 51 | - "Rules": rules, | |
| 52 | - "Branches": refs.Branches, | |
| 47 | + "Title": "Branch protection · " + row.Name, | |
| 48 | + "CSRFToken": middleware.CSRFTokenForRequest(r), | |
| 49 | + "Owner": owner.Username, | |
| 50 | + "Repo": row, | |
| 51 | + "Rules": rules, | |
| 52 | + "Branches": refs.Branches, | |
| 53 | + "SettingsActive": "branches", | |
| 53 | 54 | }) |
| 54 | 55 | } |
| 55 | 56 | |