Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
1e18d75c
Commit
1e18d75c
authored
Nov 25, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the custom messages
parent
4b98868a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
message.blade.php
resources/views/packages/laracasts/flash/message.blade.php
+22
-0
modal.blade.php
resources/views/packages/laracasts/flash/modal.blade.php
+19
-0
No files found.
resources/views/packages/laracasts/flash/message.blade.php
0 → 100644
View file @
1e18d75c
@if (Session::has('flash_notification.message'))
@if (Session::has('flash_notification.overlay'))
@include('flash::modal', ['modalClass' => 'flash-modal', 'title' => 'Notice', 'body' => Session::get('flash_notification.message')])
@else
<?php
$message
=
Session
::
get
(
'flash_notification.message'
);
?>
<?php
$level
=
Session
::
get
(
'flash_notification.level'
);
?>
<?php
if
(
$level
==
'danger'
)
:
?>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
alertify
.
error
(
"
<?php
echo
$message
;
?>
"
);
});
</script>
<?php
endif
;
?>
<?php
if
(
$level
==
'success'
)
:
?>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
alertify
.
success
(
"
<?php
echo
$message
;
?>
"
);
});
</script>
<?php
endif
;
?>
@endif
@endif
resources/views/packages/laracasts/flash/modal.blade.php
0 → 100644
View file @
1e18d75c
<div
id=
"flash-overlay-modal"
class=
"modal fade {{ $modalClass or '' }}"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
{{ $title }}
</h4>
</div>
<div
class=
"modal-body"
>
<p>
{{ $body }}
</p>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment