webdav portal home link added to logo
This commit is contained in:
parent
e4785dabca
commit
6e6b2abd8a
3 changed files with 8 additions and 3 deletions
|
@ -10,6 +10,8 @@ namespace WebsitePanel.WebDavPortal
|
|||
{
|
||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
|
||||
|
||||
#region Account
|
||||
|
||||
routes.MapRoute(
|
||||
name: AccountRouteNames.Logout,
|
||||
url: "account/logout",
|
||||
|
@ -22,6 +24,8 @@ namespace WebsitePanel.WebDavPortal
|
|||
defaults: new { controller = "Account", action = "Login" }
|
||||
);
|
||||
|
||||
#endregion
|
||||
|
||||
routes.MapRoute(
|
||||
name: "Office365DocumentRoute",
|
||||
url: "office365/{org}/{*pathPart}",
|
||||
|
@ -29,7 +33,7 @@ namespace WebsitePanel.WebDavPortal
|
|||
);
|
||||
|
||||
routes.MapRoute(
|
||||
name: "FilePathRoute",
|
||||
name: FileSystemRouteNames.FilePath,
|
||||
url: "{org}/{*pathPart}",
|
||||
defaults: new { controller = "FileSystem", action = "ShowContent", pathPart = UrlParameter.Optional },
|
||||
constraints: new { org = new WebsitePanel.WebDavPortal.Constraints.OrganizationRouteConstraint() }
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
@Html.ActionLink(WebDavAppConfigManager.Instance.ApplicationName, "Login", "Account", new { area = "" }, new { @class = "navbar-brand" })
|
||||
@Html.RouteLink(WebDavAppConfigManager.Instance.ApplicationName, FileSystemRouteNames.FilePath, new { pathPart = string.Empty }, new { @class = "navbar-brand" })
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
@{
|
||||
|
|
|
@ -180,6 +180,7 @@
|
|||
<Compile Include="Models\WebDavManager.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="UI\Routes\AccountRouteNames.cs" />
|
||||
<Compile Include="UI\Routes\FileSystemRouteNames.cs" />
|
||||
<Compile Include="WebConfigSections\ApplicationNameElement.cs" />
|
||||
<Compile Include="WebConfigSections\ElementsRenderingElement.cs" />
|
||||
<Compile Include="WebConfigSections\FileIconsElement.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue