Skip to content

Commit

Permalink
Merge pull request #3 from nadja97/master
Browse files Browse the repository at this point in the history
Default FontAwesome 5 icons
  • Loading branch information
bpocallaghan authored May 20, 2020
2 parents 5087edb + aa47cc9 commit 8ed3622
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions resources/views/alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<button type="button" class="close" data-dismiss="alert">&times;</button>
@endif
@if (session('alert.icon'))
<i class="fa-fw fa fa-{{ session('alert.icon') }}"></i>
<i class="{{ session('alert.icon') }}"></i>
@endif
<strong>{{ session('alert.title') }}</strong>
{!! session('alert.content') !!}
Expand All @@ -25,4 +25,4 @@
@endif
})
</script>
@endsection
@endsection
10 changes: 5 additions & 5 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ function alert_icon($level)
{
switch ($level) {
case 'danger':
return 'times';
return 'fas fa-fw fa-times';
break;
case 'warning':
return 'warning';
return 'fas fa-fw fa-warning';
break;
case 'success':
return 'check';
return 'fas fa-fw fa-check';
break;
default: // info / default
return 'info';
return 'fas fa-fw fa-info';
break;
}
}
}
}

0 comments on commit 8ed3622

Please sign in to comment.