Resilently handle IndieAuth clients that don't have a logo in their h-x-app

This commit is contained in:
Danielle McLean 2018-06-25 18:01:29 +10:00
parent b32412f4fd
commit bb91d3c6b6
Signed by untrusted user: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -9,8 +9,10 @@
<form class="card" method="post" action="{{ url('lemonauth:indie_approve') }}"> <form class="card" method="post" action="{{ url('lemonauth:indie_approve') }}">
<h4 class="card-header h-x-app"> <h4 class="card-header h-x-app">
{% if app %} {% if app %}
<img class="u-logo p-name" src="{{ app.logo[0] }}" alt="{{ app.name[0] }}"> {% if app.logo is defined %}
sign in to {{ app.name[0] }} (<a class="u-url code" href="{{ params.client_id }}">{{ params.client_id }}</a>)? <img class="u-logo" src="{{ app.logo[0] }}" alt="{{ app.name[0] }}" />
{% endif %}
sign in to <span class="p-name">{{ app.name[0] }}</span> (<a class="u-url code" href="{{ params.client_id }}">{{ params.client_id }}</a>)?
{% else %} {% else %}
sign in to <a class="u-url p-name code" href="{{ params.client_id }}">{{ params.client_id }}</a>? sign in to <a class="u-url p-name code" href="{{ params.client_id }}">{{ params.client_id }}</a>?
{% endif %} {% endif %}