Merge branch 'master' of git://github.com/sazuna/nyaa into sazuna-master
Cette révision appartient à :
révision
04b113816c
2 fichiers modifiés avec 6 ajouts et 7 suppressions
8
main.go
Fichier normal → Fichier exécutable
8
main.go
Fichier normal → Fichier exécutable
|
@ -2,13 +2,12 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"fmt"
|
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/ewhal/nyaa/util/log"
|
|
||||||
"github.com/ewhal/nyaa/router"
|
|
||||||
"github.com/ewhal/nyaa/config"
|
"github.com/ewhal/nyaa/config"
|
||||||
|
"github.com/ewhal/nyaa/router"
|
||||||
|
"github.com/ewhal/nyaa/util/log"
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
@ -16,7 +15,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func RunServer(conf *config.Config) {
|
func RunServer(conf *config.Config) {
|
||||||
|
|
||||||
http.Handle("/", router.Router)
|
http.Handle("/", router.Router)
|
||||||
|
|
||||||
// Set up server,
|
// Set up server,
|
||||||
|
|
1
templates/index.html
Fichier normal → Fichier exécutable
1
templates/index.html
Fichier normal → Fichier exécutable
|
@ -41,6 +41,7 @@
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li><a href="https://sukebei.pantsu.cat">Fap</a></li>
|
<li><a href="https://sukebei.pantsu.cat">Fap</a></li>
|
||||||
|
<li><a href="{{.URL.Parse "/feed"}}?c={{.Search.Category}}&q={{.Search.Query}}&s={{.Search.Status}}">RSS</a></li>
|
||||||
<li><a href="{{.URL.Parse "/faq"}}">FAQ</a></li>
|
<li><a href="{{.URL.Parse "/faq"}}">FAQ</a></li>
|
||||||
<li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li>
|
<li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li>
|
||||||
<li><a href="{{ genRouteWithQuery "feed" .URL }}">Feed RSS</a></li>
|
<li><a href="{{ genRouteWithQuery "feed" .URL }}">Feed RSS</a></li>
|
||||||
|
|
Référencer dans un nouveau ticket