0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 20:35:26 +01:00
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)
2023-09-03 02:58:52 +00:00
..
actions Minor dashboard tweaks, fix flex-list margins (#26829) 2023-08-31 21:28:45 +00:00
branch
cite
code
diff Remove "TODO" tasks from CSS file (#26835) 2023-08-31 10:49:53 +00:00
editor
find
graph Refactor "shortsha" (#26877) 2023-09-03 02:58:52 +00:00
issue Enable djlint H008 and fix issues (#26869) 2023-09-01 17:32:39 +00:00
migrate
projects Remove polluted .ui.right (#26825) 2023-08-31 02:29:59 +00:00
pulls
release Remove polluted .ui.right (#26825) 2023-08-31 02:29:59 +00:00
settings Minor dashboard tweaks, fix flex-list margins (#26829) 2023-08-31 21:28:45 +00:00
tag
wiki Remove polluted .ui.right (#26825) 2023-08-31 02:29:59 +00:00
activity.tmpl
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits_list_small.tmpl Remove polluted .ui.right (#26825) 2023-08-31 02:29:59 +00:00
commits_list.tmpl Refactor "shortsha" (#26877) 2023-09-03 02:58:52 +00:00
commits_table.tmpl
commits.tmpl
create_helper.tmpl
create.tmpl
empty.tmpl
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl
home.tmpl Render code blocks in repo description (#26830) 2023-08-31 05:01:01 +00:00
icon.tmpl
packages.tmpl
release_tag_header.tmpl Remove polluted .ui.right (#26825) 2023-08-31 02:29:59 +00:00
search_name.tmpl
search.tmpl
shabox_badge.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl Refactor "shortsha" (#26877) 2023-09-03 02:58:52 +00:00
watchers.tmpl