<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage" %> <%@ Import Namespace="Orchard.Media.Models"%> <%@ Import Namespace="Orchard.Media.Helpers"%> <%@ Import Namespace="Orchard.Media.ViewModels"%>

<%=Html.TitleForPage(T("Manage Folder").ToString())%>

<%--
<%=Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button"})%>
--%>

<%=Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath })%>

<% using(Html.BeginFormAntiForgeryPost()) { %>
" />
<%=Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%> <%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
"> <%foreach (var mediaFile in Model.MediaFiles) { %> <%}%> <%foreach (var mediaFolder in Model.MediaFolders) { %> <%}%>
 ↓<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%> <%=_Encoded("Name") %> <%=_Encoded("Author") %> <%=_Encoded("Last Updated") %> <%=_Encoded("Type") %> <%=_Encoded("Size") %>
"/> <%=Html.ActionLink(mediaFile.Name, "EditMedia", new { name = mediaFile.Name, lastUpdated = mediaFile.LastUpdated, size = mediaFile.Size, folderName = mediaFile.FolderName, mediaPath = Model.MediaPath })%> <%=_Encoded("Orchard User")%> <%=mediaFile.LastUpdated %> <%=Html.Encode(mediaFile.Type) %> <%=mediaFile.Size %>
"/> " height="16" width="16" class="mediaTypeIcon" alt="<%=_Encoded("Folder") %>" /> <%=Html.ActionLink(mediaFolder.Name, "Edit", new { name = mediaFolder.Name, mediaPath = mediaFolder.MediaPath})%> <%=_Encoded("Orchard User")%> <%=mediaFolder.LastUpdated %> <%=_Encoded("Folder")%> <%=mediaFolder.Size %>
<%=Html.ActionLink(T("Add media").ToString(), "Add", new { folderName = Model.FolderName, mediaPath = Model.MediaPath }, new { @class = "button primaryAction" })%> <%=Html.ActionLink(T("Add a folder").ToString(), "Create", new { Model.MediaPath }, new { @class = "button" })%>
<% } %>