Skip to content

Commit 12b1e0b

Browse files
committed
fix title
1 parent 8119519 commit 12b1e0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/controllers/CrudController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function returnView()
7878
return \View::make('panelViews::all', array(
7979
'grid' => $this->grid,
8080
'filter' => $this->filter,
81+
'title' => $this->entity ,
8182
'current_entity' => $this->entity,
8283
'import_message' => (\Session::has('import_message')) ? \Session::get('import_message') : ''
8384
));
@@ -94,6 +95,7 @@ public function returnEditView()
9495
throw new \Exception('This url is set yet !');
9596
} else {
9697
return \View::make('panelViews::edit', array(
98+
'title' => $this->entity ,
9799
'edit' => $this->edit
98100
));
99101
}

src/views/master.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link media="all" type="text/css" rel="stylesheet" href="{{asset("packages/zofe/rapyd/assets/colorpicker/css/bootstrap-colorpicker.min.css")}}">
1818
<!--link media="all" type="text/css" rel="stylesheet" href="{{asset("packages/serverfireteam/rapyd-laravel/assets/colorpicker/css/bootstrap-colorpicker.min.css")}}" -->
1919

20-
<title>{{$title}}</title>
20+
<title>{{isset($title) ? $title : 'Panel'}}</title>
2121
<!-- compiled styles -->
2222

2323

0 commit comments

Comments
 (0)