Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/e473a8d3205c8be0856b49dd37cd70d617e4955b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
5 additions and
9 deletions
@ -20,17 +20,17 @@ namespace Ombi.Notifications.Templates
private const string SubjectKey = "{@SUBJECT}" ;
private const string BodyKey = "{@BODY}" ;
private const string ImgSrc = "{@IMGSRC }";
private const string Poster = "{@POSTER }";
private const string DateKey = "{@DATENOW}" ;
private const string Logo = "{@LOGO}" ;
public string LoadTemplate ( string subject , string body , string img = default ( string ) , string logo = default ( string ) )
public string LoadTemplate ( string subject , string body , string img src = default ( string ) , string logo = default ( string ) )
{
var sb = new StringBuilder ( File . ReadAllText ( TemplateLocation ) ) ;
sb . Replace ( SubjectKey , subject ) ;
sb . Replace ( BodyKey , body ) ;
sb . Replace ( DateKey , DateTime . Now . ToString ( "f" ) ) ;
sb . Replace ( ImgSrc , string . IsNullOrEmpty ( img ) ? string . Empty : img) ;
sb . Replace ( Poster , string . IsNullOrEmpty ( img src ) ? string . Empty : $"<tr><td align=\" center\ ">< img src=\"{imgsrc}\" alt=\"Poster\" width=\"400px\" text-align=\"center\"/></td></tr>" ) ;
sb . Replace ( Logo , string . IsNullOrEmpty ( logo ) ? "http://i.imgur.com/qQsN78U.png" : logo ) ;
return sb . ToString ( ) ;
@ -144,7 +144,7 @@
< table border = "0" cellpadding = "0" cellspacing = "0" style = "border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width = "100%" >
< tr >
< td align = "center" >
< img src = "{@LOGO}" alt = "Ombi logo" width = "400px" text-align = "center" / >
< img src = "{@LOGO}" alt = "Ombi logo" width = "400px" text-align = "center" / >
< / td >
< / tr >
< tr >
@ -153,11 +153,7 @@
< / td >
< / tr >
< tr >
< td align = "center" >
< img src = "{@IMGSRC}" alt = "Poster" width = "400px" text-align = "center" / >
< / td >
< / tr >
{@POSTER}
< / table >
< / td >
< / tr >