Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/bf62ab0d2645fb49ab9e99387e75bf9a70da9da8
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
25 additions and
1 deletions
@ -8,7 +8,7 @@
<h4> {{ title }} </h4>
</a>
{{ / with }}
<p> {{ StartTime airDateUtc }} {{ ShortDate airDateUtc }} </p>
<p> {{ StartTime airDateUtc }} {{ # unless _ today airDateUtc }} {{ ShortDate airDateUtc }} {{ / unless _ today }} </p>
<p>
<span class="episode-title x-episode-title">
{{ title }}
@ -71,4 +71,28 @@ define(
return moment ( input ) . format ( 'h:mm:ss A' ) ;
} ) ;
Handlebars . registerHelper ( 'if_today' , function ( context , options ) {
var date = moment ( context ) . startOf ( 'day' ) ;
var today = moment ( ) . startOf ( 'day' ) ;
if ( date . isSame ( today ) ) {
return options . fn ( this ) ;
}
return options . inverse ( this ) ;
} ) ;
Handlebars . registerHelper ( 'unless_today' , function ( context , options ) {
var date = moment ( context ) . startOf ( 'day' ) ;
var today = moment ( ) . startOf ( 'day' ) ;
if ( date . isSame ( today ) ) {
return options . inverse ( this ) ;
}
return options . fn ( this ) ;
} ) ;
} ) ;