0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 02:14:06 -05:00
forgejo/templates/repo
0ko fc0c5e80da Fix and improve repo visibility checkbox when FORCE_PRIVATE is on (#3786)
This was [implemented](022820103d) almost 10 years ago in Gogs.

It was using `readonly` attribute instead of `disabled` on checkbox which was doing nothing. According to [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly), `readonly` attribute is not applicable to checkbox inputs. This bug was reported by mrwusel in Matrix room.
Fork page that has similar UI feature did not have this bug.

- replace `readonly` with `disabled`
- do not put info about the restriction directly into the checkbox title

### Before
![image](/attachments/6adaf1a3-6e28-416a-ac85-aa6e570e438d)

### After
![image](/attachments/3590b02b-3c83-4864-bae8-ff1a6a56b2b0)

### In other case
![image](/attachments/7f49d84d-5b3a-43a1-b09c-fb6089c1fb5e)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3786
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
2024-05-16 05:51:55 +00:00
..
actions UI: Actions: Replace runs list description semicolon 2024-04-29 21:05:20 +02:00
branch Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
cite
code
diff Expand code diffs against the commits repo 2024-05-14 10:25:28 +02:00
editor Convert max file name length to 255 (#30489) 2024-04-21 11:53:41 +02:00
find
graph
issue Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
migrate Fix and improve repo visibility checkbox when FORCE_PRIVATE is on (#3786) 2024-05-16 05:51:55 +00:00
projects
pulls Improve diff stats bar (#30669) 2024-04-28 15:39:01 +02:00
release [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
settings Improve translatability of "Transfer ownership" (#3739) 2024-05-13 18:22:16 +00:00
tag
wiki
activity.tmpl Show repo activities even if only code unit active or git repo is empty but issue is active (#3455) 2024-04-28 13:47:52 +00:00
admin_flags.tmpl
blame.tmpl Fix border-radius on view, blame and code search (#30545) 2024-04-21 16:28:16 +02:00
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl [PORT] gitea#30396: Fix author name alignment in commits table 2024-04-15 20:09:34 +02:00
commits_list_small.tmpl Fix some UI regressions for commit list (#30920) 2024-05-12 20:03:10 +02:00
commits_search_dropdown.tmpl
commits_table.tmpl
contributors.tmpl
create.tmpl Fix and improve repo visibility checkbox when FORCE_PRIVATE is on (#3786) 2024-05-16 05:51:55 +00:00
create_helper.tmpl
empty.tmpl
file_info.tmpl Remove obsolete CSS text classes (#30576) 2024-04-28 15:39:00 +02:00
flags.tmpl
forks.tmpl
graph.tmpl
header.tmpl CB/tmpl: Modify icon for add more button 2024-04-30 01:17:18 +02:00
header_fork.tmpl
home.tmpl [FEAT] support searching non default branches/tags when using git-grep (#3654) 2024-05-14 15:41:03 +00:00
icon.tmpl
latest_commit.tmpl
navbar.tmpl
packages.tmpl
pulse.tmpl Pulse page improvements (#30149) 2024-04-21 11:08:33 +02:00
recent_commits.tmpl
release_tag_header.tmpl
search.tmpl
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Fix border-radius on view, blame and code search (#30545) 2024-04-21 16:28:16 +02:00
view_list.tmpl Fix view of readme file in the home code page. (#30564) 2024-04-28 15:39:01 +02:00
watch_unwatch.tmpl
watchers.tmpl