forgejo/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
2019-06-26 22:35:07 +01:00
..
branch Number of commits ahead/behind in branch overview (#6695) 2019-05-05 19:25:25 +03:00
diff fix extra newlines when copying from diff in Firefox (#7288) 2019-06-26 22:35:07 +01:00
editor Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 2019-04-17 12:06:35 -04:00
issue Fix input size for dependency select (#6913) 2019-05-12 14:10:12 +03:00
pulls Compare branches, commits and tags with each other (#6991) 2019-06-07 16:29:29 -04:00
release Properly escape release attachment URL (#6512) 2019-04-05 11:28:10 -04:00
settings Repository avatars (#6986) 2019-05-29 22:22:26 -04:00
wiki Improve issue autolinks (#6273) 2019-04-12 08:53:34 +03:00
activity.tmpl Improve localization of git activity stats (#6848) 2019-05-04 23:32:37 +03:00
blame.tmpl Add option to blame files (#5721) 2019-04-19 22:47:00 -04:00
branch_dropdown.tmpl
commit_page.tmpl Compare branches, commits and tags with each other (#6991) 2019-06-07 16:29:29 -04:00
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits.tmpl
commits_table.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
create.tmpl Add more title attributes on shortened names (#6647) 2019-04-17 10:49:56 -04:00
empty.tmpl Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
forks.tmpl
graph.tmpl
header.tmpl Repository avatars (#6986) 2019-05-29 22:22:26 -04:00
home.tmpl Add option to blame files (#5721) 2019-04-19 22:47:00 -04:00
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
search.tmpl
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 2019-04-02 08:41:19 +08:00
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
view_file.tmpl Order file actions equal to GitHub (#6706) 2019-04-24 12:53:57 +08:00
view_list.tmpl UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
watchers.tmpl