@{
- ViewBag.Title = "Home Page";
+ ViewBag.Title = "Strona główna";
}
<div class="jumbotron">
- <h1>ASP.NET</h1>
- <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
- <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more »</a></p>
+ <h1>Strona do prowadzenia projektów</h1>
+ <p class="lead">Strona do prowadzenia projektów pisana na zaliczenie przedmiotu "Projektowanie Aplikacji Internetowych"</p>
</div>
<div class="row">
- <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>
</div>
- <div class="col-md-4">
- <h2>Get more libraries</h2>
- <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
- <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301866">Learn more »</a></p>
- </div>
- <div class="col-md-4">
- <h2>Web Hosting</h2>
- <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
- <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301867">Learn more »</a></p>
+ <div class="col-md-6">
+ <h2>Ostatnio edytowane zadanie</h2>
+
+ @if (ViewBag.recentProject != null)
+ {
+ <p>@Html.ActionLink((string)ViewBag.recentTask.name, "Details", "ProjectTasks")</p>
+ <em>@ViewBag.recentTask.description</em>
+ <span>przez: @ViewBag.recentTask.User.login</span>
+ }
+ else {
+ <p>Brak</p>
+ }
+ <p><a class="btn btn-default" href="@Url.Action("Index", "ProjectTasks")">Pełna lista zadań »</a></p>
</div>
</div>
\ No newline at end of file