Skip to content

Commit

Permalink
Remove internet warning
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed May 21, 2018
1 parent eff6d8f commit 75041ce
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions application/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,38 +84,26 @@
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
{% if internet == "warning" %}
<h3 class="modal-title" id="exampleModalLongTitle">You are not connected to the internet!</h3>
{% elif http == "error" %}
<h3 class="modal-title" id="exampleModalLongTitle">Oops! I'm very sorry, but something went wrong...</h3>
{% endif %}
<h3 class="modal-title" id="exampleModalLongTitle">Oops! I'm very sorry, but something went wrong...</h3>
</div>
<div class="modal-body">
{% if internet == "warning" %}
To ensure that the application is fully functional, you <b>need a connection to the internet</b>. Complications <i>may</i> occur offline, but they do not have to. This has several influencing factors. However, the missing connection <b>can be a reason for errors</b>.
{% elif http == "error" %}
Looks like something didn't work out as expected. Maybe you can figure out this error message by yourself:
<br>
<br>
<b>{{ error_message|safe }}</b>
<br>
<br>
In any case, it would be very useful for us if you write a bug report either on <a href="https://github.com/DARIAH-DE/TopicsExplorer/issues">GitHub</a>, or send an email to <a href="mailto:severin.simmler@stud-mail.uni-wuerzburg.de">Severin Simmler</a>. Please include the error message from above in your report, and at best some details about your corpus (esp. file format).
{% endif %}
In any case, it would be very useful for us if you write a bug report either on <a href="https://github.com/DARIAH-DE/TopicsExplorer/issues">GitHub</a>, or send an email to <a href="mailto:severin.simmler@stud-mail.uni-wuerzburg.de">Severin Simmler</a>. Please include the error message from above in your report, at best some details about your corpus (esp. file format), and about your operating system.
<br>
<br>
</div>
<div class="modal-footer">
{% if internet == "warning" %}
<button type="button" class="btn btn-secondary" data-dismiss="modal">Got it!</button>
{% elif http == "error" %}
<button type="button" class="btn btn-secondary" data-dismiss="modal">Go back and try again</button>
{% endif %}
</div>
</div>
</div>
</div>
{% if internet == "warning" or http == "error" %}
{% if http == "error" %}
<script>
$('#errorModal').modal('show');
</script>
Expand Down

0 comments on commit 75041ce

Please sign in to comment.