2010-10-07 10:48:51 -07:00
|
|
|
@using Orchard.Blogs.Extensions;
|
2010-10-14 11:15:22 -07:00
|
|
|
@using Orchard.Core.Contents.ViewModels;
|
|
|
|
@using Orchard.Utility.Extensions;
|
2010-09-17 01:00:24 -07:00
|
|
|
<h1>@Html.TitleForPage(T("Manage Blogs").ToString())</h1>
|
|
|
|
@if (Model.ContentItems.Items.Count > 0) {
|
|
|
|
<div class="actions"><a class="add button primaryAction" href="@Url.BlogCreate()">@T("New Blog")</a></div>
|
2010-10-14 11:15:22 -07:00
|
|
|
using(Html.BeginFormAntiForgeryPost(Url.Action("List", "Admin", new { area = "Contents", id = "" }))) {
|
|
|
|
<fieldset class="bulk-actions">
|
|
|
|
<label for="publishActions">@T("Actions:")</label>
|
|
|
|
<select id="publishActions" name="Options.BulkAction">
|
|
|
|
@Html.SelectOption(ContentsBulkAction.None, ContentsBulkAction.None, T("Choose action...").ToString())
|
|
|
|
@Html.SelectOption(ContentsBulkAction.None, ContentsBulkAction.Remove, T("Remove").ToString())
|
|
|
|
</select>
|
|
|
|
@Html.Hidden("returnUrl", ViewContext.RequestContext.HttpContext.Request.ToUrlString())
|
|
|
|
<button type="submit" name="submit.BulkEdit" value="yes">@T("Apply")</button>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset class="contentItems bulk-items">
|
|
|
|
@Display(Model.ContentItems)
|
|
|
|
</fieldset>
|
|
|
|
}
|
2010-09-17 01:00:24 -07:00
|
|
|
} else {
|
|
|
|
<div class="info message">@T("There are no blogs for you to see. Want to <a href=\"{0}\">add one</a>?", Url.BlogCreate())</div>
|
|
|
|
}
|