added custom 404 page
Cette révision appartient à :
Parent
ad2968776c
révision
c2606a37ed
5 fichiers modifiés avec 163 ajouts et 0 suppressions
122
public/img/404.svg
Fichier normal
122
public/img/404.svg
Fichier normal
|
@ -0,0 +1,122 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
id="svg8"
|
||||
version="1.1"
|
||||
viewBox="0 0 193.83085 240.07643"
|
||||
height="240.07643mm"
|
||||
width="193.83086mm">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
style="display:none"
|
||||
transform="translate(-15.390459,-17.112908)"
|
||||
id="layer1">
|
||||
<image
|
||||
xlink:href="renge.png"
|
||||
y="8.2450953"
|
||||
x="-37.967709"
|
||||
id="image4493"
|
||||
preserveAspectRatio="none"
|
||||
height="268.94424"
|
||||
width="320.86398" />
|
||||
<image
|
||||
xlink:href="/home/nitori/source/git/nyaa/nyaapantsu-go/img/renchon.png"
|
||||
y="25.945225"
|
||||
x="311.77365"
|
||||
id="image4505"
|
||||
preserveAspectRatio="none"
|
||||
height="228.83347"
|
||||
width="138.1125" />
|
||||
</g>
|
||||
<g
|
||||
transform="translate(-53.358168,-8.8678123)"
|
||||
style="display:inline;opacity:1"
|
||||
id="layer2">
|
||||
<path
|
||||
id="path4531"
|
||||
d="m 141.38558,33.880692 c 0,0 -2.90942,-2.268679 -4.54358,-2.004521 -6.22545,1.006332 -15.18612,15.939254 -17.63979,28.865108 -0.75391,3.971569 -2.14127,10.94279 -2.79064,16.273422 -1.5624,12.825847 -2.02021,24.752449 -2.02021,24.752449 -2.91926,12.91334 -13.24979,29.79232 -19.495459,46.80044 -3.728979,10.1547 -8.108722,18.26346 -3.62336,29.50501 -0.03178,-3.04495 0.300744,-5.90774 0.80181,-8.68626 1.884572,7.10579 5.153804,13.34012 9.888979,18.30796 l 5.61265,-5.34539 c -2.92626,-4.14948 -3.02287,-8.73793 -3.74177,-13.22984 1.72044,2.5961 3.35791,5.91313 5.21176,7.34991 l -0.66818,-3.4745 c -1.68523,-4.73377 -0.48568,-10.13325 0,-15.368 4.79167,-11.92838 6.93309,-23.69466 15.81508,-35.16856 0.091,2.81738 0.48693,4.47924 1.29341,6.96365 0.0239,-2.86366 -0.005,-4.72664 0.51987,-6.33664 1.03658,4.34726 2.16827,8.63744 4.44315,12.24171 -0.28468,-6.3356 -0.60299,-10.97671 0.33242,-15.63641 0.84656,5.42778 2.19935,9.66413 3.90082,12.37872 -1.27759,-6.90192 -1.72823,-11.34554 -1.93101,-17.1511 -0.24698,-7.07104 2.03059,-21.128689 2.03059,-21.128689 l 18.41358,-28.111264 11.43561,-2.455213 9.07603,6.45917 9.37459,20.091072 -16.49732,36.495284 c 4.74895,-0.57419 3.83611,0.70254 14.97298,-3.39113 -1.34449,6.19483 -3.336,11.38954 -5.06867,14.28892 -1.99865,3.34449 -4.20229,5.69341 -8.10147,9.04836 2.75726,-1.07868 4.98244,-3.52723 7.19716,-5.51388 -2.18509,5.0424 -5.36384,8.78498 -7.9254,12.517 8.54365,-5.16126 10.06099,-7.30731 13.38857,-10.32328 -0.5017,1.63952 -1.45318,3.69776 -4.09994,8.17531 4.24305,-4.17103 6.94699,-8.69176 9.03027,-12.49359 7.00779,-12.78873 6.28372,-19.70804 7.22811,-20.12294 0,0 4.3589,-3.2273 6.19297,-5.20376 2.02993,-2.18752 5.23188,-7.265 5.23188,-7.265 0.0563,2.27775 -0.12798,5.2773 -0.57357,9.06073 2.11644,-3.44725 2.32892,-6.84492 3.04939,-10.05951 l 5.50602,0.79076 c -2.8855,5.49643 -3.18883,18.05395 -2.83613,32.0103 0.13402,5.30305 0.82593,12.23218 2.65399,18.40416 3.19078,10.77283 8.72294,21.87763 9.06328,33.94554 0.21134,7.49402 -3.57046,16.24754 -8.30402,22.46666 4.43331,-4.35599 8.84472,-7.38254 12.42933,-16.15177 3.19187,9.28663 0.90243,18.00618 -7.65877,26.5805 9.67556,-2.95849 17.22442,-9.48983 22.4457,-19.93152 2.08077,7.71237 -1.21804,12.17371 -3.41522,17.27423 4.07297,-3.73827 8.97057,-9.43943 9.63839,-22.86756 1.01398,-20.3886 -11.18336,-35.13989 -16.25297,-46.39657 -1.94399,-6.34496 -2.06968,-18.64368 -0.003,-30.27678 1.90512,-10.72147 8.06544,-37.864974 5.19972,-40.499267 -2.61916,-2.407649 -5.95312,-3.779762 -5.95312,-3.779762 l -16.06398,-9.449406 c -0.48965,-1.390553 0.0538,-3.220044 -0.69698,-4.641341 -4.48905,-8.498349 -9.45049,-18.858231 -27.27326,-26.163717 -6.23001,-3.584777 -15.79955,-3.359667 -28.5372,-0.944942 z"
|
||||
style="fill:#dcd0e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4543"
|
||||
d="m 86.278797,116.19846 c 1.69719,0.13515 2.243836,0.7888 2.084682,2.39676 0.37853,0.0923 0.778219,0.30472 1.018548,0.76652 1.312164,0.72341 2.238202,3.85479 3.071781,6.27701 1.677956,4.87584 2.675383,10.7528 3.552142,15.45504 1.225636,-0.20749 1.576404,-0.26868 2.238405,-0.38192 0,0 6.476435,-5.77497 8.730395,-6.93901 0.78407,-0.40492 2.61874,0.38818 2.61874,0.38818 1.06964,-1.09372 2.50732,-2.35133 3.58339,-3.40833 3.59521,-3.53149 6.92192,-7.00004 10.43445,-8.90845 0.47061,-0.25569 1.27263,-0.024 1.7374,-0.23916 l 9.90048,1.97354 c 2.35875,-0.58783 4.56919,-0.60687 5.13553,1.21927 l 21.68107,8.35265 c 2.7867,-1.06151 3.93848,1.62364 5.69421,2.72314 2.92076,1.82908 5.71194,3.84308 9.13284,4.93661 5.09446,7.62369 1.65302,11.86435 1.90609,17.74196 0.80842,0.76739 2.0176,2.17047 1.97508,3.2781 -0.0583,1.51721 -0.84338,2.15426 -0.85929,3.61312 -0.0121,1.1082 0.88919,1.71225 0.84188,4.65242 -0.0356,2.21344 0.16317,4.8478 -0.36748,7.2836 0,0 6.2799,-3.67598 9.50255,-5.36182 2.23612,-1.16976 6.21103,-3.30212 6.81637,-3.29462 0.44012,0.005 0.9449,0.34648 1.51855,0.46996 0.41046,0.0883 0.96509,0.43243 1.34513,0.50944 1.67057,-0.20049 1.54423,0.46398 2.55496,0.61963 l 4.2483,14.33345 c -0.25253,0.63745 -1.083,1.38276 -1.41701,1.9091 0.0863,0.52912 -0.41282,1.20868 -0.87351,1.52206 -5.59399,3.80533 -11.13869,4.98999 -16.60255,7.54833 -8.04708,3.76786 -20.36869,5.85812 -21.62293,4.39537 -0.56793,-0.66234 -1.05513,-2.34782 -1.48152,-3.56004 -0.73785,-2.09771 -1.92838,-5.38868 -2.40535,-8.22611 -0.65201,-3.87877 -0.52198,-7.46143 -1.14326,-11.05374 l -13.89063,8.40997 -23.34003,-5.48065 -8.50446,-7.18155 -1.37016,-18.00111 c -7.84586,4.9753 -16.017546,9.80762 -24.615705,11.10304 -0.511013,0.077 -2.313069,-1.74036 -4.165354,-4.46632 -1.418483,-2.08755 -2.887271,-4.48661 -4.272586,-7.30682 -1.09044,-2.21991 -2.111189,-4.82658 -3.13758,-6.88943 -1.94714,-3.91339 -3.568737,-7.25005 -4.774314,-10.88191 -1.007609,-3.03547 -1.638127,-5.73674 -2.28034,-8.89497 -0.41293,-2.03067 -0.240006,-2.795 0.262542,-3.76074 l 1.218606,-3.78632 1.557501,-2.39444 z"
|
||||
style="fill:#f0e5b7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4527"
|
||||
d="m 131.36297,65.8194 c -6.29031,-0.90467 -8.0599,-15.367004 -6.68174,-17.639789 2.92279,-4.820109 16.43708,-5.479023 16.43708,-5.479023 0,0 -3.37817,-13.248818 -0.18089,-21.828324 1.05575,-2.832961 11.01733,-3.777884 15.57459,-2.248862 3.7926,1.272467 8.33029,5.10866 7.32421,8.041012 -2.06235,6.010981 -8.6526,11.431444 -9.11148,14.173392 l -17.91123,14.1449 z"
|
||||
style="fill:#fcec95;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4529"
|
||||
d="m 208.40341,83.726458 c 0.92634,-0.783597 1.8056,-2.141212 2.73951,-3.274052 0.34151,-2.692487 -0.90029,-5.548631 -0.33408,-8.084902 1.54355,-6.914116 13.55114,-17.858775 16.83798,-17.907059 4.03132,-0.05922 11.61884,11.318213 11.75986,16.704345 0.0556,2.124397 -1.64944,4.256691 -3.47451,5.345391 -5.95492,3.552255 -19.04295,7.015826 -19.04295,7.015826 0,0 3.25937,3.74621 3.8754,5.813112 1.70906,5.7342 1.51914,10.357873 0.80182,15.234361 -0.2059,1.39978 -8.52871,2.11078 -13.56393,1.60362 -1.97758,-0.19919 -1.40317,-3.00678 -1.40317,-3.00678 z"
|
||||
style="fill:#fcec95;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4525"
|
||||
d="m 183.21326,38.691544 c 11.10034,-10.944858 23.00731,-16.098224 26.72695,-13.229841 6.68496,5.155081 12.69708,18.406846 8.75308,35.947751 -0.16539,-2.583605 -0.43141,-5.902202 -1.40317,-8.41899 -2.19242,3.633245 -4.9026,6.230973 -7.61718,8.819893 3.10338,-7.573007 5.59297,-19.887737 0.20045,-31.470986 -9.75209,0.172765 -19.22942,4.476986 -25.19015,9.755338 z"
|
||||
style="fill:#e0d5ea;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4523"
|
||||
d="m 157.33259,20.613885 c -1.40296,0.853034 -3.22748,2.549216 -5.38616,4.91369 3.13427,-8.460265 16.37895,-16.0447398 27.49777,-16.1584814 4.48144,-0.045844 6.32157,1.1358564 6.70907,3.9687494 1.18213,8.642169 -2.55134,24.284969 -2.55134,24.284969 l -1.03943,-0.566964 c 0,0 0.64885,-6.363589 0.47247,-9.543897 -0.37138,-6.69632 -1.4005,-10.319578 -3.77976,-12.756697 -5.00821,0.714929 -15.77194,6.720218 -23.34003,17.29241 -0.39554,-4.028261 -0.19509,-7.907528 1.41741,-11.433779 z"
|
||||
style="fill:#e0d5ea;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4541"
|
||||
d="m 198.58126,171.65813 0.86862,-0.13363 c 0,0 3.09002,-3.70556 5.04472,-4.64381 0.83522,-0.4009 5.48161,-0.77896 8.15172,-0.26727 1.31265,0.25155 2.37163,0.88624 3.64154,1.30294 1.14999,0.37735 2.23891,0.72889 3.35233,1.20341 1.15361,0.49164 2.15617,1.22698 3.32941,1.66974 0.90472,0.34142 1.47052,0.51472 2.43612,0.64895 0.44669,0.0621 0.73719,0.74251 0.60946,1.17503 -0.1577,0.53401 -0.51978,0.65299 -1.04106,0.84871 -0.83639,0.31404 -1.78609,0.31046 -2.67269,0.20045 -1.32802,-0.16478 -2.51099,-0.94238 -3.80859,-1.26953 -1.00836,-0.25422 -3.0736,-0.53453 -3.0736,-0.53453 0,0 2.2658,2.63856 6.09316,4.86508 3.49866,2.03531 7.72509,3.69015 9.10779,6.49387 0.17491,0.35467 -0.63476,1.00226 -0.63476,1.00226 0,0 1.24597,0.88775 1.20271,1.5368 -0.0445,0.6679 -1.43658,1.40317 -1.43658,1.40317 0,0 -0.25747,1.17197 -0.63476,1.46998 -0.49704,0.39259 -0.84548,0.16342 -1.65003,0.0525 -0.6949,-0.0958 -1.59061,-0.11932 -1.59061,-0.11932 0,0 -0.36434,0.49265 -0.63477,0.60136 -0.64674,0.25997 -1.87085,-0.12185 -2.57625,-0.0932 -1.16545,0.0474 -1.83955,0.34846 -2.96959,0.12658 -1.10793,-0.21754 -2.29757,-1.03521 -3.33174,-1.4907 -1.58309,-0.69728 -3.13946,-1.11698 -4.69056,-1.69467 -0.50915,-0.18963 -1.2624,-0.87582 -1.79986,-1.05753 -1.15662,-0.39103 -2.25423,-0.41605 -3.37427,-0.90203 -1.1338,-0.49195 -2.97338,-1.70385 -2.97338,-1.70385 l -3.842,1.9043 -3.57473,-5.87993 0.7684,-5.04471 0.93545,-1.73726 z"
|
||||
style="fill:#f4dcce;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4539"
|
||||
d="m 75.784225,94.130253 c -0.656858,0.268021 -1.251943,2.029869 -1.173069,3.062951 0.105861,1.38656 0.935849,2.60134 1.781056,3.748646 0.306851,0.41653 1.077207,1.05104 1.246111,1.5268 0.364781,1.0275 0.697755,1.83779 0.146489,2.77849 -0.302161,0.51562 -0.936702,0.70987 -1.533848,0.73401 -0.882672,0.0357 -2.107103,-0.52865 -2.948226,-0.7862 -0.980992,-0.30036 -1.53957,-0.0272 -2.493288,-0.41692 -1.372627,-0.56098 -2.406909,-1.64239 -3.793602,-2.16764 -0.704787,-0.26696 -1.234644,-0.63267 -1.953338,-0.85953 -1.039108,-0.328 -2.08924,-1.12294 -3.048592,-1.69457 -0.870327,-0.518595 -2.085472,-1.19622 -2.992562,-1.56607 -0.596315,-0.243137 -1.779046,-0.401531 -2.860451,0.307008 -1.064995,-0.09852 -1.661491,0.193972 -1.823716,0.48033 -0.276472,0.488028 -0.117515,1.057602 0.01707,1.660192 -0.247295,0.18328 -0.530611,0.56989 -0.492649,0.89377 0.09784,0.83471 0.405858,1.54286 1.025913,2.43212 -0.180939,0.29239 -0.57664,0.54971 -0.440362,0.95632 0.280426,0.8367 1.167968,1.29218 1.663492,2.02652 0.863575,1.27979 1.772836,2.90173 2.75914,4.08169 0.804818,0.96284 2.056597,1.48934 2.97165,2.22598 0.665637,0.53585 1.530967,1.80134 2.27277,2.33335 2.732557,1.95976 5.164926,3.02351 8.079241,4.70109 1.075169,0.6189 2.554811,0.77475 3.260045,1.79538 0.316533,0.45809 -0.04986,3.07872 0.360781,3.45477 1.291118,1.18235 3.830324,0.53606 5.545098,0.18325 1.807464,-0.37188 4.079146,-0.98316 5.527902,-2.12611 0.579419,-0.45711 0.304553,-3.00443 0.425222,-3.73252 -0.649118,-1.40376 -0.900336,-1.28693 -1.086682,-2.50409 -0.22925,-1.49741 0.280287,-3.98383 0.04725,-5.48065 -0.293795,-1.88706 -1.37959,-3.56175 -2.078868,-5.33892 -0.515067,-1.30901 -1.02691,-2.61938 -1.559153,-3.9215 -0.323155,-0.79059 -0.555171,-1.24859 -1.025597,-1.96145 -0.748422,-1.134107 -2.05608,-1.999286 -2.901639,-3.062946 -0.793767,-0.998509 -0.824912,-2.079476 -1.811599,-3.279616 -0.208841,-0.254021 -0.81867,-0.632626 -1.111984,-0.483935 z"
|
||||
style="fill:#fdebe0;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4533"
|
||||
d="m 130.9931,104.68419 c 0.18965,-5.998012 4.41622,-17.045183 5.26572,-24.596327 l 3.45632,-7.119003 11.35896,-8.619442 11.42577,-4.81085 14.69983,7.817633 9.08716,17.907058 1.87088,12.160763 -2.13815,17.238888 c 0,0 -0.71439,2.49567 -2.11384,3.27266 -0.99309,0.55138 -2.94689,0.2814 -3.83291,0.8032 -0.91738,0.54027 -2.04492,1.54451 -3.54645,2.89122 -2.31777,1.58871 -6.72837,4.2644 -7.5567,4.48972 -1.96118,0.53348 -5.05479,1.13893 -7.60042,1.36925 -1.34449,3.48688 0.86213,4.95768 2.47533,7.21859 -1.22218,2.09482 -3.40994,6.64022 -7.05685,9.14328 -4.01022,2.75241 -9.65902,3.27288 -14.80082,0.8799 -2.93098,-1.36407 -5.88077,-4.89332 -6.21179,-8.51377 -0.19053,-2.08389 -0.3016,-4.28571 0.0721,-6.38474 0.26145,-1.46864 1.1296,-3.57832 2.08883,-4.76313 0.14241,-0.14825 6.46482,-0.66117 5.29729,-1.61712 -4.43372,-4.32749 -12.40985,-13.40344 -12.24024,-18.76778 z"
|
||||
style="fill:#fdebdd;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4535"
|
||||
d="m 131.91369,92.90183 c 0.88248,1.692829 1.68123,3.348812 3.64187,5.516032 -0.83482,-2.641746 -1.65191,-5.270156 -1.563,-7.216925 0.40416,0.344836 0.79031,0.71968 1.32291,0.850448 -0.81223,-13.336775 8.13181,-19.608654 16.72545,-25.513394 -1.13675,3.568166 -2.31702,6.788246 -3.2128,12.284227 4.02728,-6.630278 9.15727,-14.661737 13.41816,-17.859376 -4.03562,8.084017 -5.707,17.207335 -5.29166,26.080356 1.03378,-4.395168 2.24307,-8.263813 3.77975,-11.150296 -0.40748,7.021599 1.25817,14.74355 3.87426,22.017113 0.52995,-6.602302 2.0877,-15.977801 3.68527,-18.331843 0.0765,3.712321 -0.0745,9.324884 1.22842,12.095236 -0.25793,-8.165736 2.14403,-14.591144 3.87426,-20.31622 0.26231,7.9375 -0.38722,16.81994 3.02381,24.75744 -0.58714,-7.474235 -0.51276,-13.908928 0.66145,-18.615326 0.92789,5.214074 3.40152,11.394238 6.33111,17.859374 0.52411,-2.007081 0.75494,-4.600733 1.03943,-7.087052 3.26619,7.490523 1.51511,11.924596 0.75595,16.819936 -1.96977,4.54708 -5.85099,7.60747 -10.20536,10.29985 1.97774,-0.7483 4.06383,-1.6216 7.18155,-3.68526 -1.12003,1.82093 -3.05738,3.99214 -6.04762,6.61458 2.33903,-0.62451 4.8673,-1.12286 6.70908,-2.07887 0.18306,1.25462 -0.1193,2.57922 -0.95542,4.98722 l 7.09753,-4.13677 1.51191,-31.938991 -7.84301,-19.938243 -15.875,-8.787947 -12.94568,2.078868 -17.19792,13.796131 -3.40178,12.851191 z"
|
||||
style="fill:#dcd0e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4537"
|
||||
d="m 147.76507,112.39123 c -0.90124,0.0253 -0.49914,2.20658 -0.11812,3.66164 -0.47326,0.8913 -1.11876,1.22243 -1.15755,2.4096 -0.0546,1.67265 1.44295,1.58103 2.55134,1.53553 -0.75755,0.50496 -1.64033,0.64475 -2.4096,0.16536 -0.52899,-0.32965 -0.85591,-1.34143 -0.77958,-1.79538 0.17391,-1.03425 0.58124,-1.71048 1.08668,-2.31511 -0.19094,-0.90954 -0.66365,-1.59597 -0.51971,-2.83482 0.15548,-1.33823 1.06746,-1.52098 1.88987,-1.41741 0.52968,0.0667 1.06932,0.38175 1.42132,0.96812 -1.03388,-0.36718 -1.00153,-0.40093 -1.96465,-0.37753 z"
|
||||
style="fill:#fbcfb0;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4545"
|
||||
d="m 208.50922,80.97937 c 1.37438,6.805182 1.70908,15.803664 -3.05919,30.67732 -0.60679,-2.57235 -0.0419,-9.73794 -0.55156,-12.714124 l -1.01945,-9.553227 z"
|
||||
style="fill:#dcd0e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4547"
|
||||
d="m 124.5904,61.482559 c 9.79695,-12.487697 20.42798,-16.99213 31.08854,-21.213913 L 136.11868,62.994465 130.40178,67.53018 127,67.766413 c 0.79872,-1.833399 2.03741,-4.057893 3.96875,-6.898065 -1.6458,1.045709 -3.22694,2.14315 -4.25223,3.68527 z"
|
||||
style="fill:#dcd0e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4549"
|
||||
d="m 110.24868,165.57775 c 2.04365,-17.37196 6.74789,-32.67437 15.72235,-44.1818 1.91824,-0.34599 4.24755,-0.10093 6.44581,0.48927 1.49321,0.4009 3.0042,0.89383 2.96189,1.38971 -4.66799,5.36947 -8.44826,13.38603 -11.64617,22.41887 -2.98503,8.43152 -5.52346,17.73634 -6.15018,26.93081 8.01969,7.23985 20.83385,9.92373 29.51944,9.59877 5.87975,-19.92682 12.47671,-35.80483 20.49288,-46.29584 0.7596,-0.37921 1.6615,-0.2023 3.513,1.02765 1.36717,0.90822 4.82809,2.56627 5.73163,3.53501 -7.44267,13.02217 -12.72615,24.03014 -15.7703,35.78169 1.56141,2.54642 -1.21314,8.98025 -3.11274,14.62965 l -1.50913,4.41666 c -4.80835,5.32099 -37.07917,5.7809 -50.11303,-10.27899 0.54082,-6.86002 2.01379,-11.44018 2.30274,-16.41002 0.0915,-1.57433 0.92541,-2.497 1.61181,-3.05144 z"
|
||||
style="fill:#ebc2da;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4551"
|
||||
d="m 124.21243,120.44685 c 0.002,2.05726 0.3051,6.03631 0.8032,8.83519 0.22963,-1.94918 0.12732,-3.57767 0.94493,-6.09487 0.96446,3.14737 1.23782,4.87188 4.20499,12.14249 -0.16328,-5.79106 -0.30304,-11.55272 0.51972,-16.11124 1.06619,6.40081 2.31611,8.75074 3.99727,12.85053 -0.51214,-4.69945 -1.34308,-7.90772 -1.57888,-11.11959 l -2.08767,-4.32952 -2.59858,0.14174 z"
|
||||
style="fill:#dcd0e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4553"
|
||||
d="m 176.25391,137.55311 c -2.0666,3.69155 -5.12764,5.94311 -7.86646,8.66125 2.8702,-1.66847 5.10898,-3.1553 7.19716,-5.51388 -2.00283,4.20502 -4.69506,8.37477 -7.9254,12.517 4.7722,-3.1092 9.64221,-6.11344 13.38857,-10.32328 -0.74636,2.61864 -2.70206,5.44485 -4.09994,8.17531 3.53576,-3.47988 6.35842,-7.57223 8.76878,-12.01871 -1.17585,-5.50016 -3.76606,-7.42511 -9.46271,-1.49769 z"
|
||||
style="fill:#dcd0e7;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4555"
|
||||
d="m 107.50917,180.94575 c 0,0 -3.59248,-0.0727 -5.54585,4.6104 -0.32924,0.78934 -0.71577,3.5923 -0.13363,4.61039 -4.215104,9.96967 -7.837613,20.04479 -10.824417,30.20146 -2.696051,9.16796 -6.347273,28.57624 -6.347273,28.57624 h 87.73084 c 0,0 -0.48607,-3.35379 -1.13405,-6.80665 -1.13304,-6.03756 -2.96542,-15.37635 -4.4786,-21.10139 -1.90775,-7.2179 -6.8822,-21.5152 -6.8822,-21.5152 -0.13256,-1.48922 0.93852,-3.1729 1.06908,-5.07812 0.0963,-1.40534 -3.54132,-3.20724 -3.54132,-3.20724 z"
|
||||
style="fill:#ebc2da;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
</g>
|
||||
</svg>
|
Après Largeur: | Hauteur: | Taille: 19 Kio |
24
router/notFoundHandler.go
Fichier normal
24
router/notFoundHandler.go
Fichier normal
|
@ -0,0 +1,24 @@
|
|||
package router
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
"net/http"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
var notFoundTemplate = template.Must(template.New("NotFound").Funcs(FuncMap).ParseFiles("templates/index.html", "templates/404.html"))
|
||||
|
||||
func init() {
|
||||
// common
|
||||
template.Must(notFoundTemplate.ParseGlob("templates/_*.html"))
|
||||
}
|
||||
|
||||
func NotFoundHandler(w http.ResponseWriter, r *http.Request) {
|
||||
searchForm := NewSearchForm()
|
||||
searchForm.HideAdvancedSearch = true
|
||||
err := notFoundTemplate.ExecuteTemplate(w, "index.html", NotFoundTemplateVariables{Navigation{}, searchForm, r.URL, mux.CurrentRoute(r)})
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
}
|
||||
}
|
|
@ -32,4 +32,6 @@ func init() {
|
|||
Router.HandleFunc("/user/register", UserRegisterFormHandler).Name("user_register").Methods("GET")
|
||||
Router.HandleFunc("/user/login", UserLoginFormHandler).Name("user_login").Methods("GET")
|
||||
Router.HandleFunc("/user/register", UserRegisterPostHandler).Name("user_register").Methods("POST")
|
||||
|
||||
Router.NotFoundHandler = http.HandlerFunc(NotFoundHandler)
|
||||
}
|
||||
|
|
|
@ -21,6 +21,13 @@ type FaqTemplateVariables struct {
|
|||
Route *mux.Route // For getting current route in templates
|
||||
}
|
||||
|
||||
type NotFoundTemplateVariables struct {
|
||||
Navigation Navigation
|
||||
Search SearchForm
|
||||
URL *url.URL // For parsing Url in templates
|
||||
Route *mux.Route // For getting current route in templates
|
||||
}
|
||||
|
||||
type ViewTemplateVariables struct {
|
||||
Torrent model.TorrentsJson
|
||||
Search SearchForm
|
||||
|
|
8
templates/404.html
Fichier normal
8
templates/404.html
Fichier normal
|
@ -0,0 +1,8 @@
|
|||
{{define "title"}}404 Not Found{{end}}
|
||||
{{define "content"}}
|
||||
<div>
|
||||
<h1>404 Not Found</h1>
|
||||
<br />
|
||||
<img class="center-block" src="/img/404.svg"></img>
|
||||
</div>
|
||||
{{end}}
|
Référencer dans un nouveau ticket