pitit refact
This commit is contained in:
parent
e24208e77b
commit
20713eef64
235 changed files with 5374 additions and 373 deletions
|
|
@ -1,7 +1,7 @@
|
|||
@model BlogPostEditViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Blog post edition";
|
||||
ViewBag.Title = "Blog post edition";
|
||||
}
|
||||
|
||||
@section header {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@model BlogPost
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
ViewBag.Title = "Delete";
|
||||
}
|
||||
@section Scripts {
|
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@model BlogPost
|
||||
@{
|
||||
ViewData["Title"]=Model.Title;
|
||||
ViewBag.Title=Model.Title;
|
||||
}
|
||||
@section scripts {
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ $('#commentValidation').html(
|
|||
var comment = $('#Comment').val();
|
||||
$('#Comment').val('');
|
||||
$('#commentValidation').empty();
|
||||
var nnode = '<div data-type="blogcomment" data-id="'+data.id+'" data-allow-edit="True" data-allow-moderate="@ViewData["moderatoFlag"]" data-date="'+data.dateCreated+'" data-username="@User.GetUserName()">'+comment+'</div>';
|
||||
var nnode = '<div data-type="blogcomment" data-id="'+data.id+'" data-allow-edit="True" data-allow-moderate="@ViewBag.moderatoFlag" data-date="'+data.dateCreated+'" data-username="@User.GetUserName()">'+comment+'</div>';
|
||||
$('#comments').append($(nnode).blogcomment())
|
||||
},
|
||||
url:'/api/blogcomments'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@model BlogPostEditViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Blog post edition";
|
||||
ViewBag.Title = "Blog post edition";
|
||||
}
|
||||
|
||||
@section header {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
@model IEnumerable<IBlogPost>
|
||||
@{
|
||||
ViewData["Title"] = "Blogs, l'index";
|
||||
ViewBag.Title = "Blogs, l'index";
|
||||
}
|
||||
@section header {
|
||||
<style>
|
||||
|
|
@ -36,8 +36,8 @@
|
|||
)
|
||||
</script>
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<p class="text-success">@ViewBag.StatusMessage</p>
|
||||
@if (User.IsSignedIn()) {
|
||||
<p>
|
||||
<a asp-action="Create">Create a new article</a>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@model IEnumerable<BlogPost>
|
||||
|
||||
<h2 markdown="@ViewData["Title"]"></h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<h2 markdown="@ViewBag.Title"></h2>
|
||||
<p class="text-success">@ViewBag.StatusMessage</p>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create" asp-route-title="@ViewData["Title"]">Poster au même titre</a>
|
||||
<a asp-action="Create" asp-route-title="@ViewBag.Title">Poster au même titre</a>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
@model IEnumerable<BlogPost>
|
||||
@{
|
||||
ViewData["Title"] = "User posts";
|
||||
ViewBag.Title = "User posts";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||
<p class="text-success">@ViewBag.StatusMessage</p>
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue