Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Default theme change (#875)

* changed session cookie expiry

* made /g/ the default theme
Cette révision appartient à :
Steindór 2017-06-02 03:36:16 +00:00 révisé par ewhal
Parent e62ebb05ba
révision d1ff3866ea
3 fichiers modifiés avec 10 ajouts et 6 suppressions

2
public/css/classic.css Fichier normal
Voir le fichier

@ -0,0 +1,2 @@
/* This is a placeholder so the classic theme can be used */
/* Ideally, the decorative parts of main.css would be here instead of there. This will have to do for now though */

Voir le fichier

@ -25,9 +25,12 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<!-- Base theme -->
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/main.css"}}?v={{ .Config.Version }}">
<!-- User selected theme, if any -->
{{if .Theme}}<link rel="stylesheet" id="theme" href="/css/{{$.Theme}}.css?v={{ .Config.Version }}">{{end}}
<!-- User selected theme, if any, defaults to /g/ -->
{{if eq $.Theme ""}}
<link rel="stylesheet" id="theme" href="/css/g.css?v={{ .Config.Version }}">
{{else}}
<link rel="stylesheet" id="theme" href="/css/{{$.Theme}}.css?v={{ .Config.Version }}">
{{end}}
<!-- Search Box for Google -->
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","url":"https://nyaa.pantsu.cat/","potentialAction":{"@type":"SearchAction","target":"https://nyaa.pantsu.cat/search?q={search_term_string}","query-input":"required name=search_term_string"}}</script>
{{ block "additional_header" .}}{{end}}

Voir le fichier

@ -13,10 +13,9 @@
</select>
<h3>{{call $.T "theme"}}</h3>
<select id="theme-selector" name="theme" class="form-input" onchange="switchThemes()">
<option value="">{{call $.T "theme_select"}}</option>
<option value="g"{{ if eq $.Theme "g" }} selected{{end}}>/g/</option>
<option value="g"{{ if or (eq $.Theme "g") (eq $.Theme "") }} selected{{end}}>/g/</option>
<option value="tomorrow"{{ if eq $.Theme "tomorrow" }} selected{{end}}>Tomorrow</option>
<option value=""{{ if eq $.Theme "" }} selected{{end}}>{{call $.T "theme_none"}}</option>
<option value="classic"{{ if eq $.Theme "classic" }} selected{{end}}>Classic</option>
</select>
</br>
<h3>{{call $.T "mascot"}}</h3>