-
+
-
+ 404
{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404" | Safe}}{{end}}
{{if .NotFoundGoBackURL}}{{ctx.Locale.Tr "go_back"}}{{end}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index edcb90f9a4..30cb255643 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -33,7 +33,10 @@ {{template "base/alert" .}}
+
500
+Internal Server Error
+
{{if .ErrorMsg}}
diff --git a/web_src/css/base.css b/web_src/css/base.css
index 76ecfc9bf5..2620a41a34 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -96,6 +96,16 @@ progress::-moz-progress-bar {
background-color: var(--color-accent);
}
+h1.error-code {
+ font-size: 15em;
+ font-weight: 800;
+ color: transparent;
+ --error-code-color-1: #a2a2a2;
+ --error-code-color-2: #797979;
+ background: repeating-linear-gradient(45deg, var(--error-code-color-1), var(--error-code-color-1) 10px, var(--error-code-color-2) 10px, var(--error-code-color-2) 20px);
+ background-clip: text;
+}
+
* {
scrollbar-color: var(--color-primary) transparent;
caret-color: var(--color-caret);
From a748ba70a8654f7b4260438182cff6c404557519 Mon Sep 17 00:00:00 2001
From: 0ko <0ko@noreply.codeberg.org>
Date: Sun, 25 Feb 2024 18:13:59 +0500
Subject: [PATCH 2/2] 10-year old images are gone
---
public/assets/img/404.png | Bin 4516 -> 0 bytes
public/assets/img/500.png | Bin 5230 -> 0 bytes
tests/integration/compare_test.go | 2 +-
tests/integration/links_test.go | 2 --
4 files changed, 1 insertion(+), 3 deletions(-)
delete mode 100644 public/assets/img/404.png
delete mode 100644 public/assets/img/500.png
diff --git a/public/assets/img/404.png b/public/assets/img/404.png
deleted file mode 100644
index 8b66c971f462dcc37c6b3f33d4a9c35c68a8979d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 4516
zcmZ`+c{J2t|No2`gN%J-EE&sSC@~R|-3T$VWhqT$O*CjRGBk=&LK9`F7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-IwM>2oV@+=;ja2#Wd@{-Zh|81vwal;;ouS4}bCo)~Vp02NOYZ$oWQo0%
zLDQv*?4PaY(DvysgWDZ-f~DBQ0UH}n)AoUvCe9xH9yC;Ud0)q7xLTbZaTnI_
z`nyuKdeu~*2Q1*lZ>dI|eb}S!YH99f^Wn6i^}T{nnc?=$RIPfIk`^7rgV*%;jJ`{-
znd2M2{xjJayd?I$S=i*DCs<94rKM>se;fw7=^+@%sQd_#%;4K7pqKq1Lx=RtsWDZf
zgoIO7B5mZvNQh*Hz(xT*G8gtRvXL6|Wt5Px|F+0Wa-vQPtWC(&X{a_B1fz#u*8(q@
zzlFQ*7byo30^PMVjUl+utYVDR6MwSaZzWLiqW9+_D
zrt8Bf4*$3&nSrDf&?DLJq~AJ+P>jJ#O+Y{JYn#Q)c(ADX0P#8_`H7$ni
zbt+--XnB(lBX0kpO*Ii0sp==kv-iExApLwS^tF
J#LV;3e*jw1gtGtu
diff --git a/public/assets/img/500.png b/public/assets/img/500.png
deleted file mode 100644
index dab69206ad010c4f530df93baba88ab72bf5d1b4..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 5230
zcmZ`-cT`i$yG=qQgchnIHI&c|prUXA2|;>CqzD8lfdFQSAdAmt_kHc9}c
z_a?zYuhN@%=zZbIcH6*v7r_dJvTi70ASM5zHSNt
zfB*mhV498w005xxBOL(%5R#@sC3Q06_LLHM{`;0?(rEJT7P%TG=?>
z--0^an`^P$mV1OBN?p`@w8EVE
z@i
zJ`X>MCLx0-BW#joo_xg<=v)sTETJ%Yv
zTCXs?Ib7?zw-x}vYOix$%`6bO`bh(b2e1HS$88UVNmWY{aZr$S}6&_$DcvEmDQlq`2(eL_l#yjN>t
z2`!!0o_)(QfM$bKm*y8PECT!5S#>kc
z*+(Fj&*Q;Y>d0p{6BF7x$2^*sWdNZUkaym>u>PGh>Y8-~Vj0?s12ue(r%*cP<{wpj
zp`ODNUHvyoDeU7zO`SaMw64lVpkv1`zVGjimF
z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K(}cyMS|L|SpdELe6l&rF!40B>86j!Uq*qguF
zf6lP)2z3FycKE6$A*Di~sYfze)>j^{Mm9WibDF)?H7?qzK3@yndY*byvc?PYGqiVG
ztqc5iliLEOo3U-oOnoZb(eT|7_66|*W>*xLZfa5*_;T8|`o|dP*>|XK*7@gOzb$He
zOI1hja=wivxpaQQ4S<&XNj!GlbVv4KTwr7wpX2ai&L8E=y0n!Ry|KY6DGc|qXj-Ea
z>n|4R_$vZFf%&Vc8vfGtLe&CG<w`iNM
zWkx{h{$zc)%csl6GLAmDv0#yg_jBl9e{OS>*L#P49z|xj^WY9t;j8eK(PLu*o=0rt
zK>FMQihM3tP5mawd`%GAF!lupk`!Ri++9Gv55-i@sc;~O?kRZ`pPy29(?zs>ZZK2-
zkaH5(ZJNBE<
|f+7Ryk3m!Bx``L>!&|@{5kh_E zt}BQ@o~u+;+RX}>=Mi|Q9`QsAK28on3&;5d6#2r0JW>>n8|A@9`y1Hry55n{&^HaQ z<6SDhL#&<52TLobY8IEy{Uv9={d&>$N;PW9H~uZ}(l#Qbmgj0ir2nIN$#VNbR(hnX zV48TUoiLcn%`Sg$Fe--4_;@QfY`z;Kk%oV2q~l6OA?c71ToF`X#hTRKa%{@LC>RK$Jma{=>6|h)fZ6DM6xdOd H~+b{TwE#oDioK$qf zg!*eJul3;9VAim8LniSdB?QsApyyr`%Cz0+dxfSF0)C)2IRAv@zF@G tKZE*wc#{d~!kp-nWL8prKU$)5j%$1Fj(@*vK3}ls&o9 M(J;JTjJ_TAKR8s!S^xk5 diff --git a/tests/integration/compare_test.go b/tests/integration/compare_test.go index cf0bac4c8a..5d5529c36e 100644 --- a/tests/integration/compare_test.go +++ b/tests/integration/compare_test.go @@ -33,7 +33,7 @@ func TestCompareTag(t *testing.T) { req = NewRequest(t, "GET", "/user2/repo1/compare/invalid") resp = session.MakeRequest(t, req, http.StatusNotFound) - assert.False(t, strings.Contains(resp.Body.String(), "/assets/img/500.png"), "expect 404 page not 500") + assert.False(t, strings.Contains(resp.Body.String(), ">500<"), "expect 404 page not 500") } // Compare with inferred default branch (master) diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go index 11e6146d07..6edcbbc71b 100644 --- a/tests/integration/links_test.go +++ b/tests/integration/links_test.go @@ -36,8 +36,6 @@ func TestLinksNoLogin(t *testing.T) { "/user2/repo1/", "/user2/repo1/projects", "/user2/repo1/projects/1", - "/assets/img/404.png", - "/assets/img/500.png", "/.well-known/security.txt", }