You are here

asset-details.html.twig in Media: Acquia DAM 8

<div class="asset-preview">
  <img src="{{ asset_preview }}" alt="Asset preview" />
  <br/>
  <a target="_blank" href="{{ asset_link }}">Open in Acquia DAM</a>
</div>

<div class="asset-data">
  <table>
    <tr>
      <td colspan="2"><strong>Asset Properties</strong></td>
    </tr>
    {% for attribute, value in asset_data.base_properties %}
      <tr>
        <td>{{ attribute }}</td>
        <td>{{ value }}</td>
      </tr>
    {% endfor %}


    {% if asset_data.additional_metadata is not empty %}
      <tr>
        <td colspan="2"><strong>Additional Metadata</strong></td>
      </tr>
      {% for attribute, value in asset_data.additional_metadata %}
        <tr>
          <td>{{ attribute }}</td>
          <td>{{ value }}</td>
        </tr>
      {% endfor %}
    {% endif %}
  </table>
</div>

File

templates/asset-details.html.twig
View source
  1. <div class="asset-preview">
  2. <img src="{{ asset_preview }}" alt="Asset preview" />
  3. <br/>
  4. <a target="_blank" href="{{ asset_link }}">Open in Acquia DAM</a>
  5. </div>
  6. <div class="asset-data">
  7. <table>
  8. <tr>
  9. <td colspan="2"><strong>Asset Properties</strong></td>
  10. </tr>
  11. {% for attribute, value in asset_data.base_properties %}
  12. <tr>
  13. <td>{{ attribute }}</td>
  14. <td>{{ value }}</td>
  15. </tr>
  16. {% endfor %}
  17. {% if asset_data.additional_metadata is not empty %}
  18. <tr>
  19. <td colspan="2"><strong>Additional Metadata</strong></td>
  20. </tr>
  21. {% for attribute, value in asset_data.additional_metadata %}
  22. <tr>
  23. <td>{{ attribute }}</td>
  24. <td>{{ value }}</td>
  25. </tr>
  26. {% endfor %}
  27. {% endif %}
  28. </table>
  29. </div>