1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-04 20:50:21 -05:00

update portal landing page with tiles (#915)

This commit is contained in:
Chad Scharf 2020-09-05 23:06:15 -04:00 committed by GitHub
parent c11af22010
commit f27df01158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

View File

@ -1,8 +1,31 @@
@{
ViewData["Title"] = "Home Page";
}
@inject SignInManager<Bit.Core.Models.Table.User> SignInManager
@inject Bit.Core.Services.II18nService i18nService
@inject Bit.Portal.EnterprisePortalCurrentContext EnterprisePortalCurrentContext
<div class="page-header">
<h1>Welcome</h1>
<h1>@i18nService.T("WelcomeToBusinessPortal")</h1>
</div>
<p>Hello world...</p>
<div class="row">
@if (EnterprisePortalCurrentContext.SelectedOrganizationDetails.UseSso &&
EnterprisePortalCurrentContext.AdminForSelectedOrganization)
{
<div class="col">
<a class="card p-5 border border-primary" asp-area="" asp-controller="Sso" asp-action="Index">
<h2 class="card-title text-center">@i18nService.T("SingleSignOn")</h2>
</a>
</div>
}
@if (EnterprisePortalCurrentContext.SelectedOrganizationDetails.UsePolicies &&
EnterprisePortalCurrentContext.AdminForSelectedOrganization)
{
<div class="col">
<a class="card p-5 border border-primary" asp-area="" asp-controller="Policies" asp-action="Index">
<h2 class="card-title text-center">@i18nService.T("Policies")</h2>
</a>
</div>
}
</div>

View File

@ -442,4 +442,7 @@
<data name="Never">
<value>Never</value>
</data>
<data name="WelcomeToBusinessPortal">
<value>Welcome to the Bitwarden Business Portal</value>
</data>
</root>