Display description line breaks

This commit is contained in:
Rodolphe Breard 2019-07-27 18:01:39 +02:00
parent c07f2f11a9
commit d358eb8aef

View file

@ -20,7 +20,7 @@
{% for pass in passwords %}
<tr>
<td class="has-text-weight-semibold">{{ pass.name }}</td>
<td class="has-text-weight-light">{{ pass.description }}</td>
<td class="has-text-weight-light">{{ pass.description|linebreaksbr }}</td>
<td>{% if pass.url %}<a href="{{ pass.url }}" target="_blank">{{ pass.url|truncatechars:30 }}</a>{% endif %}</td>
<td><input class="input" type="password" id="password_{{ pass.uuid }}" name="password_{{ pass.uuid }}" value="{{ pass.decrypt_password }}" /></td>
<td><a class="button is-primary" onclick="navigator.clipboard.writeText(document.getElementById('password_{{ pass.uuid }}').value).then(function() { console.log('Password copied to clipboard'); }, function(err) { console.error('Unable to copy password to clipboard'); });">{% trans "copy_password" %}</a></td>