forgejo/modules/setting
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
..
config
actions.go [CI] DEFAULT_ACTIONS_URL = https://code.forgejo.org 2024-01-08 13:37:00 +01:00
actions_test.go [CI] DEFAULT_ACTIONS_URL = https://code.forgejo.org 2024-01-08 13:37:00 +01:00
admin.go [GITEA] notifies admins on new user registration 2024-01-08 16:55:44 +01:00
api.go
asset_dynamic.go
asset_static.go
attachment.go Fix incorrect default value of [attachment].MAX_SIZE (#28373) 2023-12-06 10:59:56 -05:00
attachment_test.go
badges.go [GITEA] Add support for shields.io-based badges 2024-01-08 17:12:01 +01:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
camo.go
config.go
config_env.go
config_env_test.go
config_provider.go [GITEA] add GetFile to config provider 2024-01-08 14:01:18 +01:00
config_provider_test.go
cors.go Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
cron.go
cron_test.go
database.go [GITEA] Add slow SQL query warning 2024-01-08 16:52:44 +01:00
database_sqlite.go
database_test.go Fix panic when parsing empty pgsql host (#28708) 2024-01-06 17:30:03 +08:00
federation.go
forgejo_storage_test.go [TESTS] verify facts for the admin storage documentation 2024-01-08 14:01:18 +01:00
git.go
git_test.go
highlight.go
i18n.go
incoming_email.go
indexer.go
indexer_test.go
lfs.go
lfs_test.go
log.go
log_test.go
mailer.go
mailer_test.go
markup.go
metrics.go
migrations.go
mime_type_map.go
mirror.go
oauth2.go Normalize oauth email username (#28561) 2024-01-03 18:48:20 -06:00
other.go
packages.go
packages_test.go
path.go
path_test.go
picture.go
project.go
proxy.go
queue.go
repository.go [FEAT] Repository flags 2024-01-09 13:13:15 +01:00
repository_archive.go
repository_archive_test.go
security.go [GITEA] Revert "Deprecate query string auth tokens (#28390)" 2024-01-08 17:05:47 +01:00
server.go Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
service.go [GITEA] add option for banning dots in usernames 2024-01-08 16:52:44 +01:00
service_test.go
session.go
setting.go [GITEA] Add support for shields.io-based badges 2024-01-08 17:12:01 +01:00
setting_test.go
ssh.go
storage.go
storage_test.go
task.go
time.go
ui.go Add global setting how timestamps should be rendered (#28657) 2024-01-02 09:25:30 +08:00
webhook.go