Skip to content

Instantly share code, notes, and snippets.

@glennblock
Created January 8, 2012 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glennblock/1577068 to your computer and use it in GitHub Desktop.
Save glennblock/1577068 to your computer and use it in GitHub Desktop.
Web Api - RestBugs bug template
<html>
<head>
<title></title>
</head>
<body>
<table border="1">
<tr>
<td>ID</td>
<td>Name</td>
<td>Status</td>
<td>Priority</td>
<td>Rank</td>
<td>Assigned To</td>
<td>History</td>
<td>Item Link</td>
</tr>
@foreach (var item in @Model)
{
<tr class="bug-data">
<td class="id">@item.Id</td>
<td class="name">@item.Name</td>
<td class="status">@item.Status</td>
<td class="priority">@item.Priority</td>
<td class="rank">@item.Rank</td>
<td class="assignedTo">@LinkFromEntity(item.AssignedTo, "assignedTo")</td>
<td>@LinkFromEntity("history", item, "history")</td>
<td>@LinkFromEntity(item, "self")</td>
</tr>
}
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment