Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aplica highlight nos itens do menu em todos os casos possíveis #365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Http/Controllers/FilaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public function storeTemplateJson(Request $request, Fila $fila)
public function createTemplate(Fila $fila)
{
$this->authorize('filas.update', $fila);
\UspTheme::activeUrl('filas');

$template = json_decode($fila->template, true);
return view('filas.template', compact('fila', 'template'));
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ public function index()

public function ajuda()
{
\UspTheme::activeUrl('ajuda');
return view('ajuda/index');
}

public function manual_usuario()
{
\UspTheme::activeUrl('ajuda');
return view('ajuda/manual-usuario');
}

public function manual_atendente()
{
\UspTheme::activeUrl('ajuda');
return view('ajuda/manual-atendente');
}
}
2 changes: 2 additions & 0 deletions app/Http/Controllers/PatrimonioController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class PatrimonioController extends Controller
*/
public function index()
{
\UspTheme::activeUrl('patrimonios');
$this->authorize('perfiladmin');
$patrimonios = Patrimonio::all();

Expand Down Expand Up @@ -49,6 +50,7 @@ public function store(Request $request)
*/
public function show($numpat)
{
\UspTheme::activeUrl('patrimonios');
$this->authorize('perfiladmin');

$patrimonio = Patrimonio::where('numpat', $numpat)->first();
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function store(Request $request)
public function show(User $user)
{
$this->authorize('users.view', $user);
\UspTheme::activeUrl('users');
\UspTheme::activeUrl('senhaunica-users');

$oauth_file = 'debug/oauth/' . $user->codpes . '.json';

Expand Down