Move display_graphs into AppComposer

This commit is contained in:
James Brooks
2015-11-21 23:09:20 +00:00
parent 51a4a1789e
commit c64df7eed7
3 changed files with 4 additions and 2 deletions

View File

@@ -33,8 +33,10 @@ class AppComposer
$view->withAppAnalyticsPiwikUrl(Setting::get('app_analytics_piwik_url'));
$view->withAppAnalyticsPiwikSiteId(Setting::get('app_analytics_piwik_siteid'));
$view->withAppBanner(Setting::get('app_banner'));
$view->withAppBannerStyleFullWidth(Setting::get('style_fullwidth_header'));
$view->withAppBannerType(Setting::get('app_banner_type'));
$view->withAppDomain(Setting::get('app_domain'));
$view->withAppGraphs(Setting::get('display_graphs'));
$view->withAppLocale(Setting::get('app_locale'));
$view->withAppName(Setting::get('app_name'));
$view->withAppStylesheet(Setting::get('app_stylesheet'));

View File

@@ -67,7 +67,7 @@
<div class="checkbox">
<label>
<input type="hidden" value="0" name="display_graphs">
<input type="checkbox" value="1" name="display_graphs" {{ Setting::get('display_graphs') ? 'checked' : null }}>
<input type="checkbox" value="1" name="display_graphs" {{ $app_graphs ? 'checked' : null }}>
{{ trans('forms.settings.app-setup.display-graphs') }}
</label>
</div>

View File

@@ -17,7 +17,7 @@
</div>
@endif
@if($display_metrics && Setting::get('display_graphs'))
@if($display_metrics && $app_graphs)
<div class="section-metrics">
@include('partials.metrics')
</div>