plexpy/data/interfaces/default/notifier_text_preview.html
2018-08-12 10:31:27 -07:00

27 lines
No EOL
1,015 B
HTML

<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-remove"></i></button>
<h4 class="modal-title">Notification Text Preview</h4>
</div>
<div class="modal-body">
% if text:
% for item in text:
<div style="padding-bottom: 10px;">
<h4>${item['media_type'].capitalize()}</h4>
% if agent != 'webhook':
<pre>${item['subject']}</pre>
% endif
% if agent != 'scripts':
<pre>${item['body']}</pre>
% endif
</div>
% endfor
% else:
<div style="text-align: center;"><i class="fa fa-exclamation-circle"></i> Failed to generate preview.</div>
% endif
</div>
<div class="modal-footer">
</div>
</div>
</div>