- <div class="col-md-4">
- <h2>Getting started</h2>
- <p>
- ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
- enables a clean separation of concerns and gives you full control over markup
- for enjoyable, agile development.
- </p>
- <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301865">Learn more »</a></p>
+ <div class="col-md-6">
+ <h2>Ostatnio edytowany projekt</h2>
+
+ @if (ViewBag.recentProject != null)
+ {
+ <p>@Html.ActionLink((string)ViewBag.recentProject.name, "Details", "Projects")</p>
+ <em>@ViewBag.recentProject.description</em>
+ <span>przez: @ViewBag.recentProject.User.login</span>
+ }
+ else {
+ <p>Brak</p>
+ }
+ <p><a class="btn btn-default" href="@Url.Action("Index", "Projects")">Pełna lista projektów »</a></p>