{% extends 'template.twig' %}
{% block cssAssets %}
{% endblock %}
{% block jsAssets %}
{% endblock %}
{% block pageTitle %}
Imperial Information Service
{% endblock %}
{% block content %}
{% for n in news[0:1] %}
<div class="ins ins-article">
<div class="ins ins-header">
<h1 class="ins ins-title"><a href="{{ path('ins.article', {'article': n.id}) }}">{{ n.title|raw }}</a></h1>
<div class="ins ins-poster">{{ n.poster.getName() }}</div>
<time datetime="{{ n.time.realDateTime }}" class="ins ins-time">{{ n.time.cgtDateString }}</time>
</div>
<div class="ins ins-body">
{{ n.text|raw }}
</div>
</div>
{% endfor %}
{% for n in news[1:2] %}
<div class="ins ins-article">
<div class="ins ins-header">
<h1 class="ins ins-title"><a href="{{ path('ins.article', {'article': n.id}) }}">{{ n.title }}</a></h1>
<div class="ins ins-poster">{{ n.poster.getName() }}</div>
<time datetime="{{ n.time.realDateTime }}" class="ins ins-time">{{ n.time.cgtDateString }}</time>
</div>
<div class="ins ins-body">
{{ n.blurb|raw }}
</div>
</div>
{% endfor %}
<h2>Recent Articles</h2>
<ul class="ins ins-recent">
{% for n in news[3:] %}
<li><i class="fa fa-caret-right caret"></i> <a href="{{ path('ins.article', {'article': n.id }) }}"><span class="ins-title">{{ n.title|raw }}</span> <span class="ins ins-time">(Y{{ n.time.cgtObj.years }} D{{ n.time.cgtObj.days }})</span></a></li>
{% endfor %}
{% if recent is defined %}
{% for n in recent %}
<li><a href="{{ path('ins.article', {'article': n.id }) }}"><span><i class='fa fa-caret-right'></i></span> {{ n.title|raw }} <span class="ins ins-time">(Y{{ n.time.cgtObj.years }} D{{ n.time.cgtObj.days }})</span></a></li>
{% endfor %}
{% endif %}
<li><a href="{{ path('ins.archive') }}">Archive</a></li>
</ul>
{% endblock %}