h1 Bodyrep
p Exercise Admin

p
  a(href="/admin/users") Admin Users
p
  a(href="/admin/exercises") Admin Exercises
p
  a(href="/admin/exercises/new") Add Exercise
hr

ul
    - exercises.forEach(function(exercise) {
      li
        a(href="/admin/exercises/" + encodeURIComponent(exercise._id))= exercise.name
        form(action="/admin/exercises/" + encodeURIComponent(exercise._id), method="POST")
          input(name="_method", type="hidden", value="DELETE")
          input(type="submit", value="Delete")
    - });

  - if (page > 0) {
    a(href="?page=" + (page - 1)) Previous
    &nbsp;
  - }

  - if (! lastPage) {
    a(href="?page=" + (page + 1)) Next
  - }