mirror of
https://github.com/fergalmoran/Quartzmin.git
synced 2025-12-22 09:27:38 +00:00
Add logo and product name to SelfHost
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -37,28 +37,28 @@
|
||||
<div class="ui header item">
|
||||
<img class="logo" src="{{Logo}}">{{ProductName}} Quartzmin
|
||||
</div>
|
||||
{{MenuItemActionLink text='Overview' controller='Scheduler'
|
||||
}}
|
||||
{{MenuItemActionLink 'Jobs'}}
|
||||
{{MenuItemActionLink 'Triggers'}}
|
||||
{{MenuItemActionLink 'Executions'}}
|
||||
{{MenuItemActionLink 'History'}}
|
||||
{{MenuItemActionLink 'Calendars'}}
|
||||
|
||||
<!--
|
||||
<div class="right menu">
|
||||
<div class="ui dropdown item">
|
||||
<i class="user circle large icon"></i>
|
||||
domain\user
|
||||
<i class="dropdown icon"></i>
|
||||
<div class="menu">
|
||||
<a class="item center" href="#">Logout</a>
|
||||
{{MenuItemActionLink text='Overview' controller='Scheduler'}}
|
||||
{{MenuItemActionLink 'Jobs'}}
|
||||
{{MenuItemActionLink 'Triggers'}}
|
||||
{{MenuItemActionLink 'Executions'}}
|
||||
{{MenuItemActionLink 'History'}}
|
||||
{{MenuItemActionLink 'Calendars'}}
|
||||
|
||||
<!--
|
||||
<div class="right menu">
|
||||
<div class="ui dropdown item">
|
||||
<i class="user circle large icon"></i>
|
||||
domain\user
|
||||
<i class="dropdown icon"></i>
|
||||
<div class="menu">
|
||||
<a class="item center" href="#">Logout</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ui main container" {{#footer}}style="min-height: calc(100% - 173px);"{{/footer}}>
|
||||
{{{body}}}
|
||||
|
||||
Reference in New Issue
Block a user