bugfix workitem 111 - "the site crashed when click the media folder name"

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-10-14 12:55:47 -07:00
parent 1e5ef6fc3e
commit e9dd611630
2 changed files with 97 additions and 90 deletions

View File

@@ -10,15 +10,14 @@
@foreach (FolderNavigation navigation in MediaHelpers.GetFolderNavigationHierarchy(Model.MediaPath)) {
@Html.ActionLink(navigation.FolderName, "Edit",
new {name = navigation.FolderName, mediaPath = navigation.FolderPath})
}
@T("Manage Folder")</p>
</div>
<div class="folderProperties">
<p>@Html.ActionLink(T("Folder Properties").ToString(), "EditProperties", new { folderName = Model.FolderName, mediaPath = Model.MediaPath })</p>
</div>
<div class="clearBoth"></div>
<div class="clearBoth"></div>
@using(Html.BeginFormAntiForgeryPost()) {
<fieldset class="bulk-actions">
@@ -28,10 +27,12 @@
</select>
<input class="button" type="submit" value="@T("Apply")" />
</fieldset>
<div class="manage">
@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" })
</div>
<fieldset>
<table class="items" summary="@T("This is a table of the pages currently available for use in your application.")">
<colgroup>
@@ -42,9 +43,10 @@
<col id="Col5" />
<col id="Col6" />
</colgroup>
<thead>
<tr>
<th scope="col">&nbsp;&darr;<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
<th scope="col">&nbsp;&darr;@{/* todo: (heskew) something more appropriate for "this applies to the bulk actions */ }</th>
<th scope="col">@T("Name")</th>
<th scope="col">@T("Author")</th>
<th scope="col">@T("Last Updated")</th>
@@ -52,6 +54,7 @@
<th scope="col">@T("Size")</th>
</tr>
</thead>
@foreach (var mediaFile in Model.MediaFiles) {
<tr>
<td>
@@ -71,6 +74,7 @@
<td>@mediaFile.Size</td>
</tr>
}
@foreach (var mediaFolder in Model.MediaFolders) {
<tr>
<td>

View File

@@ -2,6 +2,7 @@
<h1>@Html.TitleForPage(T("Manage Media Folders").ToString())</h1>
@Html.ValidationSummary()
<fieldset class="bulk-actions">
<label for="publishActions">@T("Actions:")</label>
<select id="Select1" name="publishActions">
@@ -9,7 +10,9 @@
</select>
<input class="button roundCorners" type="submit" value="@T("Apply")" />
</fieldset>
<div class="manage">@Html.ActionLink(T("Add a folder").ToString(), "Create", new { }, new { @class = "button primaryAction" })</div>
<fieldset>
<table class="items" summary="@T("This is a table of the media folders currently available for use in your application.")">
<colgroup>
@@ -22,7 +25,7 @@
</colgroup>
<thead>
<tr>
<th scope="col">&nbsp;&darr;<%-- todo: (heskew) something more appropriate for "this applies to the bulk actions --%></th>
<th scope="col">&nbsp;&darr;@{/* todo: (heskew) something more appropriate for "this applies to the bulk actions */ }</th>
<th scope="col">@T("Name")</th>
<th scope="col">@T("Author")</th>
<th scope="col">@T("Last Updated")</th>