Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // _Layout.cshtml
- <!DOCTYPE html>
- <html>
- <head>
- <title>@ViewBag.Title</title>
- <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
- <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
- </head>
- <body>
- <div id="page">
- <div id="sidebar">
- @Html.Partial("_Sidebar")
- </div>
- <div id="content">
- @RenderBody()
- </div>
- </div>
- </body>
- </html>
- // Index.cshtml
- @model IEnumerable<pBlog.Models.ImageGroup>
- @{
- ViewBag.Title = "pBlog Index";
- }
- @foreach (var item in Model)
- {
- <div class="post clearfix">
- <div class="date">
- <span class="month">@string.Format("{0:MMM}", item.Time)</span>
- <span class="day">@item.Time.Day</span>
- <span class="year">@item.Time.Year</span>
- </div>
- @foreach (var image in item.Images)
- {
- <a title="@image.Caption" href="@Url.Action("Details", new { id = image.Id })">
- <img class="thumbnail" alt="@image.Caption" src="@image.Path" />
- </a>
- }
- </div>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement