{% load i18n %}
{% load icons %}

{% if simple %}
<span lang="{{ language.code }}" dir="{{ language.direction }}">{{ items.0.content }}</span>
{% else %}
<div class="list-group">
  {% for item in items %}
  <div class="list-group-item">
    {% if item.title %}
    <h5 class="list-group-item-heading"><strong>{{ item.title }}</strong></h5>
    {% endif %}
    <div class="list-group-item-text" lang="{{ language.code }}" dir="{{ language.direction }}">
      {% if unit %}
      <button type="button" class="btn btn-link btn-xs pull-right flip" data-clipboard-text="{{ item.copy }}" title="{% trans "Copy to clipboard" %}">{% icon "copy.svg" %}</button>
      {% endif %}
      {{ item.content }}</div>
  </div>
  {% endfor %}
</div>
{% endif %}
