mirror of https://github.com/abpframework/abp.git
3 changed files with 23 additions and 1 deletions
@ -1 +1,3 @@ |
|||
<a class="navbar-brand" href="~/">ProjectName</a> |
|||
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components |
|||
@inject IBrandingProvider BrandingProvider |
|||
<a class="navbar-brand" href="~/">@BrandingProvider.AppName</a> |
|||
@ -0,0 +1,11 @@ |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components |
|||
{ |
|||
public class DefaultBrandingProvider : IBrandingProvider, ITransientDependency |
|||
{ |
|||
public virtual string AppName => "MyApplication"; |
|||
|
|||
public virtual string LogoUrl => null; |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components |
|||
{ |
|||
public interface IBrandingProvider |
|||
{ |
|||
string AppName { get; } |
|||
|
|||
string LogoUrl { get; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue