Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <div class="row">
- @foreach (var article in Model)
- {
- <div class="col-sm-6">
- <article>
- <header>
- <h2>
- @Html.ActionLink(@article.Title, "Details", "Article", new { @id = article.Id }, null)
- </h2>
- </header>
- <p>
- @article.Content
- </p>
- <footer>
- <div class="pull-left">
- @foreach (var tag in article.Tags)
- {
- @Html.ActionLink(tag.Name, "List", "Tag", new { @id = tag.Id }, new { @class = "btn btn-default btn-xs" })
- }
- </div>
- <small class="author pull-right">
- --author @article.Author.FullName
- </small>
- </footer>
- </article>
- </div>
- }
- </div>
- </div>
- <hr />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement