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
silverwind da23041257 fix extra newlines when copying from diff in Firefox (#7288)
* fix extra newlines when copying from diff

See https://bugzilla.mozilla.org/show_bug.cgi?id=1273836

Basically, the <pre><code> seems to add a forced newline that is not
possible to get rid of via CSS, so I replaced it with just a <code>.

Secondly, .lines-type-marker also forced a newline in the copied text,
but that was possible to get rid of via user-select.

Safari still has a extraneous newline in the copied text of unknown
origin, but this should not block stop this PR.

* simplify .line-type-marker

* fix selector

* remove erronous ^^^

* Fix empty split diff

* Fix arc-theme-green

* fix add comment

* ensure line-num is copied too

* Update templates/repo/diff/box.tmpl

Co-Authored-By: zeripath <art27@cantab.net>

* attempt to fix safari via removing <code>

* remove useless whitespace at the end of 'class'

* remove inter-tag whitespace for code <td>s

* more inter-tag removal

* final inter-tag removal

* attempt to fix empty line copy

* move and comment getLineContent

* fix golint

* make background grey for missing added code
6 years ago
..
branch Number of commits ahead/behind in branch overview (#6695) 6 years ago
diff fix extra newlines when copying from diff in Firefox (#7288) 6 years ago
editor Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 6 years ago
issue Fix input size for dependency select (#6913) 6 years ago
pulls Compare branches, commits and tags with each other (#6991) 6 years ago
release Properly escape release attachment URL (#6512) 6 years ago
settings Repository avatars (#6986) 6 years ago
wiki Improve issue autolinks (#6273) 6 years ago
activity.tmpl Improve localization of git activity stats (#6848) 6 years ago
blame.tmpl Add option to blame files (#5721) 6 years ago
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 7 years ago
commit_page.tmpl Compare branches, commits and tags with each other (#6991) 6 years ago
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 6 years ago
commits.tmpl Responsive view (#2750) 7 years ago
commits_table.tmpl UI: Fix overflow issues in repo (#7190) 6 years ago
create.tmpl Add more title attributes on shortened names (#6647) 6 years ago
empty.tmpl Feature: Archive repos (#5009) 6 years ago
forks.tmpl #3348 always use relative avatar link in the template 9 years ago
graph.tmpl Fix issue link rendering in commit messages (#2897) 7 years ago
header.tmpl Repository avatars (#6986) 6 years ago
home.tmpl Add option to blame files (#5721) 6 years ago
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 6 years ago
search.tmpl Don't warn users about *every* dirty form (#3707) 7 years ago
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 6 years ago
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 6 years ago
view_file.tmpl Order file actions equal to GitHub (#6706) 6 years ago
view_list.tmpl UI: Fix overflow issues in repo (#7190) 6 years ago
watchers.tmpl #1692 APIs: Users Followers 9 years ago