File tree Expand file tree Collapse file tree
Services/Identity/Identity.API/Views/Consent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717 <div class =" row" >
1818 <div class =" col-sm-8" >
19- @Html.Partial( "_ValidationSummary")
19+ < partial name = " _ValidationSummary" />
2020
2121 <form asp-action =" Index" class =" consent-form" >
2222 <input type =" hidden" asp-for =" ReturnUrl" />
3333 <ul class =" list-group" >
3434 @foreach ( var scope in Model .IdentityScopes )
3535 {
36- @Html.Partial( " _ScopeListItem" , scope )
36+ < partial name = " _ScopeListItem" model = " scope" />
3737 }
3838 </ul >
3939 </div >
4949 <ul class =" list-group" >
5050 @foreach ( var scope in Model .ResourceScopes )
5151 {
52- @Html.Partial( " _ScopeListItem" , scope )
52+ < partial name = " _ScopeListItem" model = " scope" />
5353 }
5454 </ul >
5555 </div >
Original file line number Diff line number Diff line change 11@{
22 ViewData [" Title" ] = " Campaign details" ;
33 @model CampaignItem
4+ var headerList = new List <Header >() {
5+ new Header () { Controller = " Catalog" , Text = " Back to catalog" },
6+ new Header () { Controller = " Campaigns" , Text = " Back to Campaigns" } };
47}
58<section class =" esh-campaigns-hero" >
69 <div class =" container" >
710 <img class =" esh-campaigns-title" src =" ~/images/main_banner_text.png" />
811 </div >
912</section >
1013
11- @Html.Partial( "_Header", new List<Header >() {
12- new Header () { Controller = " Catalog" , Text = " Back to catalog" } ,
13- new Header () { Controller = " Campaigns" , Text = " Back to Campaigns" } } )
14+ <partial name =" _Header" model =" headerList" />
1415
1516<div class =" container" >
1617 <div class =" card esh-campaigns-items" >
Original file line number Diff line number Diff line change 11@{
22 ViewData [" Title" ] = " Campaigns" ;
3- @model WebMVC .ViewModels .CampaignViewModel
3+ @model WebMVC .ViewModels .CampaignViewModel
4+ var headerList = new List <Header >() {
5+ new Header () { Controller = " Catalog" , Text = " Back to catalog" } };
46}
57
68<section class =" esh-campaigns-hero" >
911 </div >
1012</section >
1113
12- @Html.Partial( "_Header", new List<Header >() {
13- new Header () { Controller = " Catalog" , Text = " Back to catalog" } } )
14+ <partial name =" _Header" model =" headerList" />
1415
1516<div class =" container" >
1617 <br />
5859 @foreach ( var catalogItem in Model .CampaignItems )
5960 {
6061 <div class =" esh-campaigns-item col-md-4" >
61- @Html.Partial( " _campaign" , catalogItem )
62+ < partial name = " _campaign" model = " catalogItem" />
6263 </div >
6364 }
6465 </div >
6566
66- @Html.Partial( " _pagination" , Model . PaginationInfo )
67+ < partial name = " _pagination" for = " PaginationInfo" />
6768 }
6869 else
6970 {
Original file line number Diff line number Diff line change 55@inject IIdentityParser <ApplicationUser > UserManager
66
77@{
8- ViewData [" Title" ] = " My Cart" ;
8+ ViewData [" Title" ] = " My Cart" ;
9+ var headerList = new List <Header >() {
10+ new Header () { Controller = " Catalog" , Text = " Back to catalog" }};
911}
1012
1113<form method =" post" id =" cartForm" >
1214 <div class =" esh-basket" >
13- @Html.Partial( "_Header", new List<Header >() {
14- new Header () { Controller = " Catalog" , Text = " Back to catalog" } } )
15+ <partial name =" _Header" model =" headerList" />
1516
1617 @await Component.InvokeAsync("CartList", new { user = UserManager .Parse (User ) } )
1718 </div >
Original file line number Diff line number Diff line change 3535
3636 @if (Model .CatalogItems .Count () > 0 )
3737 {
38- @Html.Partial( " _pagination" , Model . PaginationInfo )
38+ < partial name = " _pagination" for = " PaginationInfo" />
3939
4040 <div class =" esh-catalog-items row" >
4141 @foreach ( var catalogItem in Model .CatalogItems )
4242 {
4343 <div class =" esh-catalog-item col-md-4" >
44- @Html.Partial( " _product" , catalogItem )
44+ < partial name = " _product" model = " catalogItem" />
4545 </div >
4646 }
4747 </div >
4848
49- @Html.Partial( " _pagination" , Model . PaginationInfo )
49+ < partial name = " _pagination" for = " PaginationInfo" />
5050 }
5151 else
5252 {
Original file line number Diff line number Diff line change 33@inject IIdentityParser <ApplicationUser > UserManager
44
55@{
6- ViewData [" Title" ] = " New Order" ;
6+ ViewData [" Title" ] = " New Order" ;
7+ var headerList = new List <Header >() {
8+ new Header () { Controller = " Cart" , Text = " Back to cart" } };
79}
810
9- @Html.Partial( "_Header", new List<Header >() {
10- new Header () { Controller = " Cart" , Text = " Back to cart" } } )
11+ <partial name =" _Header" model =" headerList" />
1112<div class =" container" >
1213 <form method =" post" asp-controller =" Order" asp-action =" Checkout" >
1314 <section class =" esh-orders_new-section" >
Original file line number Diff line number Diff line change 33@model Microsoft .eShopOnContainers .WebMVC .ViewModels .Order
44
55@{
6- ViewData [" Title" ] = " Order Detail" ;
6+ ViewData [" Title" ] = " Order Detail" ;
7+ var headerList = new List <Header >() {
8+ new Header () { Controller = " Catalog" , Text = " Back to catalog" } };
79}
810
911<div class =" esh-orders_detail" >
10- @Html.Partial( "_Header", new List<Header >() {
11- new Header () { Controller = " Catalog" , Text = " Back to catalog" } } )
12+ <partial name =" _Header" model =" headerList" />
1213
1314 <div class =" container" >
1415 <section class =" esh-orders_detail-section" >
Original file line number Diff line number Diff line change 33@model IEnumerable <Microsoft .eShopOnContainers .WebMVC .ViewModels .Order >
44
55@{
6- ViewData [" Title" ] = " My Orders" ;
6+ ViewData [" Title" ] = " My Orders" ;
7+ var headerList = new List <Header >() {
8+ new Header () { Controller = " Catalog" , Text = " Back to catalog" },
9+ new Header () { Text = " / " },
10+ new Header () { Controller = " OrderManagement" , Text = " Orders Management" } };
711}
812
913<div class =" esh-orders" >
10- @Html.Partial( "_Header", new List<Header >() {
11- new Header () { Controller = " Catalog" , Text = " Back to catalog" } ,
12- new Header () { Text = " / " } ,
13- new Header () { Controller = " OrderManagement" , Text = " Orders Management" } } )
14+ <partial name =" _Header" model =" headerList" />
1415
1516 <div class =" container" >
1617 <article class =" esh-orders-titles row" >
Original file line number Diff line number Diff line change 33@model IEnumerable <Microsoft .eShopOnContainers .WebMVC .ViewModels .Order >
44
55@{
6- ViewData [" Title" ] = " My Orders" ;
6+ ViewData [" Title" ] = " My Orders" ;
7+ var headerList = new List <Header >() {
8+ new Header () { Controller = " Catalog" , Text = " Back to catalog" } };
79}
810
911<div class =" esh-orders" >
10- @Html.Partial( "_Header", new List<Header >() {
11- new Header () { Controller = " Catalog" , Text = " Back to catalog" } } )
12+ <partial name =" _Header" model =" headerList" />
1213
1314 <div class =" container" >
1415 <article class =" esh-orders-titles row" >
You can’t perform that action at this time.
0 commit comments