From f3881734e25e63abee57ccf1d3d422847d0dee7a Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 20 Sep 2017 01:59:17 +0200 Subject: [PATCH] Make sukebei have all ads PLUS onahole instead of only onahole (#1598) * Update ad.jet.html * Update base.jet.html * Update template_functions.go * Update template_functions_test.go * Update ad.jet.html --- templates/layouts/partials/base.jet.html | 7 ++--- .../layouts/partials/helpers/ad.jet.html | 28 ++++++++----------- templates/template_functions.go | 4 +-- templates/template_functions_test.go | 2 +- 4 files changed, 18 insertions(+), 23 deletions(-) diff --git a/templates/layouts/partials/base.jet.html b/templates/layouts/partials/base.jet.html index 39837819..cff32ce3 100644 --- a/templates/layouts/partials/base.jet.html +++ b/templates/layouts/partials/base.jet.html @@ -48,13 +48,12 @@ - {{ AdType := kilo_rand(0, 5) }} - {{ AdID := kilo_rand(0, 2)}} + {{ AdType := kilo_rand(5) }}
{{ yield infos()}} {{ yield errors()}} - {{ if !isset(Infos["system"])}}
{{ yield ad_wide(Type=AdType, ID=AdID) }}
{{end}} + {{ if !isset(Infos["system"])}}
{{ yield ad_wide(Type=AdType) }}
{{end}} {{ block content_body_base() }}{{end}}
{{ block mascot() }} @@ -87,7 +86,7 @@ {{ genNav(Navigation, URL, 15)|raw }}
-
{{ yield ad_wide(Type=AdType, ID=AdID) }}
+
{{ yield ad_wide(Type=AdType) }}