mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-24 18:25:04 +08:00
Replaced markup-embedded pipe | delimiters with CSS in admin theme.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
<fieldset class="bulk-actions">
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>@T(" | ")
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>
|
||||
<label for="publishActions">@T("Actions:")</label>
|
||||
<select id="publishActions" name="Options.BulkAction">
|
||||
@Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.None, T("Choose action...").ToString())
|
||||
|
||||
@@ -14,45 +14,60 @@
|
||||
var authorizedToPublish = Authorizer.Authorize(Permissions.PublishContent, contentItem);
|
||||
}
|
||||
|
||||
<div class="item-action-links">
|
||||
<strong>@T("Item:")</strong>
|
||||
<ul class="action-links action-links-item">
|
||||
<li class="action-label">
|
||||
@T("Item:")
|
||||
</li>
|
||||
@if (hasPublished) {
|
||||
@Html.ItemDisplayLink(T("View").Text, contentItem);
|
||||
<li class="action-link">
|
||||
@Html.ItemDisplayLink(T("View").Text, contentItem)
|
||||
</li>
|
||||
}
|
||||
@if (authorizedToEdit) {
|
||||
if (hasPublished) {
|
||||
@T(" | ")
|
||||
}
|
||||
@Html.ItemEditLink(T("Edit").Text, contentItem);
|
||||
@T(" | ")
|
||||
@Html.ActionLink(T(" Clone").Text, "Clone", "Admin", new { Id = contentItem.Id, ReturnUrl = Request.ToUrlString(), Area = "Contents" }, new { itemprop = "UnsafeUrl" });
|
||||
<li class="action-link">
|
||||
@Html.ItemEditLink(T("Edit").Text, contentItem)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T(" Clone").Text, "Clone", "Admin", new { Id = contentItem.Id, ReturnUrl = Request.ToUrlString(), Area = "Contents" }, new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
|
||||
@if (hasPublished && authorizedToPublish) {
|
||||
@T(" | ")
|
||||
@Html.ActionLink(T("Unpublish").Text, "Unpublish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }, new { itemprop = "UnsafeUrl" });
|
||||
if (hasPublished && authorizedToPublish) {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Unpublish").Text, "Unpublish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }, new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
|
||||
@if (authorizedToDelete) {
|
||||
@T(" | ")
|
||||
@Html.Link(T("Remove").Text, Url.ItemRemoveUrl(contentItem, new { returnUrl }), new { itemprop = "RemoveUrl UnsafeUrl" });
|
||||
if (authorizedToDelete) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Remove").Text, Url.ItemRemoveUrl(contentItem, new { returnUrl }), new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</ul>
|
||||
|
||||
@if ((!isPublished || hasDraft) && authorizedToEdit) {
|
||||
<div class="draft-action-links">
|
||||
<strong>@T("Draft:")</strong>
|
||||
<ul class="action-links action-links-draft">
|
||||
<li class="action-label">
|
||||
@T("Draft:")
|
||||
</li>
|
||||
@if (!isPublished && Authorizer.Authorize(Permissions.PreviewContent, contentItem)) {
|
||||
@Html.ActionLink(T("View").Text, "Display", "Item", new { area = "Contents", id = contentItem.Id, version = contentItem.Version }, new { });
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("View").Text, "Display", "Item", new { area = "Contents", id = contentItem.Id, version = contentItem.Version }, new { })
|
||||
</li>
|
||||
}
|
||||
|
||||
@if (hasDraft && authorizedToPublish) {
|
||||
@T(" | ")
|
||||
@Html.ActionLink(T("Publish").Text, "Publish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }, new { itemprop = "UnsafeUrl" });
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Publish").Text, "Publish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }, new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
|
||||
@if (!isPublished && hasPublished && authorizedToDelete) {
|
||||
@T(" | ")
|
||||
@Html.ActionLink(T("Discard").Text, "DiscardDraft", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }, new { itemprop = "RemoveUrl UnsafeUrl" });
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Discard").Text, "DiscardDraft", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
</div>
|
||||
</ul>
|
||||
}
|
||||
@@ -113,11 +113,15 @@
|
||||
<h2>@menuPartEntry.Text</h2>
|
||||
<span class="navigation-type">(@menuPartEntry.ContentItem.TypeDefinition.DisplayName)</span>
|
||||
<span class="navigation-position"><input type="text" class="text" name="@Html.NameOf(m => m.MenuItemEntries[i].Position)" value="@menuPartEntry.Position" /></span>
|
||||
<span class="navigation-actions">
|
||||
<ul class="navigation-actions action-links">
|
||||
<input type="hidden" name="@Html.NameOf(m => m.MenuItemEntries[i].MenuItemId)" value="@menuPartEntry.MenuItemId" />
|
||||
@Html.ItemEditLink(T("Edit").Text, menuPartEntry.ContentItem, new { returnUrl = Request.RawUrl })@T(" | ")
|
||||
<li class="action-link">
|
||||
@Html.ItemEditLink(T("Edit").Text, menuPartEntry.ContentItem, new { returnUrl = Request.RawUrl })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").Text, "Delete", new { id = menuPartEntry.MenuItemId }, new { @class = "remove", itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
continue;
|
||||
|
||||
@@ -79,8 +79,14 @@
|
||||
@Html.Link(url, Href("~/" + urlPrefix + "/" + url))
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { path = alias.Path == String.Empty ? "/" : alias.Path })@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { path = alias.Path == String.Empty ? "/" : alias.Path })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").Text, "Delete", new { path = alias.Path }, new { itemprop = "UnsafeUrl RemoveUrl" })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -10,5 +10,3 @@
|
||||
else {
|
||||
@Html.Link(@T("Spam").Text, Url.Action("ReportSpam", "Admin", new {area = "Orchard.AntiSpam", part.Id, returnUrl = Request.ToUrlString()}), new {itemprop = "UnsafeUrl"})
|
||||
}
|
||||
|
||||
@T(" | ")
|
||||
@@ -7,11 +7,16 @@
|
||||
var versionNumber = eventData.Get<int>("VersionNumber");
|
||||
var contentItem = (ContentItem) Model.ContentItem;
|
||||
}
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Details").Text, "Detail", "Admin", new { id = record.Id, area = "Orchard.AuditTrail" }, null)
|
||||
</li>
|
||||
@if (contentItem != null) {
|
||||
var isLatest = contentItem.VersionRecord.Number == versionNumber;
|
||||
if (!isLatest) {
|
||||
@T(" | ")
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Restore").Text, "Restore", "Content", new { id = contentItem.Id, version = versionNumber, area = "Orchard.AuditTrail" }, new { data_unsafe_url = T("Are you sure you want to restore to version {0}?", versionNumber) })
|
||||
</li>
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
@@ -7,8 +7,13 @@
|
||||
var versionNumber = eventData.Get<int>("VersionNumber");
|
||||
var contentItem = (ContentItem) Model.ContentItem;
|
||||
}
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Details").Text, "Detail", "Admin", new { id = record.Id, area = "Orchard.AuditTrail" }, null)
|
||||
</li>
|
||||
@if (contentItem != null) {
|
||||
@T(" | ")
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Restore").Text, "Restore", "Content", new { id = contentItem.Id, version = versionNumber, area = "Orchard.AuditTrail" }, new { data_unsafe_url = T("Are you sure you want to restore this content item?", versionNumber) })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
@@ -1 +1,5 @@
|
||||
<a href="@Url.Action("Index", "Admin", new { content = Model.ContentItem.Id, area = "Orchard.AuditTrail" })">@T("Audit Trail")</a>
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Index", "Admin", new { content = Model.ContentItem.Id, area = "Orchard.AuditTrail" })">@T("Audit Trail")</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -59,9 +59,17 @@
|
||||
<td class="content-column"><a href="@contentDisplayUrl">@contentDisplayText</a></td>
|
||||
<td class="content-removed-column">@removedText</td>
|
||||
<td class="actions-column">
|
||||
<a href="@contentDisplayUrl">@T("View")</a> @T(" | ")
|
||||
@Html.ActionLink(T("View Audit Trail").Text, "Index", "Admin", new {content = contentItem.Id, area = "Orchard.AuditTrail"}, null) @T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
<a href="@contentDisplayUrl">@T("View")</a>
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("View Audit Trail").Text, "Index", "Admin", new { content = contentItem.Id, area = "Orchard.AuditTrail" }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Restore", "RecycleBin", new {id = contentItem.Id, area = "Orchard.AuditTrail"})" data-unsafe-url="@T("Are you sure you want to restore this item?")">@T("Restore")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
index++;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="actions"><a class="add button primaryAction" href="@Url.BlogCreate()">@T("New Blog")</a></div>
|
||||
using(Html.BeginFormAntiForgeryPost(Url.Action("List", "Admin", new { area = "Contents", id = "" }))) {
|
||||
<fieldset class="bulk-actions">
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>@T(" | ")
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>
|
||||
<label for="publishActions">@T("Actions:")</label>
|
||||
<select id="publishActions" name="Options.BulkAction">
|
||||
@Html.SelectOption(ContentsBulkAction.None, ContentsBulkAction.None, T("Choose action...").ToString())
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
var returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString();
|
||||
}
|
||||
<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
|
||||
|
||||
<div class="properties">
|
||||
<input type="checkbox" value="@contentItem.Id" name="itemIds" />
|
||||
<h3>@Html.ItemAdminLink(contentItem)</h3> - <div class="contentType">@contentItem.TypeDefinition.DisplayName</div>
|
||||
@@ -17,49 +18,63 @@
|
||||
<div class="metadata">@Display(Model.Meta)</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="related">
|
||||
@Display(Model.Actions)
|
||||
|
||||
<ul class="action-links">
|
||||
@if (contentItem.HasPublished()) {
|
||||
<li class="action-link">
|
||||
@Html.ItemDisplayLink(T("View").Text, contentItem)
|
||||
@T(" | ")
|
||||
</li>
|
||||
|
||||
if (contentItem.HasDraft()) {
|
||||
if (Authorizer.Authorize(Orchard.Blogs.Permissions.PublishBlogPost, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Publish Draft").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
|
||||
if (Authorizer.Authorize(Permissions.PreviewContent, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Preview").Text, "Preview", "Item", new { area = "Contents", id = contentItem.Id }, new { })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
if (Authorizer.Authorize(Orchard.Blogs.Permissions.PublishBlogPost, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Unpublish").Text, Url.Action("Unpublish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (contentItem.HasDraft()) {
|
||||
if (Authorizer.Authorize(Permissions.PreviewContent, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Preview").Text, "Preview", "Item", new { area = "Contents", id = contentItem.Id }, new { })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
if (Authorizer.Authorize(Orchard.Blogs.Permissions.PublishBlogPost, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Publish").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = contentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
}
|
||||
@if (Authorizer.Authorize(Orchard.Blogs.Permissions.EditBlogPost, contentItem)) {
|
||||
@Html.ItemEditLink(T("Edit").Text, contentItem)@T(" | ")
|
||||
<li class="action-link">
|
||||
@Html.ItemEditLink(T("Edit").Text, contentItem)
|
||||
</li>
|
||||
}
|
||||
@if (Authorizer.Authorize(Orchard.Blogs.Permissions.DeleteBlogPost, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Delete").Text, Url.ItemRemoveUrl(contentItem, new { returnUrl }), new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
@Display(Model.Actions)
|
||||
</div>
|
||||
|
||||
@if (Model.Content != null) {
|
||||
<div class="primary">@Display(Model.Content)</div>
|
||||
}
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
@using Orchard.Blogs.Extensions;
|
||||
@using Orchard.Blogs.Models;
|
||||
@using Orchard.ContentManagement;
|
||||
@using Orchard.Utility.Extensions;
|
||||
@{
|
||||
ContentItem contentItem = Model.ContentItem;
|
||||
BlogPart blog = (BlogPart)contentItem.Get(typeof(BlogPart));
|
||||
}
|
||||
<a href="@Url.BlogForAdmin(blog)" title="@T("List Posts")">@T("List Posts")</a>@T(" | ")
|
||||
<a href="@Url.BlogPostCreate(blog)" title="@T("New Post")">@T("New Post")</a>@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
<a href="@Url.BlogForAdmin(blog)" title="@T("List Posts")">@T("List Posts")</a>
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@Url.BlogPostCreate(blog)" title="@T("New Post")">@T("New Post")</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -3,7 +3,7 @@
|
||||
@if (Model.ContentItems.Items.Count > 0) {
|
||||
using (Html.BeginFormAntiForgeryPost(Url.Action("List", "Admin", new { area = "Contents", id = "" }))) {
|
||||
<fieldset class="bulk-actions">
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>@T(" | ")
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>
|
||||
<label for="publishActions">@T("Actions:")</label>
|
||||
<select id="publishActions" name="Options.BulkAction">
|
||||
@Html.SelectOption(ContentsBulkAction.None, ContentsBulkAction.None, T("Choose action...").ToString())
|
||||
|
||||
@@ -86,17 +86,26 @@
|
||||
</td>
|
||||
<td>@Html.ItemDisplayLink(commentEntry.CommentedOn)</td>
|
||||
<td>
|
||||
<div class="actions">
|
||||
<ul class="action-links">
|
||||
@if (commentEntry.Comment.Status != CommentStatus.Approved) {
|
||||
<a href="@Url.Action("Approve", new {commentEntry.Comment.Id, returnUrl = Request.ToUrlString()})" itemprop="ApproveUrl UnsafeUrl">@T("Approve")</a>@T(" | ")
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Approve", new {commentEntry.Comment.Id, returnUrl = Request.ToUrlString()})" itemprop="ApproveUrl UnsafeUrl">@T("Approve")</a>
|
||||
</li>
|
||||
}
|
||||
else {
|
||||
<a href="@Url.Action("Unapprove", new {commentEntry.Comment.Id, returnUrl = Request.ToUrlString()})" itemprop="UnapproveUrl UnsafeUrl">@T("Unapprove")</a>@T(" | ")
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Unapprove", new {commentEntry.Comment.Id, returnUrl = Request.ToUrlString()})" itemprop="UnapproveUrl UnsafeUrl">@T("Unapprove")</a>
|
||||
</li>
|
||||
}
|
||||
<a href="@Url.Action("Edit", new {commentEntry.Comment.Id})" title="@T("Edit")">@T("Edit")</a>@T(" | ")
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Edit", new {commentEntry.Comment.Id})" title="@T("Edit")">@T("Edit")</a>
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Delete", new {commentEntry.Comment.Id, returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString()})" itemprop="RemoveUrl UnsafeUrl">@T("Delete")</a>
|
||||
</div>
|
||||
</td> </tr>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
commentIndex = commentIndex + 1;
|
||||
}
|
||||
</table>
|
||||
|
||||
@@ -8,12 +8,16 @@
|
||||
}
|
||||
|
||||
@if (settings.ModerateComments) {
|
||||
|
||||
if (comment.Status != CommentStatus.Pending) {
|
||||
<ul class="action-links">
|
||||
@if (comment.Status != CommentStatus.Pending) {
|
||||
<li class="action-link">
|
||||
@Html.Link(@T("Approve").Text, Url.Action("Approve", "Admin", new { area = "Orchard.Comments", comment.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
else {
|
||||
<li class="action-link">
|
||||
@Html.Link(@T("Unapprove").Text, Url.Action("Unapprove", "Admin", new { area = "Orchard.Comments", comment.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
@T(" | ")
|
||||
</ul>
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
}
|
||||
|
||||
@if (unpublishedContentItems.Any()) {
|
||||
<span>@T(" | ") @T("Not Published"):</span>
|
||||
<span>@T("Not Published"):</span>
|
||||
foreach (var contentItem in unpublishedContentItems) {
|
||||
<span class="value">@Html.ItemEditLink(contentItem)</span>
|
||||
if (contentItem != unpublishedContentItems.Last()) {
|
||||
|
||||
@@ -12,8 +12,16 @@
|
||||
<p class="pageStatus">@Html.ActionLink(T("Create New {0}", Html.Raw(Model.DisplayName)).Text, "Create", new {area = "Contents", id = Model.Name})</p>
|
||||
}
|
||||
</div>
|
||||
<div class="related">@if (creatable) {
|
||||
@Html.ActionLink(T("List Items").ToString(), "List", new {area = "Contents", id = Model.Name})@T(" | ")}
|
||||
<div class="related">
|
||||
<ul class="action-links">
|
||||
@if (creatable) {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("List Items").ToString(), "List", new { area = "Contents", id = Model.Name })
|
||||
</li>
|
||||
}
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { area = "Orchard.ContentTypes", id = Model.Name })
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,9 +68,17 @@
|
||||
@entry.CustomForm.ContentType.CamelFriendly()
|
||||
</td>
|
||||
<td>
|
||||
@Html.ItemEditLink(T("Edit").Text, entry.CustomForm.ContentItem) @T(" | ")
|
||||
@Html.Link(T("Delete").Text, Url.ItemRemoveUrl(entry.CustomForm.ContentItem, new { returnUrl = Request.RawUrl }), new { itemprop = "RemoveUrl UnsafeUrl" }) @T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ItemEditLink(T("Edit").Text, entry.CustomForm.ContentItem)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Delete").Text, Url.ItemRemoveUrl(entry.CustomForm.ContentItem, new { returnUrl = Request.RawUrl }), new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Submissions").Text, "Item", "Admin", new { area = "Orchard.CustomForms", id = entry.CustomForm.Id }, new { })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
formIndex++;
|
||||
|
||||
@@ -32,8 +32,14 @@
|
||||
<td>@blueprint.ElementTypeName</td>
|
||||
<td>@blueprint.BaseElementTypeName</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.DynamicForms" }, null) @T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.DynamicForms" }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Remove").Text, "Delete", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.DynamicForms" }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -42,8 +42,14 @@
|
||||
<td>@dataRow[dataColumn]</td>
|
||||
}
|
||||
<td>
|
||||
@Html.ActionLink(T("Details").Text, "Details", "SubmissionAdmin", new { id = id, area = "Orchard.DynamicForms" }, null) @T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Details").Text, "Details", "SubmissionAdmin", new { id = id, area = "Orchard.DynamicForms" }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Remove").Text, "Delete", "SubmissionAdmin", new { id = id, area = "Orchard.DynamicForms" }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -32,9 +32,17 @@
|
||||
<td>@blueprint.ElementTypeName</td>
|
||||
<td>@blueprint.BaseElementTypeName</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.Layouts" }, null) @T(" | ")
|
||||
@Html.ActionLink(T("Properties").Text, "Properties", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.Layouts" }, null) @T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.Layouts" }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Properties").Text, "Properties", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.Layouts" }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Remove").Text, "Delete", "BlueprintAdmin", new { id = blueprint.Id, area = "Orchard.Layouts" }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -14,13 +14,19 @@
|
||||
}
|
||||
</div>
|
||||
<div class="related">
|
||||
<ul class="action-links">
|
||||
@Display(Model.Actions)
|
||||
@if (Authorizer.Authorize(Permissions.EditContent, contentItem)) {
|
||||
@Html.ItemEditLink(T("Edit").Text, contentItem)@T(" | ")
|
||||
<li class="action-link">
|
||||
@Html.ItemEditLink(T("Edit").Text, contentItem)
|
||||
</li>
|
||||
}
|
||||
@if (Authorizer.Authorize(Permissions.DeleteContent, contentItem)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Delete").Text, Url.ItemRemoveUrl(contentItem, new { returnUrl }), new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
@if (Model.Content != null) {
|
||||
<div class="primary">@Display(Model.Content)</div>
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
ContentPart contentPart = Model.ContentPart;
|
||||
}
|
||||
@if (contentPart.Is<ContainerPart>()) {
|
||||
@Html.Link(T("Contained Items ({0})", contentPart.As<ContainerPart>().ItemCount).Text, Url.Action("List", "Admin", new { area = "Orchard.Lists", containerId = contentPart.Id }))@T(" | ")
|
||||
@Html.Link(T("Contained Items ({0})", contentPart.As<ContainerPart>().ItemCount).Text, Url.Action("List", "Admin", new { area = "Orchard.Lists", containerId = contentPart.Id }))
|
||||
}
|
||||
@@ -49,9 +49,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" data-id="@contentItem.Id" class="media-library-picker-remove">@T("Remove")</a>@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
<a href="#" data-id="@contentItem.Id" class="media-library-picker-remove">@T("Remove")</a>
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@editUrl">@T("Edit")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
@model Orchard.Environment.Configuration.ShellSettings
|
||||
@using Orchard.MultiTenancy.Extensions;
|
||||
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { area = "Orchard.MultiTenancy" }), FormMethod.Post, new { @class = "inline link" })) {
|
||||
@Html.HiddenFor(ss => ss.Name)
|
||||
<button type="submit">@T("Resume")</button>
|
||||
} @T(" | ")
|
||||
}
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Reset").ToString(), "Reset", new { name = Model.Name, area = "Orchard.MultiTenancy" })
|
||||
</li>
|
||||
</ul>
|
||||
@@ -13,7 +13,8 @@
|
||||
<li class="tenant @tenant.State">
|
||||
<div class="summary">
|
||||
<div class="properties">
|
||||
<h3>@tenant.Name
|
||||
<h3>
|
||||
@tenant.Name
|
||||
@if (!String.IsNullOrEmpty(tenant.RequestUrlHost)) {
|
||||
var tenantClone = new ShellSettings(tenant);
|
||||
foreach (var t in tenant.RequestUrlHost.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)) {
|
||||
@@ -25,11 +26,17 @@
|
||||
</h3>
|
||||
</div>
|
||||
<div class="related">
|
||||
<ul class="action-links">
|
||||
@if (!String.Equals(tenant.Name, "default", StringComparison.OrdinalIgnoreCase)) { //todo: (heskew) base this off the view model so logic on what can be removed and have its state changed stays in the controller
|
||||
var t = tenant;
|
||||
@Html.DisplayFor(m => t, String.Format("ActionsFor{0}", tenant.State.ToString()), "") @T(" | ")
|
||||
<li class="action-link">
|
||||
@Html.DisplayFor(m => t, String.Format("ActionsFor{0}", tenant.State.ToString()), "")
|
||||
</li>
|
||||
}
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { name = tenant.Name, area = "Orchard.MultiTenancy" })
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -62,10 +62,15 @@
|
||||
<h2>@item.Title<span> - @T("Version: {0}", item.Version)</span></h2>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="related">
|
||||
@Html.ActionLink(T("Install").ToString(), "InstallGallery", "PackagingServices", new RouteValueDictionary { { "packageId", item.PackageId }, { "version", item.Version }, { "sourceId", item.Source.Id }, { "redirectUrl", HttpContext.Current.Request.RawUrl } }, null)@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Install").ToString(), "InstallGallery", "PackagingServices", new RouteValueDictionary { { "packageId", item.PackageId }, { "version", item.Version }, { "sourceId", item.Source.Id }, { "redirectUrl", HttpContext.Current.Request.RawUrl } }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@item.PackageStreamUri">@T("Download")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="properties">
|
||||
@@ -83,10 +88,13 @@
|
||||
<li>@T("Last Updated: {0}", item.LastUpdated)</li>
|
||||
<li> | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())</li>
|
||||
<li> | @T("Downloads: {0}", item.DownloadCount)</li>
|
||||
<li> | @T("Website: ")
|
||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
||||
<li>
|
||||
| @T("Website: ")
|
||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> }
|
||||
else { @T("Unknown").ToString() }
|
||||
</li>
|
||||
<li class="rating"> | @T("Rating: ")
|
||||
<li class="rating">
|
||||
| @T("Rating: ")
|
||||
<div class="ratings" style="width:@(15 * 5)px" title="@T("Rating: {0} out of 5 ({1} total).", item.Rating, item.RatingsCount)">
|
||||
<div class="score" style="width:@(15 * (item.Rating))px"> </div>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,8 @@
|
||||
if (!string.IsNullOrWhiteSpace(@item.FirstScreenshot)) {
|
||||
iconUrl = @item.FirstScreenshot;
|
||||
extensionClass = "screenshotThumbnail";
|
||||
} else if (string.IsNullOrWhiteSpace(iconUrl)) {
|
||||
}
|
||||
else if (string.IsNullOrWhiteSpace(iconUrl)) {
|
||||
iconUrl = Href("../../Content/Images/imagePlaceholder.png");
|
||||
extensionClass = "screenshotThumbnail";
|
||||
}
|
||||
@@ -68,8 +69,14 @@
|
||||
</div>
|
||||
|
||||
<div class="related">
|
||||
@Html.ActionLink(T("Install").ToString(), "InstallGallery", "PackagingServices", new RouteValueDictionary { { "packageId", item.PackageId }, { "version", item.Version }, { "sourceId", item.Source.Id }, { "redirectUrl", HttpContext.Current.Request.RawUrl } }, null)@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Install").ToString(), "InstallGallery", "PackagingServices", new RouteValueDictionary { { "packageId", item.PackageId }, { "version", item.Version }, { "sourceId", item.Source.Id }, { "redirectUrl", HttpContext.Current.Request.RawUrl } }, null)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@item.PackageStreamUri">@T("Download")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="properties">
|
||||
@@ -86,10 +93,13 @@
|
||||
<li>@T("Last Updated: {0}", item.LastUpdated)</li>
|
||||
<li> | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())</li>
|
||||
<li> | @T("Downloads: {0}", item.DownloadCount)</li>
|
||||
<li> | @T("Website: ")
|
||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> } else { @T("Unknown").ToString() }
|
||||
<li>
|
||||
| @T("Website: ")
|
||||
@if (!string.IsNullOrEmpty(item.ProjectUrl)) { <a href="@item.ProjectUrl">@item.ProjectUrl</a> }
|
||||
else { @T("Unknown").ToString() }
|
||||
</li>
|
||||
<li class="rating"> | @T("Rating: ")
|
||||
<li class="rating">
|
||||
| @T("Rating: ")
|
||||
<div class="ratings" style="width:@(15 * 5)px" title="@T("Rating: {0} out of 5 ({1} total).", item.Rating, item.RatingsCount)">
|
||||
<div class="score" style="width:@(15 * (item.Rating))px"> </div>
|
||||
</div>
|
||||
@@ -104,7 +114,8 @@
|
||||
</div>
|
||||
</li>}
|
||||
</ul>
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
<p>@T("No themes available.").ToString()</p>
|
||||
}
|
||||
|
||||
|
||||
@@ -55,8 +55,14 @@
|
||||
</div>
|
||||
|
||||
<div class="related">
|
||||
@Html.Link(T("Install Latest").Text, InstallAction(module.NewVersionToInstall))@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Install Latest").Text, InstallAction(module.NewVersionToInstall))
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@module.NewVersionToInstall.PackageStreamUri">@T("Download")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="properties">
|
||||
|
||||
@@ -60,8 +60,14 @@
|
||||
</div>
|
||||
|
||||
<div class="related">
|
||||
@Html.Link(T("Install Latest").Text, InstallAction(theme.NewVersionToInstall))@T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Install Latest").Text, InstallAction(theme.NewVersionToInstall))
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@theme.NewVersionToInstall.PackageStreamUri">@T("Download")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="properties">
|
||||
|
||||
@@ -28,10 +28,16 @@
|
||||
<tr>
|
||||
<th scope="col">@T("Description")</th>
|
||||
<th scope="col" class="actions">
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("+ Add a new Filter").Text, "Add", new { controller = "Filter", id = group.Id })
|
||||
</li>
|
||||
@if (Model.FilterGroups.Count() > 1) {
|
||||
<text> | </text>@Html.ActionLink(T("Delete group").Text, "DeleteGroup", new { controller = "Filter", id = group.Id }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete group").Text, "DeleteGroup", new { controller = "Filter", id = group.Id }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -39,13 +45,18 @@
|
||||
<tr>
|
||||
<td>@filter.DisplayText</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { controller = "Filter", id = group.Id, category = filter.Category, type = filter.Type, filterId = filter.FilterRecordId }) |
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { controller = "Filter", id = group.Id, category = filter.Category, type = filter.Type, filterId = filter.FilterRecordId })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").Text, "Delete", new { controller = "Filter", id = Model.Id, filterId = filter.FilterRecordId }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
||||
}
|
||||
|
||||
<fieldset class="bulk-actions">
|
||||
@@ -63,14 +74,23 @@
|
||||
<tr>
|
||||
<td>@sortCriterion.DisplayText</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { controller = "SortCriterion", id = Model.Id, category = sortCriterion.Category, type = sortCriterion.Type, sortCriterionId = sortCriterion.SortCriterionRecordId }) |
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { controller = "SortCriterion", id = Model.Id, category = sortCriterion.Category, type = sortCriterion.Type, sortCriterionId = sortCriterion.SortCriterionRecordId })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").Text, "Delete", new { controller = "SortCriterion", id = Model.Id, sortCriterionId = sortCriterion.SortCriterionRecordId }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
@if (sortCriterion != Model.SortCriteria.First()) {
|
||||
<text>|</text> @Html.ActionLink(T("Up").Text, "Move", new { controller = "SortCriterion", id = sortCriterion.SortCriterionRecordId, direction = "up", queryId = Model.Id })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Up").Text, "Move", new { controller = "SortCriterion", id = sortCriterion.SortCriterionRecordId, direction = "up", queryId = Model.Id })
|
||||
</li>
|
||||
}
|
||||
@if (sortCriterion != Model.SortCriteria.Last()) {
|
||||
<text>|</text> @Html.ActionLink(T("Down").Text, "Move", new { controller = "SortCriterion", id = sortCriterion.SortCriterionRecordId, direction = "down", queryId = Model.Id })
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Down").Text, "Move", new { controller = "SortCriterion", id = sortCriterion.SortCriterionRecordId, direction = "down", queryId = Model.Id })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@@ -91,8 +111,14 @@
|
||||
<tr>
|
||||
<td>@(layout.DisplayText)</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { controller = "Layout", id = layout.LayoutRecordId }) |
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").Text, "Edit", new { controller = "Layout", id = layout.LayoutRecordId })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").Text, "Delete", new { controller = "Layout", id = layout.LayoutRecordId }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
@@ -105,13 +131,10 @@
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
|
||||
<fieldset>
|
||||
@if (Model.FilterGroups.SelectMany(x => x.Filters).Any()) {
|
||||
@Html.ActionLink(T("Preview").ToString(), "Preview", new { Model.Id }, new { @class = "button" });
|
||||
}
|
||||
@Html.ActionLink(T("Close").ToString(), "Index", new { }, new { @class = "button" })
|
||||
</fieldset>
|
||||
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
@Html.ValidationSummary()
|
||||
<div class="manage">@Html.ActionLink(T("Add a new Query").ToString(), "Create", new { Area = "Contents", id = "Query", returnurl = HttpContext.Current.Request.RawUrl }, new { @class = "button primaryAction" })</div>
|
||||
<fieldset class="bulk-actions">
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>@T(" | ")
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>
|
||||
<label for="publishActions">@T("Actions:")</label>
|
||||
<select id="publishActions" name="@Html.NameOf(m => m.Options.BulkAction)">
|
||||
@Html.SelectOption(Model.Options.BulkAction, QueriesBulkAction.None, T("Choose action...").ToString())
|
||||
@@ -61,12 +61,22 @@
|
||||
@Html.ActionLink(entry.Name, "Edit", new { id = entry.QueryId })
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Properties").ToString(), "Edit", new { Area = "Contents", id = entry.QueryId, returnurl = HttpContext.Current.Request.RawUrl }) |
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { id = entry.QueryId }) |
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Properties").ToString(), "Edit", new { Area = "Contents", id = entry.QueryId, returnurl = HttpContext.Current.Request.RawUrl })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { id = entry.QueryId })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").ToString(), "Delete", new { id = entry.QueryId }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
@if (entry.Query.FilterGroups.SelectMany(x => x.Filters).Any()) {
|
||||
<text>| </text> @Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId })
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
index++;
|
||||
|
||||
@@ -74,11 +74,17 @@
|
||||
@entry.Binding.Description
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { entry.Binding.Id }) |
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { entry.Binding.Id })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@using (Html.BeginFormAntiForgeryPost(Url.Action("Delete"), FormMethod.Post, new { @class = "inline link" })) {
|
||||
@Html.Hidden("id", entry.Binding.Id)
|
||||
<button type="submit" itemprop="RemoveUrl">@T("Delete")</button>
|
||||
}
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
index++;
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
DateTime? publishedUtc = publishLaterPart.As<CommonPart>() == null ? null : publishLaterPart.As<CommonPart>().PublishedUtc;
|
||||
}
|
||||
@if (publishLaterPart.IsPublished() && publishedUtc.HasValue) {
|
||||
@T("Published: {0}", Display.DateTimeRelative(DateTimeUtc: publishedUtc.Value)) @T(" | ")
|
||||
@T("Published: {0}", Display.DateTimeRelative(DateTimeUtc: publishedUtc.Value))
|
||||
}
|
||||
@@ -36,11 +36,16 @@
|
||||
<td><input type="checkbox" value="true" name="@("Checkbox." + row.Id)" /></td>
|
||||
<td>@Html.ActionLink(row.Name, "Edit", new { row.Id })</td>
|
||||
<td>
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { row.Id })
|
||||
</li>
|
||||
@if (row.Name != "Administrator") {
|
||||
@T(" | ")
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Delete", new {row.Id, returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString()})" itemprop="RemoveUrl UnsafeUrl">@T("Delete")</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -43,8 +43,14 @@
|
||||
@Html.ActionLink(tagEntry.Tag.TagName, "Edit", new {id = tagEntry.Tag.Id})
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new {id = tagEntry.Tag.Id}) @T(" | ")
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { id = tagEntry.Tag.Id })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
<a href="@Url.Action("Remove", new {tagEntry.Tag.Id, returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString()})" itemprop="RemoveUrl UnsafeUrl">@T("Delete")</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
tagIndex = tagIndex + 1;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
<fieldset class="bulk-actions">
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>@T(" | ")
|
||||
<label><input type="checkbox" class="check-all" />@T("Select all")</label>
|
||||
<label for="publishActions">@T("Actions:")</label>
|
||||
<select id="publishActions" name="Options.BulkAction">
|
||||
@Html.SelectOption((ContentsBulkAction)Model.Options.BulkAction, ContentsBulkAction.None, T("Choose action...").ToString())
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
@model Orchard.Users.ViewModels.UsersIndexViewModel
|
||||
@using Orchard.Core.Shapes;
|
||||
@using Orchard.Users.Models;
|
||||
@using Orchard.Users.ViewModels;
|
||||
|
||||
|
||||
|
||||
@{
|
||||
var userIndex = 0;
|
||||
|
||||
Layout.Title = T("Users").ToString();
|
||||
}
|
||||
|
||||
@@ -66,7 +61,8 @@
|
||||
<td>
|
||||
@if (entry.User.RegistrationStatus == UserStatus.Approved && entry.User.EmailStatus == UserStatus.Approved) {
|
||||
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/online.gif") " alt="@T("Approved") " title="@T("User is approved") " />
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/offline.gif") " alt="@T("Moderated") " title="@if (entry.User.EmailStatus == UserStatus.Approved) { @T("User is moderated") } else { @T("E-mail validation is pending") }" />
|
||||
}
|
||||
@Html.ActionLink(entry.User.UserName, "Edit", new { entry.User.Id })
|
||||
@@ -75,16 +71,29 @@
|
||||
@entry.User.Email
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { entry.User.Id }) |
|
||||
@Html.ActionLink(T("Delete").ToString(), "Delete", new { entry.User.Id}, new { itemprop = "RemoveUrl UnsafeUrl" }) |
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { entry.User.Id })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Delete").ToString(), "Delete", new { entry.User.Id }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
||||
</li>
|
||||
@if (entry.User.RegistrationStatus == UserStatus.Pending) {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Approve").ToString(), "Approve", new { entry.User.Id }, new { itemprop = "UnsafeUrl" })
|
||||
} else {
|
||||
</li>
|
||||
}
|
||||
else {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Disable").ToString(), "Moderate", new { entry.User.Id }, new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
@if (entry.User.EmailStatus == UserStatus.Pending) { <text>|</text>
|
||||
@if (entry.User.EmailStatus == UserStatus.Pending) {
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Send challenge E-mail").ToString(), "SendChallengeEmail", new { entry.User.Id }, new { itemprop = "UnsafeUrl" })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
@if (entry.User.CreatedUtc != null) {
|
||||
|
||||
@@ -68,14 +68,12 @@
|
||||
list-style:decimal inside;
|
||||
}
|
||||
*/
|
||||
.widgets-listed ol {
|
||||
}
|
||||
|
||||
#widgets-orphans ul {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.widgets-listed li, #widgets-available li {
|
||||
.widgets-listed > ol > li, #widgets-available li {
|
||||
background: #FFF;
|
||||
color: #AEC3CE;
|
||||
border: 1px solid #EAEAEA;
|
||||
@@ -92,11 +90,11 @@ list-style:decimal inside;
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.widgets-listed li.last {
|
||||
.widgets-listed > ol > li.last {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.widgets-listed li:hover, .widgets-listed li.on {
|
||||
.widgets-listed > ol > li:hover, .widgets-listed > ol > li.on {
|
||||
border-color: #487328;
|
||||
}
|
||||
|
||||
@@ -104,11 +102,11 @@ list-style:decimal inside;
|
||||
font-size: 1.231em;
|
||||
}
|
||||
|
||||
.widgets-listed h2, .widgets-listed li li, #widgets-layer-visibility li {
|
||||
.widgets-listed h2, .widgets-listed > ol > li > ul > li, #widgets-layer-visibility li {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.widgets-listed li li, #widgets-layer-visibility li {
|
||||
.widgets-listed > ol > li > ul > li, #widgets-layer-visibility li {
|
||||
background: #F3F4F5;
|
||||
border: 0;
|
||||
border-left: 3px solid #EAEAEA;
|
||||
|
||||
@@ -27,34 +27,41 @@
|
||||
<li class="widgets-@(widget.LayerId == Model.CurrentLayer.Id ? "this" : "other")-layer widgets-layer-@widget.LayerId@(i == 0 ? " first" : (i == count ? " last" : ""))">
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
<h3>@Html.ActionLink(HasText(widget.Title) ? widget.Title : widget.TypeDefinition.DisplayName, "EditWidget", new { @widget.Id, returnUrl })</h3><div class="contentType"> - @widget.TypeDefinition.DisplayName</div>
|
||||
<div class="widgets-actions">
|
||||
<ul class="widgets-actions action-links">
|
||||
@if (widget.HasPublished()) {
|
||||
if (widget.HasDraft()) {
|
||||
if (Authorizer.Authorize(Permissions.PublishContent, widget)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Publish Draft").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = widget.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
if (Authorizer.Authorize(Permissions.PublishContent, widget)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Unpublish").Text, Url.Action("Unpublish", "Admin", new { area = "Contents", id = widget.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (Authorizer.Authorize(Permissions.PublishContent, widget)) {
|
||||
<li class="action-link">
|
||||
@Html.Link(T("Publish").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = widget.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
@if (widget.LayerId != Model.CurrentLayer.Id) {
|
||||
<li class="action-link">
|
||||
<button name="moveHere" class="link" type="submit" value="1">@T("Move to current layer")</button>
|
||||
</li>
|
||||
}
|
||||
else { /* it could be useful to remove the widget regardless of the layer it's on but there's no place in the current UI for this and "Move to current layer" */
|
||||
<li class="action-link">
|
||||
<button name="moveOut" class="link" type="submit" value="1" itemprop="RemoveUrl">@T("Remove")</button>
|
||||
</li>
|
||||
}
|
||||
</div>
|
||||
</ul>
|
||||
<div class="widgets-move-somewhere">
|
||||
<button name="moveUp" @(new MvcHtmlString(i == 0 ? "disabled='disabled'" : "")) class="widgets-move widgets-move-up" type="submit" title="@T("Move up")" value="1">@T("Move up")</button>
|
||||
<button name="moveDown" @(new MvcHtmlString(++i == count ? "disabled='disabled'" : "")) class="widgets-move widgets-move-down" type="submit" title="@T("Move down")" value="1">@T("Move down")</button>
|
||||
@@ -69,41 +76,3 @@
|
||||
</li>
|
||||
}
|
||||
</ol>
|
||||
|
||||
@*
|
||||
@{
|
||||
Script.Require("ShapesBase");
|
||||
ContentPart contentPart = Model.ContentPart;
|
||||
}
|
||||
@if (contentPart.HasPublished()) {
|
||||
@Html.ItemDisplayLink(T("View").Text, (ContentItem)Model.ContentPart.ContentItem)
|
||||
@T(" | ")
|
||||
|
||||
if (contentPart.HasDraft()) {
|
||||
if (Authorizer.Authorize(Permissions.PublishContent, contentPart)) {
|
||||
@Html.Link(T("Publish Draft").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
|
||||
@Html.ActionLink(T("Preview").Text, "Preview", "Item", new { area = "Contents", id = ((ContentItem)Model.ContentPart.ContentItem).Id }, new { })
|
||||
@T(" | ")
|
||||
}
|
||||
}
|
||||
|
||||
if (Authorizer.Authorize(Permissions.PublishContent, contentPart)) {
|
||||
@Html.Link(T("Unpublish").Text, Url.Action("Unpublish", "Admin", new { area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (contentPart.HasDraft()) {
|
||||
@Html.ActionLink(T("Preview").Text, "Preview", "Item", new { area = "Contents", id = ((ContentItem)Model.ContentPart.ContentItem).Id }, new { })
|
||||
@T(" | ")
|
||||
}
|
||||
|
||||
if (Authorizer.Authorize(Permissions.PublishContent, contentPart)) {
|
||||
@Html.Link(T("Publish").Text, Url.Action("Publish", "Admin", new { area = "Contents", id = contentPart.ContentItem.Id, returnUrl = Request.ToUrlString() }), new { itemprop = "UnsafeUrl" })
|
||||
@T(" | ")
|
||||
}
|
||||
}
|
||||
|
||||
*@
|
||||
@@ -212,6 +212,27 @@ form.link button:hover, button.link:hover {
|
||||
ol.decimal {list-style:decimal inside; margin:12px 0;}
|
||||
ul.disc {list-style:disc inside; margin:12px 0;}
|
||||
|
||||
.action-links {
|
||||
display: inline-flex;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.action-links + .action-links::before {
|
||||
content: " ";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.action-links > .action-label {
|
||||
font-weight: bold;
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
.action-links > .action-link + .action-link::before {
|
||||
content: "|";
|
||||
margin: 0 2px 0 6px;
|
||||
}
|
||||
|
||||
/* Header - Branding, Login and Culture Selection
|
||||
***************************************************************/
|
||||
#header {
|
||||
@@ -955,26 +976,26 @@ table.items tr.internal *{
|
||||
margin:1em 0;
|
||||
padding:0;
|
||||
}
|
||||
.contentItems li {
|
||||
.contentItems > ul > li, .contentItems > li {
|
||||
margin:0;
|
||||
overflow:hidden;
|
||||
padding:0 1.4em .8em;
|
||||
border-bottom:1px solid #eaeaea;
|
||||
}
|
||||
.contentItems.bulk-items li {
|
||||
.contentItems.bulk-items > ul > li {
|
||||
padding-bottom:.6em;
|
||||
padding-left:.6em;
|
||||
}
|
||||
#main .contentItems li .actions {
|
||||
#main .contentItems > ul > li .actions {
|
||||
color:#EAE9D9;
|
||||
height:auto;
|
||||
margin:-1.3em 0 0;
|
||||
padding:0 0 .1em;
|
||||
}
|
||||
#main .contentItems li .actions .ibutton {
|
||||
#main .contentItems > ul > li .actions .ibutton {
|
||||
margin-right:6px;
|
||||
}
|
||||
#main .contentItems li .actions .destruct .ibutton {
|
||||
#main .contentItems > ul > li .actions .destruct .ibutton {
|
||||
margin-left:8px;
|
||||
margin-right:0;
|
||||
}
|
||||
@@ -989,6 +1010,7 @@ table.items tr.internal *{
|
||||
.contentItems .summary {
|
||||
clear:both;
|
||||
padding:1.2em .4em .5em;
|
||||
overflow: auto;
|
||||
}
|
||||
.contentItems .properties {
|
||||
float:left;
|
||||
@@ -1020,6 +1042,11 @@ table.items tr.internal *{
|
||||
margin:0 .2em -.2em;
|
||||
}
|
||||
.contentItems .related {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
width: auto;
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
.contentItems .comment-count {
|
||||
|
||||
@@ -1,2 +1,16 @@
|
||||
@model dynamic
|
||||
@if (Model.CurrentUser != null) {<div id="login">@T("User:") @Html.ItemDisplayText((Orchard.ContentManagement.IContent)Model.CurrentUser)@T(" | ")@Html.ActionLink(T("Change password").ToString(), "ChangePassword", new { area = "Orchard.Users", Controller = "Account" })@T(" | ")@Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account", ReturnUrl = Href("~/") })</div>}
|
||||
@if (Model.CurrentUser != null) {
|
||||
<div id="login">
|
||||
<ul class="action-links">
|
||||
<li class="action-link">
|
||||
@T("User:") @Html.ItemDisplayText((Orchard.ContentManagement.IContent)Model.CurrentUser)
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Change password").ToString(), "ChangePassword", new { area = "Orchard.Users", Controller = "Account" })
|
||||
</li>
|
||||
<li class="action-link">
|
||||
@Html.ActionLink(T("Logout").ToString(), "LogOff", new { Area = "Orchard.Users", Controller = "Account", ReturnUrl = Href("~/") })
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user