@model Application.LinkDTO[]
@{
  ViewData["Title"] = "Latest links";
}

<h1>Latest links</h1>

@if (Model.Length == 0) {
  <p>No links yet :'(</p>
} else {
  <ul>
  @foreach (var link in Model)
  {
      <li>
        <partial name="_LinkItem" model="@link" />
      </li>
  }
  </ul>
}