mirror of
1
Fork 0
forgejo/templates/repo
forgejo-backport-action bdb78d42b6 [v10.0/forgejo] ui: update language stats layout and click behavior (#6854)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/6700

Fix regression of https://codeberg.org/forgejo/forgejo/pulls/6344. It was reported by @Beowulf.

JS toggle [used](49c5102b40/templates/repo/sub_menu.tmpl (L38)) a selector which was broken by that PR, which caused the legend to appear separately instead of replacing the primary repo info.

## Changes

* use clear IDs `language-stats-bar` and `language-stats-legend`
* add simple e2e test

Instead of restoring the previous behavior, I moved the legend under the stats bar. To me it didn't make a lot of sense in the first place to replace the information in the primary bar with with completely different information. It did not save much space either.

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6854
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-02-08 13:52:03 +00:00
..
actions Fix incomplete Actions status aggregations (#32859) 2024-12-22 08:46:38 +01:00
branch [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
cite ui: fix go to citation button url (#4597) 2024-08-22 15:36:12 +00:00
code [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
diff Fix editing pr review 2025-01-01 17:54:01 +00:00
editor [v10.0/forgejo] fix(i18n): add forgotten translatable string (#6718) 2025-01-29 08:28:25 +00:00
find
graph [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
issue Fix edit cancel button 2024-12-31 02:11:08 +00:00
migrate ui: refactor repo migration items 2024-07-27 16:35:48 +05:00
projects
pulls Improve diff stats bar (#30669) 2024-04-28 15:39:01 +02:00
release [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
settings feat: allow changing default branch update style 2024-12-23 18:55:25 +03:00
tag [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
wiki Cap wiki search width at 80% container width 2024-11-25 09:51:26 +01:00
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 ui(blame): remove broken padding (#4318) 2024-07-04 11:46:31 +00:00
branch_dropdown.tmpl Revert "add gap between branch dropdown and PR button" 2024-10-21 15:21:44 +02:00
clone_buttons.tmpl
clone_script.tmpl
code_frequency.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl [v10.0/forgejo] fix(ui): display verified icon for default gpg key (#6833) 2025-02-07 13:16:23 +00:00
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01: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 Add "n commits" link to contributors in contributors graph page (#32799) 2024-12-15 13:21:02 +01:00
create.tmpl New repo: Rework initialization 2024-12-29 13:23:30 +00:00
create_advanced.tmpl New repo: Rework advanced and template sections 2024-12-29 13:23:30 +00:00
create_basic.tmpl New repo: Rework advanced and template sections 2024-12-29 13:23:30 +00:00
create_from_template.tmpl New repo: Rework advanced and template sections 2024-12-29 13:23:30 +00:00
create_helper.tmpl
create_init.tmpl New repo: Rework initialization 2024-12-29 13:23:30 +00:00
empty.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
file_info.tmpl [UI] Adjust trailing EOL behavior for empty file 2024-08-19 20:23:15 +02:00
flags.tmpl
forks.tmpl
graph.tmpl ui: improve commit graph layout 2024-09-17 17:33:00 +02:00
header.tmpl ui: simplify main-attribute labels 2024-12-08 17:30:52 +05:00
header_fork.tmpl
home.tmpl feat: filepath filter for code search (#6143) 2024-12-22 12:24:29 +00:00
icon.tmpl
latest_commit.tmpl fix: enlargen gap between avatar and name 2024-08-14 17:19:23 +02:00
navbar.tmpl
packages.tmpl
pulse.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
recent_commits.tmpl
release_tag_header.tmpl feat: Add Search to Releases Page 2024-11-02 10:24:35 +01:00
search.tmpl ui(code-search): fix to use CodeSearchMode 2024-09-16 16:20:55 +02:00
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl [v10.0/forgejo] ui: update language stats layout and click behavior (#6854) 2025-02-08 13:52:03 +00:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
view_file.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
view_list.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
watch_unwatch.tmpl
watchers.tmpl