Browse Source

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

pull/1/head
Danielle McLean 3 years ago
parent
commit
bb91d3c6b6
Signed by: 00dani GPG Key ID: 8EB789DDF3ABD240
  1. 6
      lemonauth/jinja2/lemonauth/indie.html

6
lemonauth/jinja2/lemonauth/indie.html

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

Loading…
Cancel
Save