Small UI change in User Credentials Details modal
This patch adds/removes left or right helper classes. These conditions were
added in order to remove an empty white space to the right of the user
credentials ONLY if the user does not have EC2 Credentials.
{% block modal-body %}
<form>
{% if openrc_creds %}
- <div class="left">
+ <div class="{% if ec2_creds %}left{% endif %}">
<div class="form-group">
<label for="openrc-user">{% trans "User Name" %}</label>
<input type="text" class="form-control" id="openrc-user" readonly value="{{ openrc_creds.user }}">
</div>
{% endif %}
{% if ec2_creds %}
- <div class="right">
+ <div class="{% if openrc_creds %}right{% endif %}">
<div class="form-group">
<label for="ec2-url">{% trans "EC2 URL" %}</label>
<input type="text" id="ec2-url" class="form-control" readonly value="{{ ec2_creds.ec2_endpoint }}">
