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.
Jonathan Tran 81467e6f35
Display SVG files as images instead of text (#14101)
* Change to display SVG files as images

* Remove unsafe styles from SVG CSP

* Add integration test to test SVG headers

* Add config setting to disable SVG rendering

* Add test for img tag when loading SVG image

* Remove the Raw view button for svg files since we don't fully support this

* Fix copyright year

* Rename and move config setting

* Add setting to cheat sheet in docs

* Fix so that comment matches cheat sheet

* Add allowing styles in CSP based on pull request feedback

* Re-enable raw button since we show SVG styles now

* Change so that SVG files are editable

* Add UI to toggle between source and rendered image for SVGs

* Change to show blame button for SVG images

* Fix to update ctx data

* Add test for DetectContentType when file is longer than sniffLen

Co-authored-by: Jonathan Tran <jon@allspice.io>
Co-authored-by: Kyle D <kdumontnu@gmail.com>
4 years ago
..
branch Replace more icons with SVG, repo search tweaks (#13860) 4 years ago
diff Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
editor Direct avatar rendering (#13649) 4 years ago
graph Direct avatar rendering (#13649) 4 years ago
issue Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
migrate Hide migration failed by default (#14188) 4 years ago
projects Add emoji in label to project boards (#13978) 4 years ago
pulls Show status check for merged PRs (#13975) 4 years ago
release Fix frontpage avatars (#13853) 4 years ago
settings gitea png to logo (#13974) 4 years ago
wiki Consolidate clone button templates (#14023) 4 years ago
activity.tmpl Add class to page content to unify top margin (#13766) 4 years ago
blame.tmpl Fix whitespace rendering in diff (#13415) 4 years ago
branch_dropdown.tmpl Replace more icons with SVG, repo search tweaks (#13860) 4 years ago
clone_buttons.tmpl Consolidate clone button templates (#14023) 4 years ago
commit_page.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commit_status.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commit_statuses.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commits.tmpl Add class to page content to unify top margin (#13766) 4 years ago
commits_list.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commits_list_small.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commits_table.tmpl Fix tooltips and issue dependency styles (#13458) 4 years ago
create.tmpl expose translation of previously hardcoded string (#14087) 4 years ago
empty.tmpl Consolidate clone button templates (#14023) 4 years ago
forks.tmpl Direct avatar rendering (#13649) 4 years ago
graph.tmpl Add class to page content to unify top margin (#13766) 4 years ago
header.tmpl Improve basic button and label styles (#14119) 4 years ago
home.tmpl Consolidate clone button templates (#14023) 4 years ago
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 4 years ago
search.tmpl Search and Diff CSS enhancements (#14050) 4 years ago
shabox_badge.tmpl Fix avatar template error (#13833) 4 years ago
sub_menu.tmpl Search and Diff CSS enhancements (#14050) 4 years ago
upload.tmpl Fix attachments list in edit comment (#13036) 4 years ago
user_cards.tmpl Direct avatar rendering (#13649) 4 years ago
view_file.tmpl Display SVG files as images instead of text (#14101) 4 years ago
view_list.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
watchers.tmpl Add class to page content to unify top margin (#13766) 4 years ago