Advertisement
Guest User

testetst

a guest
Mar 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <div class="container">
  2. <div class="row">
  3. @foreach (var article in Model)
  4. {
  5. <div class="col-sm-6">
  6. <article>
  7. <header>
  8. <h2>
  9. @Html.ActionLink(@article.Title, "Details", "Article", new { @id = article.Id }, null)
  10. </h2>
  11. </header>
  12. <p>
  13. @article.Content
  14. </p>
  15. <footer>
  16. <div class="pull-left">
  17. @foreach (var tag in article.Tags)
  18. {
  19. @Html.ActionLink(tag.Name, "List", "Tag", new { @id = tag.Id }, new { @class = "btn btn-default btn-xs" })
  20. }
  21. </div>
  22. <small class="author pull-right">
  23. --author @article.Author.FullName
  24. </small>
  25. </footer>
  26.  
  27. </article>
  28. </div>
  29. }
  30. </div>
  31. </div>
  32. <hr />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement