You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo
wxiaoguang fba7150ca9
Refactor "shortsha" (#26877)
The old code used complex `if` blocks and strange HTML layouts.

<details>


![image](https://github.com/go-gitea/gitea/assets/2114189/7fbee2b8-d150-4e6b-b67e-83400fa290eb)

</details>

This PR refactors the template code and remove legacy CSS styles. The UI
doesn't change much.



![image](https://github.com/go-gitea/gitea/assets/2114189/3e195df9-0ab5-4182-bcb2-bb20cad823f2)


![image](https://github.com/go-gitea/gitea/assets/2114189/f707a49f-be41-4dfe-871f-2869f2230380)
1 year ago
..
actions Minor dashboard tweaks, fix flex-list margins (#26829) 1 year ago
branch Refactor some CSS styles and simplify code (#26771) 1 year ago
cite Button and color enhancements (#24989) 2 years ago
code Fix template bugs in recently_pushed_new_branches.tmpl (#26744) 1 year ago
diff Remove "TODO" tasks from CSS file (#26835) 1 year ago
editor Fix incorrect "tabindex" attributes (#26733) 1 year ago
find Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
graph Refactor "shortsha" (#26877) 1 year ago
issue Enable djlint H008 and fix issues (#26869) 1 year ago
migrate Use docs.gitea.com instead of docs.gitea.io (#26739) 1 year ago
projects Remove polluted `.ui.right` (#26825) 1 year ago
pulls Use template context function for avatar rendering (#26385) 2 years ago
release Remove polluted `.ui.right` (#26825) 1 year ago
settings Minor dashboard tweaks, fix flex-list margins (#26829) 1 year ago
tag Enable H014 and H023 djlint rules (#25786) 2 years ago
wiki Remove polluted `.ui.right` (#26825) 1 year ago
activity.tmpl Replace fomantic divider module with our own (#25539) 2 years ago
blame.tmpl Add template linting via djlint (#25212) 2 years ago
branch_dropdown.tmpl Add default label in branch select list (#26697) 1 year ago
clone_buttons.tmpl Remove some transition related code (#26755) 1 year ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_load_branches_and_tags.tmpl Remove commit load branches and tags in wiki repo (#26304) 2 years ago
commit_page.tmpl Use template context function for avatar rendering (#26385) 2 years ago
commit_status.tmpl Remove commit status running and warning from the dashboard repo list (#26036) 2 years ago
commit_statuses.tmpl Button and color enhancements (#24989) 2 years ago
commits.tmpl Fix some UI alignments (#25277) 2 years ago
commits_list.tmpl Refactor "shortsha" (#26877) 1 year ago
commits_list_small.tmpl Remove polluted `.ui.right` (#26825) 1 year ago
commits_table.tmpl Remove ref name in PR commits page (#25876) 1 year ago
create.tmpl Fix incorrect "tabindex" attributes (#26733) 1 year ago
create_helper.tmpl Add templates to customize text when creating and migrating repositories 2 years ago
empty.tmpl Repository Archived text title center align (#25767) 2 years ago
file_info.tmpl Show image size on view page (#25884) 2 years ago
forks.tmpl Use template context function for avatar rendering (#26385) 2 years ago
graph.tmpl Replace remaining fontawesome dropdown icons with SVG (#24455) 2 years ago
header.tmpl Remove unnecessary template helper repoAvatar (#26387) 2 years ago
home.tmpl Render code blocks in repo description (#26830) 1 year ago
icon.tmpl Refactor some CSS styles and simplify code (#26771) 1 year ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2 years ago
release_tag_header.tmpl Remove polluted `.ui.right` (#26825) 1 year ago
search.tmpl Refactor some CSS styles and simplify code (#26771) 1 year ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl Use template context function for avatar rendering (#26385) 2 years ago
sub_menu.tmpl Improve repo sub menu (#26531) 1 year ago
unicode_escape_prompt.tmpl Make confusable character warning less jarring (#25069) 2 years ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 3 years ago
user_cards.tmpl Use template context function for avatar rendering (#26385) 2 years ago
view_file.tmpl fix generated source URL on rendered files (#26364) 2 years ago
view_list.tmpl Refactor "shortsha" (#26877) 1 year ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago