forgejo/templates/repo
Gergely Nagy ba735ce222
[FEAT] Repository flags
This implements "repository flags", a way for instance administrators to
assign custom flags to repositories. The idea is that custom templates
can look at these flags, and display banners based on them, Forgejo does
not provide anything built on top of it, just the foundation. The
feature is optional, and disabled by default. To enable it, set
`[repository].ENABLE_FLAGS = true`.

On the UI side, instance administrators will see a new "Manage flags"
tab on repositories, and a list of enabled tags (if any) on the
repository home page. The "Manage flags" page allows them to remove
existing flags, or add any new ones that are listed in
`[repository].SETTABLE_FLAGS`.

The model does not enforce that only the `SETTABLE_FLAGS` are present.
If the setting is changed, old flags may remain present in the database,
and anything that uses them, will still work. The repository flag
management page will allow an instance administrator to remove them, but
not set them, once removed.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-01-09 13:13:15 +01:00
..
actions Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359) 2023-12-06 01:13:59 +00:00
branch
cite
code
diff [GITEA] pulls: "Edit File" button in "Files Changed" tab 2024-01-08 17:05:48 +01:00
editor [GITEA] Allow user to select email for file operations in Web UI 2024-01-08 17:05:47 +01:00
find
graph
issue [GITEA] Fix issue card links on projects 2024-01-08 16:55:58 +01:00
migrate [SHARED] make confirmation clearer for dangerous actions 2024-01-08 14:01:19 +01:00
projects Use full width for project boards (#28225) 2023-11-27 17:43:52 +00:00
pulls Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
release Fix missing buttons (#28179) 2023-11-23 11:36:52 +01:00
settings [GITEA] Optionally allow anyone to edit Wikis 2024-01-08 17:05:48 +01:00
tag
wiki [GITEA] Add cancel button to wiki 2024-01-08 17:03:08 +01:00
activity.tmpl
admin_flags.tmpl [FEAT] Repository flags 2024-01-09 13:13:15 +01:00
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl [GITEA] Configurable clone methods 2024-01-08 17:05:48 +01:00
commit_load_branches_and_tags.tmpl
commit_page.tmpl Fix margin in server signed signature verification view (#28379) 2023-12-07 01:51:39 +00:00
commit_status.tmpl
commit_statuses.tmpl Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
commits.tmpl [GITEA] Detect file rename and show in history 2024-01-08 16:59:10 +01:00
commits_list.tmpl Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
commits_list_small.tmpl Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
commits_table.tmpl
create.tmpl
create_helper.tmpl
empty.tmpl
file_info.tmpl
flags.tmpl [FEAT] Repository flags 2024-01-09 13:13:15 +01:00
forks.tmpl
graph.tmpl
header.tmpl [FEAT] Repository flags 2024-01-09 13:13:15 +01:00
home.tmpl [FEAT] Repository flags 2024-01-09 13:13:15 +01:00
icon.tmpl
packages.tmpl
release_tag_header.tmpl Improve RSS feed icons (#28368) 2023-12-06 20:29:26 +00:00
search.tmpl Fix 500 error of searching commits (#28576) 2023-12-21 23:09:14 +00:00
search_name.tmpl
shabox_badge.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Disable the RSS feed in file view for non-branches 2024-01-09 09:32:57 +01:00
view_list.tmpl Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
watchers.tmpl