pitit refact

This commit is contained in:
Paul Schneider 2026-06-04 12:13:37 +01:00
commit 20713eef64
235 changed files with 5374 additions and 373 deletions

View file

@ -1,7 +1,7 @@
@model Comment
<div data-type="blogcomment" data-id="@Model.Id" data-receiver-id="@Model.ReceiverId" data-allow-edit="@(User.GetUserId()==Model.AuthorId?"true":"false")"
data-allow-moderate="@ViewData["moderatoFlag"]" data-date="@Model.DateCreated.ToString("yyyy-MM-dd hh:mm:ss")" data-username="@Model.Author.UserName" >
data-allow-moderate="@ViewBag.moderatoFlag" data-date="@Model.DateCreated.ToString("yyyy-MM-dd hh:mm:ss")" data-username="@Model.Author.UserName" >
<asciidoc>@Model.Article</asciidoc>
@if (Model.Children!=null) {

View file

@ -7,7 +7,7 @@
<div class="row">
<div class="col-xs-12">
<ul>
@foreach (string tag in (string[]) ViewData["Tags"]) {
@foreach (string tag in (string[]) ViewBag.Tags) {
<li>@tag</li>
}
</ul>

View file

@ -1,6 +1,6 @@
@model ErrorViewModel
@{
ViewData["Title"] = "Error";
ViewBag.Title = "Error";
}
<h1 class="text-danger">Error.</h1>

View file

@ -1,10 +1,10 @@
@model IEnumerable<PerformerProfile>
@{
ViewData["Title"] = "Les profiles - " + (ViewBag.Activity?.Name ?? "Any");
ViewBag.Title = "Les profiles - " + (ViewBag.Activity?.Name ?? "Any");
}
<h1>@ViewData["Title"]</h1>
<h1>@ViewBag.Title</h1>
<em>@ViewBag.Activity.Description</em>
@foreach (var profile in Model) {

View file

@ -22,9 +22,9 @@ background-attachment: fixed;
">
<partial name="_Nav" />
@RenderSection("ctxmenu", required: false)
@if (ViewData["Notify"] != null)
@if (ViewBag.Notify != null)
{
foreach (Notification n in ViewData["Notify"] as IEnumerable<Notification>)
foreach (Notification n in ViewBag.Notify as IEnumerable<Notification>)
{
<div class="alert alert-info alert-dismissable" data-nid="@n.Id">
<img src="~/images/Notifications/@(n.icon).png" style="max-height:3em; float: left; margin:1em;" />