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

modal show detail #250

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/views/log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2"
data-display="stack{{{$key}}}">
<span class="fa fa-search"></span>
</button>
<!-- Button trigger modal -->
<button type="button" class="float-right expand btn btn-outline-dark btn-sm" data-toggle="modal" data-target="#modal-{{$key }}">
<i class="far fa-file-alt"></i>
</button>
@endif
{{{$log['text']}}}
@if (isset($log['in_file']))
Expand All @@ -250,6 +254,30 @@ class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2"
style="display: none; white-space: pre-wrap;">{{{ trim($log['stack']) }}}
</div>
@endif

<div class="modal fade bd-example-modal-lg" id="modal-{{$key }}" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<div>
<h5 class="modal-title" id="exampleModalLabel">{{{$log['text']}}}</h5>
@if (isset($log['in_file']))
<h6>{{{$log['in_file']}}}</h6>
@endif
<a class="btn btn-outline-dark btn-sm" href="https://www.google.com/search?q={{{$log['text']}}}" target="_blank"><i class="fab fa-google"></i> google</a>
<a class="btn btn-outline-dark btn-sm" href="https://stackoverflow.com/search?q={{{$log['text']}}}" target="_blank"><i class="fab fa-stack-overflow"></i> stack overflow</a>
</div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body bg-secondary text-light">
<p class="" style="white-space: pre-wrap;">{{{ trim($log['stack']) }}}</p>
</div>
</div>
</div>
</div>

</td>
</tr>
@endforeach
Expand Down