Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
[Upg] add favicon / update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJuliuss committed Nov 29, 2013
1 parent 18a0913 commit 329658d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Syntara is an admin system for Laravel 4.
- Romanian (ro)
- Russian (ru)
- Slovenian (sl)
- Vietnamese (vi)

### Todo

Expand Down Expand Up @@ -166,6 +167,14 @@ This passes in 2 views, 'left-nav' and 'right-nav'. These add links to the left

Pass a string called siteName to the view composer to change the site name.

### Add your favicon

View::composer('syntara::layouts.dashboard.master', function($view)
{
$view->nest('favicon', 'favicon_path');
$view->nest('faviconType', 'favicon_type');
});

### Use Syntara Permission Models

Permission Provider
Expand Down
18 changes: 0 additions & 18 deletions src/commands/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,5 @@ public function fire()
// run migrations
$this->call('migrate', array('--env' => $this->option('env'), '--package' => 'cartalyst/sentry' ) );
$this->call('migrate', array('--env' => $this->option('env'), '--package' => 'mrjuliuss/syntara' ) );

// create admin group
try
{
$this->info('Creating "Admin" group...');
$group = Sentry::getGroupProvider()->create(array(
'name' => 'Admin',
'permissions' => array(
'superuser' => 1
),
));

$this->info('"Admin" group created with success');
}
catch (\Cartalyst\Sentry\Groups\GroupExistsException $e)
{
$this->info('"Admin" group already exists');
}
}
}
5 changes: 5 additions & 0 deletions src/views/layouts/dashboard/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
<link rel="stylesheet" href="{{ asset('packages/mrjuliuss/syntara/assets/css/toggle-switch.css') }}" />
<link rel="stylesheet" href="{{ asset('packages/mrjuliuss/syntara/assets/css/base.css') }}" media="all">

@if (!empty($favicon))
<link rel="icon" {{ !empty($faviconType) ? 'type="$faviconType"' : '' }} href="{{ $favicon }}" />
@endif

<script src="{{ asset('packages/mrjuliuss/syntara/assets/js/jquery-2.0.3.min.js') }}"></script>
<script src="{{ asset('packages/mrjuliuss/syntara/assets/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('packages/mrjuliuss/syntara/assets/js/dashboard/base.js') }}"></script>

<title>{{ (!empty($siteName)) ? $siteName : "Syntara"}} - {{isset($title) ? $title : '' }}</title>
</head>
<body>
Expand Down

0 comments on commit 329658d

Please sign in to comment.