Add logo and product name to SelfHost

This commit is contained in:
Ján Lučanský
2019-01-21 14:55:57 +01:00
parent 2450f223d9
commit 853044c8e9
2 changed files with 25 additions and 18 deletions

View File

@@ -18,6 +18,9 @@ namespace Quartzmin.SelfHost
public string DefaultDateFormat { get; set; }
public string DefaultTimeFormat { get; set; }
public string Logo { get; set; }
public string ProductName { get; set; }
private IScheduler _scheduler;
private IDisposable _webApp;
@@ -73,6 +76,10 @@ namespace Quartzmin.SelfHost
options.DefaultDateFormat = DefaultDateFormat;
if (!string.IsNullOrEmpty(DefaultTimeFormat))
options.DefaultTimeFormat = DefaultTimeFormat;
if (!string.IsNullOrEmpty(Logo))
options.Logo = Logo;
if (!string.IsNullOrEmpty(ProductName))
options.ProductName = ProductName;
return options;
}

View File

@@ -37,8 +37,8 @@
<div class="ui header item">
<img class="logo" src="{{Logo}}">{{ProductName}} Quartzmin
</div>
{{MenuItemActionLink text='Overview' controller='Scheduler'
}}
{{MenuItemActionLink text='Overview' controller='Scheduler'}}
{{MenuItemActionLink 'Jobs'}}
{{MenuItemActionLink 'Triggers'}}
{{MenuItemActionLink 'Executions'}}