Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. {% for announcement in announcements %}
  2.  
  3. {% if count is divisible by(2) %}
  4. <div class="row">
  5. {% endif %}
  6. {% set count = count + 1 %}
  7.  
  8. <div class="col-md-6">
  9. <div class="card-settings" style="background-color: white;height: 340px;overflow:hidden;">
  10. <h4>{{ announcement.getViewstring }} - {{ announcement.datetime|date("d/m/Y", app.user.timezone) }}</h4>
  11. <div style="background: linear-gradient(rgba(255,0,55,1), rgba(255,152,255,0))">
  12. <div id="newsContent_{{ announcement.id }}" style="max-height: 300px;overflow:hidden">
  13. {{ announcement.body | raw }}
  14. </div>
  15. <br>
  16. <div style="position:absolute;bottom:0;right:0;">
  17. <a href="{{ path("app_portal_announcements_view", {id: announcement.id}) }}" class="btn btn-xs btn-sm btn-announce waves-effect waves-light" style="margin-top:-10px;margin-right:25px">Read More</a>
  18. </div>
  19. </div>
  20. <br>
  21. </div>
  22. </div>
  23.  
  24. {% if count is divisible by(2) %}
  25. </div>
  26. <br>
  27. {% endif %}
  28.  
  29. {% endfor %}
  30. {% if count is not divisible by(2) %}
  31. </div>
  32. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement