Bug fixes

* Index.aspx: Gives this page a title

* AdminController.cs: Trying to fix this Index : /Admin ... a 404

* YavscModel.csproj:
* Commande.cs:
* FileSystemController.cs:
* WebFileSystemManager.cs: Refactoring the name of the files manager
  class

* Index.aspx: Fixes the file system access

* RemoveRole.aspx: Role removal form, had not a canonical name!

* Web.csproj: a page was renamed
This commit is contained in:
Paul Schneider 2015-10-29 12:07:07 +01:00
commit 2a30ae85a9
11 changed files with 50 additions and 25 deletions

View file

@ -1,3 +1,20 @@
2015-10-29 Paul Schneider <paul@pschneider.fr>
* Index.aspx: Gives this page a title
* AdminController.cs: Trying to fix this Index : /Admin ... a
404
* FileSystemController.cs: Refactoring the name of the files
manager class
* Index.aspx: Fixes the file system access
* RemoveRole.aspx: Role removal form, had not a canonical
name!
* Web.csproj: a page was renamed
2015-10-28 Paul Schneider <paul@pschneider.fr>
* yavsc.circles.js:

View file

@ -29,7 +29,8 @@ namespace Yavsc.Controllers
YavscHelpers.Notify (ViewData, roleName + " " + LocalizedText.role_created);
}
return View ("Index");
return View ();
}
/// <summary>
/// Inits the db.

View file

@ -33,7 +33,7 @@ namespace Yavsc.Controllers
[Authorize]
public ActionResult Index (string user, string filename)
{
FileSystemManager fsmgr = new FileSystemManager ();
WebFileSystemManager fsmgr = new WebFileSystemManager ();
var files = fsmgr.GetFiles (user,filename);
return View (files);
}
@ -54,7 +54,7 @@ namespace Yavsc.Controllers
/// <param name="filename">Filename.</param>
public ActionResult Details (string user, string filename)
{
FileSystemManager fsmgr = new FileSystemManager ();
WebFileSystemManager fsmgr = new WebFileSystemManager ();
FileInfo fi = fsmgr.FileInfo (filename);
ViewData ["filename"] = filename;

View file

@ -1,6 +1,6 @@
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<Yavsc.Model.FileSystem.FileInfoCollection>" %>
<%@ Page Title="Files" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<System.IO.FileInfo[]>" %>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
<h1> Index of <%= Model.Owner %>'s files (<%= Html.Encode(Model.Count) %>)
<h1> Index
</h1>
<ul>
<% foreach (System.IO.FileInfo fi in Model) { %>

View file

@ -0,0 +1,4 @@
<%@ Page Title="Google interface" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
</asp:Content>

View file

@ -286,7 +286,6 @@
<Content Include="robots.txt" />
<Content Include="Scripts\form-new-user.js" />
<Content Include="Views\FrontOffice\Estimate.aspx" />
<Content Include="Views\Admin\RemoveRole..aspx" />
<Content Include="Views\FrontOffice\EventPub.aspx" />
<Content Include="Views\Account\Circles.aspx" />
<Content Include="Views\Account\Register.ascx" />
@ -461,6 +460,8 @@
<Content Include="Views\Google\ChooseADate.aspx" />
<Content Include="Views\Google\OtherWebException.aspx" />
<Content Include="Models\AppAdmin.master" />
<Content Include="Views\Google\Index.aspx" />
<Content Include="Views\Admin\RemoveRole.aspx" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />