diff --git a/public/css/g.css b/public/css/g.css index e3aa14ac..8e2ec7ec 100644 --- a/public/css/g.css +++ b/public/css/g.css @@ -22,6 +22,11 @@ a:hover { color: #444; } background: #99BFD0; border-color: #a3c7d3; } +.sukebei .header .h-user .user-avatar { + background: #bf99d0; + border-color: #d3a3d1; +} + .header .h-user .user-menu { background: #BDE0EF; background: -moz-linear-gradient(top, #BDE0EF 0%, #ABCFDF 100%); diff --git a/public/css/main.css b/public/css/main.css index d5ded81c..dbe24237 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -1002,6 +1002,7 @@ input.nav-btn { .download { padding: 0.3em; } +#faq .rules-drop {margin-bottom: 20px; width: 500px; } .rules-drop { display: flex; user-select: none; diff --git a/public/js/kilo.js b/public/js/kilo.js index 0a93ac50..e8754f1e 100644 --- a/public/js/kilo.js +++ b/public/js/kilo.js @@ -31,12 +31,12 @@ var Kilo = function (params) { // Private variables var Keywords_flags= [ - ["vostfr","vosfr", "[ita]", "[eng]", " eng ","[english]","[english sub]", "[jp]","[jpn]","[japanese]"], - ["fr","fr", "it", "en","en","en","en", "ja","ja","ja"] + ["vostfr","vosfr", "[ita]", "[eng]", " eng ","[english]","[english sub]", "engsub", "[jp]","[jpn]","[japanese]", "[jav]"], + ["fr","fr", "it", "en","en","en","en","en", "ja","ja","ja","ja"] ] var Keywords_categories = [ - [ ["[jav]"], [7] ], - [ [""], [0] ] + [["[jav]","[h-games]"], [7,3]], + [[""], [0]] ] // Parsing categories diff --git a/templates/layouts/partials/helpers/rules.jet.html b/templates/layouts/partials/helpers/rules.jet.html new file mode 100644 index 00000000..ca460856 --- /dev/null +++ b/templates/layouts/partials/helpers/rules.jet.html @@ -0,0 +1,13 @@ +{{ block ruleList(open=false)}} +
+ {{ T("rules")}} +
+ +
+
+{{ end }} diff --git a/templates/site/static/faq.jet.html b/templates/site/static/faq.jet.html index f481211f..7d1b035e 100644 --- a/templates/site/static/faq.jet.html +++ b/templates/site/static/faq.jet.html @@ -1,17 +1,15 @@ {{ extends "layouts/index_site" }} +{{ import "layouts/partials/helpers/rules" }} {{block title()}}{{ T("faq")}}{{end}} {{block content_body()}} -
+

{{ T("notice_keep_seeding")}}

{{ T("faq")}}

-
-

{{ T("rules")}}

-

{{ T("no_cp")}}

-

{{ T("asia")}} + {{ yield ruleList(open=true) }}

Nyaa - {{GetHostname(Config.WebAddress.Nyaa)}}
diff --git a/templates/site/torrents/upload.jet.html b/templates/site/torrents/upload.jet.html index f10958aa..b0aa2586 100644 --- a/templates/site/torrents/upload.jet.html +++ b/templates/site/torrents/upload.jet.html @@ -2,20 +2,11 @@ {{ import "layouts/partials/helpers/csrf" }} {{ import "layouts/partials/helpers/captcha" }} {{ import "layouts/partials/helpers/flags" }} +{{ import "layouts/partials/helpers/rules" }} {{block title()}}{{ T("upload")}}{{end}} {{block content_body()}}
-
- {{ T("rules")}} -
-
    -
  • {{ T("no_cp")}}
  • -
  • {{ T("asia")}}
  • -
  • {{ T("rules_spam")}}
  • -
  • {{ T("rules_sukebei")}}
  • -
-
-
+ {{ yield ruleList() }}
{{ yield csrf_field() }}

{{ T("name")}}