This commit is contained in:
Christoph Wille 2013-02-12 16:37:23 +01:00
Родитель abb0c4ce9b
Коммит 9a6a688bce
1 изменённых файлов: 64 добавлений и 53 удалений

Просмотреть файл

@ -1,53 +1,64 @@
@model ArtefactsSite.ViewModels.HomeIndexPageViewModel
@{
ViewBag.Title = "SharpDevelop Build Server";
}
<h1>SharpDevelop Build Server</h1>
<p>
Projects being built on this server:
</p>
<ul>
@foreach (var build in Model.Builds)
{
<li><a href="#@Html.Encode(build.Anchor)">@Html.DisplayFor(modelItem => build.Title)</a></li>
}
</ul>
@foreach (var build in Model.Builds)
{
<a name="@Html.Encode(build.Anchor)"></a>
<h2>@Html.DisplayFor(modelItem => build.Title)</h2>
if (build.Artefacts.Count > 0) {
<table class="table table-hover table-condensed">
<thead>
<th>File Name</th>
<th>Build Time</th>
<th></th>
</thead>
<tbody>
@foreach (var artefact in build.Artefacts)
{
<tr>
<td>@Html.DisplayFor(modelItem => artefact.FileName)</td>
<td>@Html.DisplayFor(modelItem => artefact.CreationDate)</td>
<td><a href="@Html.Encode(artefact.FileName)">Download</a></td>
</tr>
}
</tbody>
</table>
}
else
{
<p>No current build artefacts found</p>
}
}
<p>
@Html.DisplayFor(model => model.RenderInformation)
</p>
@model ArtefactsSite.ViewModels.HomeIndexPageViewModel
@{
ViewBag.Title = "SharpDevelop Build Server";
}
<nav class="navbar">
<div class="navbar-inner">
<ul class="nav">
<li><a href="http://community.sharpdevelop.net/forums/">Forums</a></li>
<li><a href="http://github.com/icsharpcode/">SharpDevelop on GitHub</a></li>
<li><a href="http://community.sharpdevelop.net/blogs/">Blogs</a></li>
<li><a href="http://twitter.com/sharpdevelop/">Twitter</a></li>
</ul>
</div>
</nav>
<h1>SharpDevelop Build Server</h1>
<p>
Projects being built on this server:
</p>
<ul>
@foreach (var build in Model.Builds)
{
<li><a href="#@Html.Encode(build.Anchor)">@Html.DisplayFor(modelItem => build.Title)</a></li>
}
</ul>
@foreach (var build in Model.Builds)
{
<a name="@Html.Encode(build.Anchor)"></a>
<h2>@Html.DisplayFor(modelItem => build.Title)</h2>
if (build.Artefacts.Count > 0) {
<table class="table table-hover table-condensed">
<thead>
<th>File Name</th>
<th>Build Time</th>
<th></th>
</thead>
<tbody>
@foreach (var artefact in build.Artefacts)
{
<tr>
<td>@Html.DisplayFor(modelItem => artefact.FileName)</td>
<td>@Html.DisplayFor(modelItem => artefact.CreationDate)</td>
<td><a href="@Html.Encode(artefact.FileName)">Download</a></td>
</tr>
}
</tbody>
</table>
}
else
{
<p>No current build artefacts found</p>
}
}
<p>
@Html.DisplayFor(model => model.RenderInformation)
</p>