You are here

hacked-file-status.html.twig in Hacked! 8.2

<div{{ status.attributes.addClass('project-update__status') }}>
  {%- if status.label -%}
    <span>{{ status.label }}</span>
  {%- endif %}
  <span class="project-update__status-icon">
    {{ status.icon }}
  </span>
</div>

<div class="project-update__title">
  {%- if file.url -%}
    <a href="{{ file.url }}">{{ file.name }}</a>
  {%- else -%}
    {{ file.name }}
  {%- endif %}
</div>

File

templates/hacked-file-status.html.twig
View source
  1. <div{{ status.attributes.addClass('project-update__status') }}>
  2. {%- if status.label -%}
  3. <span>{{ status.label }}</span>
  4. {%- endif %}
  5. <span class="project-update__status-icon">
  6. {{ status.icon }}
  7. </span>
  8. </div>
  9. <div class="project-update__title">
  10. {%- if file.url -%}
  11. <a href="{{ file.url }}">{{ file.name }}</a>
  12. {%- else -%}
  13. {{ file.name }}
  14. {%- endif %}
  15. </div>