0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-28 16:14:41 +01:00
gitea/templates/repo
Jason Song f9072dbf3c
Hide code links on release page if user cannot read code (#29064)
On the release list page, if the user doesn't have the permission to
read code, the code links will lead to 404 pages or api errors:

<img width="1297" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/a74fbc63-6dd6-43c6-853c-28acdbfdcb4e">


After this PR:

<img width="1297" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/a626373d-c2df-40a9-8fed-1b12ff6bc56f">

And this PR also removed some dead code. After #23465, the tag list page
has an independent template, and all `IsTag` in the release list
template are always false.
2024-02-06 19:57:25 +08:00
..
actions
branch Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
cite
code
diff Fix default avatar image size in PR diff page (#28971) 2024-02-02 10:01:11 +00:00
editor Preserve BOM in web editor (#28935) 2024-01-27 18:02:51 +00:00
find
graph Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
issue Fix default avatar image size in PR diff page (#28971) 2024-02-02 10:01:11 +00:00
migrate Fix duplicate ID when deleting repo (#28520) 2023-12-19 04:40:05 +00:00
projects
pulls
release Hide code links on release page if user cannot read code (#29064) 2024-02-06 19:57:25 +08:00
settings Remove useless template file (#29053) 2024-02-05 09:23:08 +00:00
tag
wiki
activity.tmpl Render code block in activity tab (#28816) 2024-01-16 22:38:09 +08:00
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
commit_load_branches_and_tags.tmpl Wrap contained tags and branches again (#29021) 2024-02-02 04:51:09 +00:00
commit_page.tmpl Update JS and PY dependencies, build for es2020 browsers (#28977) 2024-02-02 09:36:32 +00:00
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
commits_list_small.tmpl Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
commits_table.tmpl
create.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
create_helper.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
empty.tmpl
file_info.tmpl Show in Web UI if file is vendored and generated (#28620) 2024-01-24 13:51:37 +08:00
forks.tmpl
graph.tmpl
header.tmpl Don't do a full page load when clicking Watch or Star (#29001) 2024-02-05 09:56:20 +00:00
home.tmpl
icon.tmpl
latest_commit.tmpl Show latest commit for file (#28067) 2024-01-15 17:42:15 +01:00
packages.tmpl
release_tag_header.tmpl
search.tmpl Fix 500 error of searching commits (#28576) 2023-12-21 23:09:14 +00:00
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl Don't do a full page load when clicking Watch or Star (#29001) 2024-02-05 09:56:20 +00:00
sub_menu.tmpl
unicode_escape_prompt.tmpl Fix incorrect button CSS usages (#29015) 2024-02-01 21:28:50 +00:00
upload.tmpl
user_cards.tmpl
view_file.tmpl Fix incorrect button CSS usages (#29015) 2024-02-01 21:28:50 +00:00
view_list.tmpl Show latest commit for file (#28067) 2024-01-15 17:42:15 +01:00
watch_unwatch.tmpl Don't do a full page load when clicking Watch or Star (#29001) 2024-02-05 09:56:20 +00:00
watchers.tmpl