0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/templates/repo/settings
Panagiotis "Ivory" Vasilopoulos 103306f00c UI: Disable internal wiki options when enabling external wiki
Using "data-target", it is possible to set a value to a target element
that can enable it or disable it. Using "data-context" lets us perform
the opposite action on a different target.

Before, only the #external_wiki_box target was used, which was enabled
or disabled depending on whether the user has chosen to use the internal
wiki or the external wiki. If the user chooses to use the internal wiki,
they will disable the box that lets them enter a link pointing to an
external wiki, and vice versa. Although it is not possible to use, say,
boolean operations, we can introduce a target that is
called #globally_writeable_checkbox that gets enabled when
the #external_wiki_box box is disabled, and vice versa.

This makes the box's behavior more consistent with the behavior in the
"Issues" section. To keep things consistent with that section, a new
property was assigned to the "globally_writeable_checkbox" that makes
the box go a bit further in (`tw-pl-4`).
2024-04-29 20:29:00 +02:00
..
units UI: Disable internal wiki options when enabling external wiki 2024-04-29 20:29:00 +02:00
webhook move webhook/settings file around 2024-04-16 08:59:11 +02:00
actions.tmpl
branches.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
collaboration.tmpl Fix incorrect tailwind migration (#30007) 2024-03-26 19:04:27 +01:00
deploy_keys.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
githook_edit.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
githooks.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
layout_footer.tmpl
layout_head.tmpl
lfs.tmpl [UI] Fix primary button background inconsistency 2024-04-03 19:52:36 +05:00
lfs_file.tmpl Fix border-radius on view, blame and code search (#30545) 2024-04-21 16:28:16 +02:00
lfs_file_find.tmpl fix(lfs): gogit /settings/lfs/find 500 error (#3472) 2024-04-26 09:22:09 +00:00
lfs_locks.tmpl
lfs_pointers.tmpl Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01:00
navbar.tmpl
options.tmpl replaced link to gitea docu 2024-04-27 23:27:57 +02:00
protected_branch.tmpl Merge pull request '[FEAT] Configure if protected branch rule should apply to admins' (#2867) from gusted/forgejo-protectedbranch-admins into forgejo 2024-04-01 19:28:29 +00:00
push_mirror_sync_modal.tmpl
runner_edit.tmpl
secrets.tmpl
tags.tmpl Replace 10 more gt- classes with tw- (#29945) 2024-03-26 19:04:27 +01:00
units.tmpl