Dashboard link, use route aliases for easier linking

This commit is contained in:
James Brooks
2014-12-18 22:45:36 +00:00
parent 453a3d0a49
commit 1620e6e5e5
2 changed files with 12 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ return array(
// Other
'powered_by' => ':app Status Page is powered by <a href="https://cachethq.github.io">Cachet</a>.',
'logout' => 'Logout',
'dashboard_link' => 'You\'re logged in.',
'logged_in' => 'You\'re logged in.',
'setup' => 'Setup Cachet',
'dashboard' => array(
'dashboard' => 'Dashboard',

View File

@@ -6,8 +6,17 @@
@if(Auth::check())
<div class='row'>
<div class='col-md-12'>
<a class="btn btn-primary pull-right" href="/auth/logout">{{ Lang::get('cachet.logout') }}</a>
<p>{{ Lang::get('cachet.dashboard_link') }}</p>
<div class='row'>
<div class='col-md-6'>
<p>{{ Lang::get('cachet.logged_in') }}</p>
</div>
<div class='col-md-6'>
<div class='btn-group pull-right'>
<a class="btn btn-default" href="{{ URL::route('dashboard') }}">{{ Lang::get('cachet.dashboard.dashboard') }}</a>
<a class="btn btn-danger" href="{{ URL::route('logout') }}">{{ Lang::get('cachet.logout') }}</a>
</div>
</div>
</div>
</div>
</div>
@endif