Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.4 KiB

5 years ago
  1. {% block noticia %}
  2. {% set noticiaImage = vich_uploader_asset(noticia, 'imageFile', 'App\\Entity\\News') %}
  3. <div class="my-3 p-3 bg-white rounded shadow-sm">
  4. <a href="{{ path('admin_app_news_getShowNewsAjax', {'id': noticia.id}) }}" class="news-link" data-title="{{ noticia.titulo }}"
  5. data-image="{{ noticiaImage }}" data-toggle="modal" data-target="#myModal">
  6. <div class="boxdoc text-muted pt-3">
  7. {% if noticia.imagen!=null %}
  8. <img src="{{ noticiaImage }}" alt="{{ noticia.titulo }}" width="30px"/>
  9. {%else%}
  10. <img src="/bundles/sonatauser/default_avatar.png" alt="{{ noticia.titulo }}" width="30px"/>
  11. {% endif %}
  12. <div class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
  13. <div class="d-flex justify-content-between align-items-center w-100">
  14. <strong class="text-gray-dark">{{ noticia.titulo }}</strong>
  15. </div>
  16. <div class="d-flex justify-content-between align-items-center w-100">
  17. <span class="d-block">{{ noticia.entrada }}</span>
  18. </div>
  19. <span class="d-block">{{ noticia.bso.nombreCompleto }}</span>
  20. </div>
  21. </div>
  22. </a>
  23. </div>
  24. {% endblock %}