<%= this.head({ title: 'Les exercices' }) %>
<body>
<% data.active = 'exercices' %>
<%= this.mainmenu(data) %>
<div class="row column">
<%= this.breadcrumbs({ title: 'Les exercices', last: 'Exercices' }) %>
<ol>
<% data.rows.forEach(function (row) { %>
  <li>
    <h3><%- row.title %> <small><%- row.createdAt.split('T')[0] %></small></h3>
    <ul class="menu"><%= data.userMenu(row) %></ul>
  </li>
<% }) %>
</ol>
</div>
<%= this.js() %>
</body>
</html>

<%= this.head({ title: 'Les exercices' }) %>
<body>
<% data.active = 'exercices' %>
<%= this.mainmenu(data) %>
<div class="row column">
<%= this.breadcrumbs({ title: 'Les exercices', last: 'Exercices' }) %>
<% if (data.roles.indexOf('teacher') !== -1 || data.roles.indexOf('_admin') !== -1) { %>
<p><a class="button hollow" href="/new">Créer un exercice</a></p>
<% } %>
<ol>
<% data.rows.forEach(function (row) { %>
  <li>
    <h3><%- row.title %> <small><%- row.createdAt.split('T')[0] %></small></h3>
    <ul class="menu"><%= data.userMenu(row) %></ul>
  </li>
<% }) %>
</ol>
</div>
<%= this.js() %>
</body>
</html>

Create exercice, only for teacher (bugfix).
Create exercice, only for teacher (bugfix).
