<div class="md-file-attach">
  <span class="md-file-attach-icon"></span><a href="{{ direct_url }}">{{ name }}</a>
  {% if note %}
    <span class="md-file-attach-note">{{ note }}</span>
  {% endif %}
  <span class="md-file-attach-size">{{ size }}</span>
</div>