Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @page
- @using TopsyTurvyCakes.Models
- <html>
- <head>
- <title>Topsy Turvy Cake Design</title>
- <link rel="stylesheet" href="~/site.css" />
- </head>
- <body>
- <header class="container site-header">
- <div class="row">
- <h1 class="main-logo"><a href="/">Topsy Turvy Cake Design</a></h1>
- </div>
- <div class="row">
- <nav class="navbar">
- <ul class="nav nav-pills">
- <li><a href="/About">About</a></li>
- <li><a href="/Blog">Blog</a></li>
- <li><a class="active" href="/">Recipes</a></li>
- <li><a href="/Portfolio">Portfolio</a></li>
- <li><a href="/Contact">Contact</a></li>
- </ul>
- <ul class="nav nav-pills">
- <li>
- <a href="/Account/Login">Login</a>
- </li>
- </ul>
- </nav>
- </div>
- <div class="row">
- <h2 class="title">My Favorite Recipes</h2>
- </div>
- </header>
- <div class="container">
- <div class="row recipes">
- @{
- RecipesService recipesService = new RecipesService();
- List<Recipe> recipeList = recipesService.GetAll().ToList();
- }
- @foreach (Recipe recipe in recipeList)
- {
- <div class="recipe col-md-4">
- <img class="img img-thumbnail" src="@recipe.GetInlineImageSrc()" />
- <h3><a href="/Recipe">@recipe.Name</a></h3>
- <p>@recipe.Description</p>
- </div>
- }
- </div>
- </div>
- <footer>
- <div class="text-center">
- <span class="text-muted">Last Rendered: @DateTime.Now </span>
- </div>
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement