mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
+1 (file missing from the previous checkin)
--HG-- branch : 1.x
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
@using Orchard.Utility.Extensions;
|
||||
@using Orchard.Widgets.Models;
|
||||
@{
|
||||
Style.Require("WidgetsAdmin");
|
||||
IEnumerable<WidgetPart> widgets = Model.OrphanWidgets;
|
||||
var returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString();
|
||||
}
|
||||
@if (widgets.Count() > 0) {
|
||||
<div id="widgets-orphans" class="widgets-container widgets-listed message-Warning">
|
||||
<h3>@T("Widgets with problems.")</h3>
|
||||
<p>@T("These widgets aren't going to appear anywhere because they're missing the CommonPart from their content type. To fix these widgets, if you still want to keep them around, start by fixing their <a href=\"{0}\">Content Types</a>.", Url.Action("Index", "Admin", new { area = "Orchard.ContentTypes" }))</p>
|
||||
<ul>
|
||||
@foreach (WidgetPart widget in widgets) {
|
||||
<li class="@(widget == widgets.First() ? "first" : (widget == widgets.Last() ? "last" : ""))">
|
||||
<h3>@Html.ActionLink(HasText(widget.Title) ? widget.Title : widget.TypeDefinition.DisplayName, "EditWidget", new { @widget.Id, returnUrl })</h3>
|
||||
<div class="widgets-actions">
|
||||
<button name="moveOut" value="@widget.Id" class="link" type="submit">@T("Remove")</button>
|
||||
</div>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
}
|
Reference in New Issue
Block a user