0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-07 14:18:30 -05:00
forgejo/templates/repo
Gergely Nagy d3186ee5f4
[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>
(cherry picked from commit ba735ce222)
(cherry picked from commit f09f6e029b)
(cherry picked from commit 2f8b041489)
2024-01-28 10:58:28 +01:00
..
actions
branch
cite
code
diff [GITEA] pulls: "Edit File" button in "Files Changed" tab 2024-01-28 10:55:00 +01:00
editor [GITEA] Allow user to select email for file operations in Web UI 2024-01-28 10:54:59 +01:00
find
graph
issue Don't reload timeline page when (un)resolving or replying conversation (#28654) 2024-01-24 03:26:28 +00:00
migrate [SHARED] make confirmation clearer for dangerous actions 2024-01-28 08:19:26 +01:00
projects
pulls
release Fix hardcoded GitHub icon used as migrated release avatar (#28910) 2024-01-24 01:07:13 +00:00
settings [GITEA] Optionally allow anyone to edit Wikis 2024-01-28 10:54:59 +01:00
tag
wiki [GITEA] Add cancel button to wiki 2024-01-28 10:54:58 +01:00
activity.tmpl Render code block in activity tab (#28816) 2024-01-16 22:38:09 +08:00
admin_flags.tmpl [FEAT] Repository flags 2024-01-28 10:58:28 +01:00
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl [GITEA] Configurable clone methods 2024-01-28 10:55:00 +01:00
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl [GITEA] Detect file rename and show in history 2024-01-28 10:48:05 +01:00
commits_list.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
commits_list_small.tmpl
commits_table.tmpl
create.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
create_helper.tmpl
empty.tmpl
file_info.tmpl Show in Web UI if file is vendored and generated (#28620) 2024-01-24 13:51:37 +08:00
flags.tmpl [FEAT] Repository flags 2024-01-28 10:58:28 +01:00
forks.tmpl
graph.tmpl
header.tmpl [FEAT] Repository flags 2024-01-28 10:58:28 +01:00
home.tmpl [FEAT] Repository flags 2024-01-28 10:58:28 +01:00
icon.tmpl
latest_commit.tmpl
packages.tmpl
release_tag_header.tmpl
search.tmpl
search_name.tmpl
shabox_badge.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl [GITEA] Disable the RSS feed in file view for non-branches 2024-01-28 10:58:19 +01:00
view_list.tmpl
watchers.tmpl