From 0b8071413e2336482aeb8e7d8603c7397adda0d3 Mon Sep 17 00:00:00 2001 From: gorohoroh Date: Sat, 14 Jul 2018 23:44:56 +0300 Subject: [PATCH] Styling views with bootstrap --- .../OdeToFoodRider/Views/Home/Index.cshtml | 2 +- .../OdeToFoodRider/Views/Home/_Summary.cshtml | 12 ++--- .../Views/Shared/_Layout.cshtml | 53 ++++++++++-------- .../Views/Home/Index.cshtml | 2 +- .../Views/Home/_Summary.cshtml | 12 ++--- .../Views/Shared/_Layout.cshtml | 54 +++++++++++-------- 6 files changed, 78 insertions(+), 57 deletions(-) diff --git a/OdeToFoodRider/OdeToFoodRider/Views/Home/Index.cshtml b/OdeToFoodRider/OdeToFoodRider/Views/Home/Index.cshtml index 9ee4ccc..28edc58 100644 --- a/OdeToFoodRider/OdeToFoodRider/Views/Home/Index.cshtml +++ b/OdeToFoodRider/OdeToFoodRider/Views/Home/Index.cshtml @@ -11,4 +11,4 @@ @Html.Partial("_Summary", restaurant) } -
Add Restaurant
+
Add Restaurant
diff --git a/OdeToFoodRider/OdeToFoodRider/Views/Home/_Summary.cshtml b/OdeToFoodRider/OdeToFoodRider/Views/Home/_Summary.cshtml index d86f213..89e4393 100644 --- a/OdeToFoodRider/OdeToFoodRider/Views/Home/_Summary.cshtml +++ b/OdeToFoodRider/OdeToFoodRider/Views/Home/_Summary.cshtml @@ -1,13 +1,13 @@ @model Restaurant -
-

@Model.Name

-
+
+

@Model.Name

+
Cuisine: @Model.Cuisine
-
- More - Edit +
diff --git a/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml b/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml index 1e365ca..3767877 100644 --- a/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml +++ b/OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml @@ -6,29 +6,40 @@ -
+ +
@RenderBody() -
-
- @RenderSection("footer", required: false) - @await Component.InvokeAsync("Greeter") - - @if (User.Identity.IsAuthenticated) - { - foreach (var identity in User.Identities) +
+ @RenderSection("footer", required: false) + @await Component.InvokeAsync("Greeter") + @if (User.Identity.IsAuthenticated) + { + foreach (var identity in User.Identities) + { +

@identity.Name

+
    + @foreach (var claim in identity.Claims) + { +
  • @claim.Type - @claim.Value
  • + } +
+ } + } + else { -

@identity.Name

-
    - @foreach (var claim in identity.Claims) - { -
  • @claim.Type - @claim.Value
  • - } -
+
You are anonymous
} - } - else { -
You are anonymous
- } -
+
+ +
\ No newline at end of file diff --git a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml index 41caa87..2b5afa5 100644 --- a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml +++ b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/Index.cshtml @@ -12,5 +12,5 @@ }
- Add Restaurant + Add Restaurant
diff --git a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/_Summary.cshtml b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/_Summary.cshtml index 53f2139..98c8ac2 100644 --- a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/_Summary.cshtml +++ b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Home/_Summary.cshtml @@ -1,13 +1,13 @@ @model Restaurant -
-

@Model.Name

-
+
+

@Model.Name

+
Cuisine: @Model.Cuisine
-
- More - Edit +
\ No newline at end of file diff --git a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Shared/_Layout.cshtml b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Shared/_Layout.cshtml index 6fe8c8a..8819da4 100644 --- a/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Shared/_Layout.cshtml +++ b/OdeToFoodVisualStudio/OdeToFoodVisualStudio/Views/Shared/_Layout.cshtml @@ -7,30 +7,40 @@ -
+ +
@RenderBody() -
- + +