Added error handling for missing corp models.

Addresses #116 and more unreported.
This commit is contained in:
Adarnof
2015-12-02 04:45:57 +00:00
parent 57aca60cdf
commit c85882fa74
3 changed files with 33 additions and 22 deletions

View File

@@ -8,7 +8,7 @@
<h1 class="page-header text-center">Corporation Stats</h1>
{% if perms.auth.member %}
<div class="col-lg-12 container" id="example">
{% if corp %}
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
@@ -63,7 +63,15 @@
</div>
</div>
</div>
{% else %}
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
<div class="row">
<div class="alert alert-danger text-center" role="alert">No corporation model found. Contact your admin.</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% else %}