Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for announcement in announcements %}
- {% if count is divisible by(2) %}
- <div class="row">
- {% endif %}
- {% set count = count + 1 %}
- <div class="col-md-6">
- <div class="card-settings" style="background-color: white;height: 340px;overflow:hidden;">
- <h4>{{ announcement.getViewstring }} - {{ announcement.datetime|date("d/m/Y", app.user.timezone) }}</h4>
- <div style="background: linear-gradient(rgba(255,0,55,1), rgba(255,152,255,0))">
- <div id="newsContent_{{ announcement.id }}" style="max-height: 300px;overflow:hidden">
- {{ announcement.body | raw }}
- </div>
- <br>
- <div style="position:absolute;bottom:0;right:0;">
- <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>
- </div>
- </div>
- <br>
- </div>
- </div>
- {% if count is divisible by(2) %}
- </div>
- <br>
- {% endif %}
- {% endfor %}
- {% if count is not divisible by(2) %}
- </div>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement