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
wxiaoguang 6886706f5a
Fix broken code editor diff preview (#23307)
Close #23265, the code editor diff preview has been broken for long
time.

* Fix the regression for `data-line-num`
    * `.code-diff` is necessary to show the line number
* Fix the regression for #12434
* The diff:
[12434](https://github.com/go-gitea/gitea/pull/12434/files?diff=unified&w=1)
    * It hides the Type(4) (aka HunkHeader)  for unexpected cases.


Diff with ignoring whitespaces:
https://github.com/go-gitea/gitea/pull/23307/files?diff=unified&w=1

Before: see the issue #23265

After:

![image](https://user-images.githubusercontent.com/2114189/222942810-286dc9af-0b39-4e9d-8585-8c299b881241.png)
2 years ago
..
admin Fix missed `.hide` class (#23208) 2 years ago
api/packages/pypi Add Package Registry (#16510) 3 years ago
base Fix various bugs for "install" page (#23194) 2 years ago
code Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Add context cache as a request level cache (#22294) 2 years ago
mail Revert relative links to absolute links in mail templates (#23267) 2 years ago
org Hide 2FA status from other members in organization members list (#22999) 2 years ago
package Fix nil context in RenderMarkdownToHtml (#23092) 2 years ago
projects Add context when rendering labels or emojis (#23281) 2 years ago
repo Fix broken code editor diff preview (#23307) 2 years ago
shared Add context when rendering labels or emojis (#23281) 2 years ago
status Move helpers to be prefixed with `gt-` (#22879) 2 years ago
swagger Add "Reviewed by you" filter for pull requests (#22927) 2 years ago
user Add context when rendering labels or emojis (#23281) 2 years ago
home.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
install.tmpl Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
post-install.tmpl Fix various bugs for "install" page (#23194) 2 years ago