Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Fix #1486
Cette révision appartient à :
akuma06 2017-09-04 00:11:16 +02:00 révisé par ewhal
Parent c42efa0ae8
révision 49d8ca0c01
4 fichiers modifiés avec 9 ajouts et 6 suppressions

Voir le fichier

@ -30,6 +30,7 @@ func init() {
userRoutes.GET("/:id/:username/edit", UserDetailsHandler) userRoutes.GET("/:id/:username/edit", UserDetailsHandler)
userRoutes.POST("/:id/:username/edit", UserProfileFormHandler) userRoutes.POST("/:id/:username/edit", UserProfileFormHandler)
userRoutes.GET("/:id/:username/apireset", UserAPIKeyResetHandler) userRoutes.GET("/:id/:username/apireset", UserAPIKeyResetHandler)
userRoutes.GET("/:id/:username/feed/*page", feedController.RSSHandler) userRoutes.GET("/:id/:username/feed", feedController.RSSHandler)
userRoutes.GET("/:id/:username/feed/:page", feedController.RSSHandler)
} }
} }

Voir le fichier

@ -21,9 +21,9 @@
<meta property="og:description" content="Nyaa Pantsu Homepage"/> <meta property="og:description" content="Nyaa Pantsu Homepage"/>
<!-- RSS Feed with Context --> <!-- RSS Feed with Context -->
<link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block rsstitle()}}Latest torrents{{end}} RSS Feed" href="/feed/?{{ block rss_link() }}{{ getRawQuery(URL) }}{{end}}" /> <link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block rsstitle()}}Latest torrents{{end}} RSS Feed" href="{{ block rss_link() }}/feed/?{{ getRawQuery(URL)|raw }}{{end}}" />
<link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{ yield rsstitle()}} Torznab RSS Feed" href="/feed/torznab?{{ yield rss_link() }}&t=search" /> <link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{ yield rsstitle()}} Torznab RSS Feed" href="/feed/torznab?{{ getRawQuery(URL)|raw }}&t=search" />
<link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{ yield rsstitle()}} EZTV RSS Feed" href="/feed/eztv??{{ yield rss_link() }}" /> <link rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{ yield rsstitle()}} EZTV RSS Feed" href="/feed/eztv?{{ getRawQuery(URL)|raw }}" />
<!-- do NOT move --> <!-- do NOT move -->
<link rel="stylesheet" href="/css/simplemde.min.css?v={{ Config.Version }}{{ Config.Build }}"/> <link rel="stylesheet" href="/css/simplemde.min.css?v={{ Config.Version }}{{ Config.Build }}"/>

Voir le fichier

@ -1,5 +1,4 @@
{{ import "layouts/partials/helpers/search" }} {{ import "layouts/partials/helpers/search" }}
{{ block rss_link()}}{{end}}
<div class="container"> <div class="container">
<div class="h-left"> <div class="h-left">
<div class="h-logo"> <div class="h-logo">
@ -13,7 +12,7 @@
<div class="icon-upload visible-md"></div> <div class="icon-upload visible-md"></div>
<span class="hide-md">{{ T("upload") }}</span> <span class="hide-md">{{ T("upload") }}</span>
</a> </a>
<a href="/feed{{ yield rss_link() }}" class="nav-btn"> <a href="{{ yield rss_link() }}" class="nav-btn">
<div class="icon-rss-squared visible-md"></div> <div class="icon-rss-squared visible-md"></div>
<span class="hide-md">RSS</span> <span class="hide-md">RSS</span>
</a> </a>

Voir le fichier

@ -223,6 +223,9 @@ func walkDirTest(dir string, t *testing.T) {
} }
for _, f := range files { for _, f := range files {
variables := mockupCommonvariables(t) variables := mockupCommonvariables(t)
if f.Name() == "menu" {
continue
}
if f.IsDir() { if f.IsDir() {
walkDirTest(dir+f.Name()+"/", t) walkDirTest(dir+f.Name()+"/", t)
continue continue