Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/975d8bc67905f756a228775a5c9e41063e04bd09?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
29 additions and
0 deletions
@ -0,0 +1,28 @@
using System ;
using System.Collections.Generic ;
using System.ComponentModel ;
using System.Linq ;
using System.Linq.Expressions ;
using System.Web ;
using System.Web.Mvc ;
namespace NzbDrone.Web.Helpers
{
public static class DescriptionExtension
{
public static MvcHtmlString DescriptionFor < TModel , TValue > ( this HtmlHelper < TModel > html , Expression < Func < TModel , TValue > > expression )
{
var memberEx = expression . Body as MemberExpression ;
if ( memberEx = = null )
throw new ArgumentException ( "Body not a member-expression." ) ;
string name = memberEx . Member . Name ;
var attributes = TypeDescriptor . GetProperties ( typeof ( TModel ) ) [ name ] . Attributes ;
var desc = ( DescriptionAttribute ) attributes [ typeof ( DescriptionAttribute ) ] ;
return new MvcHtmlString ( desc . Description ) ;
}
}
}
@ -224,6 +224,7 @@
<Compile Include= "Global.asax.cs" >
<DependentUpon > Global.asax</DependentUpon>
</Compile>
<Compile Include= "Helpers\DescriptionExtension.cs" />
<Compile Include= "Helpers\HtmlPrefixScopeExtensions.cs" />
<Compile Include= "Helpers\IsCurrentActionHelper.cs" />
<Compile Include= "Models\AccountModels.cs" />