Fixed a bug with links not registering correctly when undocked. Also removed some typos. (#418)

This commit is contained in:
Joakim Strandberg 2016-05-01 11:39:07 +02:00 committed by Mr McClain
parent fa05003455
commit dbc9b584d1
5 changed files with 9 additions and 6 deletions

View File

@ -158,7 +158,10 @@ def click_fatlink_view(request, hash, fatname):
if character:
fat = Fat()
fat.system = request.META['HTTP_EVE_SOLARSYSTEMNAME']
fat.station = request.META['HTTP_EVE_STATIONNAME']
if 'HTTP_EVE_STATIONNAME' in request.META:
fat.station = request.META['HTTP_EVE_STATIONNAME']
else:
fat.station = "No Station"
fat.shiptype = request.META['HTTP_EVE_SHIPTYPENAME']
fat.fatlink = fatlink
fat.character = character

View File

@ -26,7 +26,7 @@
</style>
</head>
<body onload="CCPEVE.requestTrust({{ DOMAIN }})">
<body onload=CCPEVE.requestTrust('{{ DOMAIN }}')>
<div id="wrapper">
<!-- Navigation -->

View File

@ -26,7 +26,7 @@
</style>
</head>
<body onload=CCPEVE.requestTrust('{{ DOMAIN }}*')>
<body onload=CCPEVE.requestTrust('{{ DOMAIN }}')>
<div id="wrapper">
<!-- Navigation -->
@ -59,7 +59,7 @@
<div class="col-lg-12">
{% if registered %}<h1 class="page-header text-center">Fleet registered!</h1> {% elif expired%}<h1 class="page-header text-center">This link has expired.</h1> {% elif errormessages%}<h1 class="page-header text-center">Something unhappened occured.</h1>{% else %}<h1 class="page-header text-center">Invalid link.</h1>{% endif %}
{% if registered %}<h1 class="page-header text-center">Fleet registered!</h1> {% elif expired%}<h1 class="page-header text-center">This link has expired.</h1> {% elif errormessages%}<h1 class="page-header text-center">Something horrible happened. Shoot your FC!</h1>{% else %}<h1 class="page-header text-center">Invalid link.</h1>{% endif %}
<div class="col-lg-12 container" id="example">
{% for message in errormessages %}
<div class="alert alert-danger" role="alert">{{ message }}</div>

View File

@ -30,7 +30,7 @@
<tr>
<td class="text-center">{{ fat.user }}</td>
<td class="text-center">{{ fat.character.character_name }}</td>
{% if fat.station != "None" %}
{% if fat.station != "No Station" %}
<td class="text-center">Docked in {{ fat.system }}</td>
{% else %}
<td class="text-center">{{ fat.system }}</td>

View File

@ -33,7 +33,7 @@
<tr>
<td class="text-center">{{ fat.fatlink.name }}</td>
<td class="text-center">{{ fat.character.character_name }}</td>
{% if fat.station != "None" %}
{% if fat.station != "No Station" %}
<td class="text-center">Docked in {{ fat.system }}</td>
{% else %}
<td class="text-center">{{ fat.system }}</td>