Show long project name instead of short name

pull/570/head
Halil ibrahim Kalkan 6 years ago
parent fc09f4584d
commit e7447bcb36

@ -10,6 +10,7 @@
@{
ViewBag.FluidLayout = true;
Layout = ThemeManager.CurrentTheme.GetEmptyLayout();
var projectDisplayName = Model.ProjectDisplayName ?? Model.ProjectName;
}
@section styles {
<abp-style-bundle name="@typeof(IndexModel).FullName">
@ -45,10 +46,10 @@
<div class="docs-top">
<nav class="navbar navbar-logo">
@if (!Model.ProjectName.IsNullOrWhiteSpace())
@if (!projectDisplayName.IsNullOrWhiteSpace())
{
<a class="navbar-brand w-100" href="@Model.CreateLink(Model.GetSpecificVersionOrLatest())">
@Model.ProjectName<br>
@projectDisplayName<br>
<strong class="display-block">
@L["Documents"]
</strong>

@ -22,6 +22,8 @@ namespace Volo.Docs.Pages.Documents.Project
[BindProperty(SupportsGet = true)]
public string DocumentName { get; set; }
public string ProjectDisplayName { get; set; }
public string ProjectFormat { get; private set; }
public string DocumentNameWithExtension { get; private set; }
@ -69,6 +71,7 @@ namespace Volo.Docs.Pages.Documents.Project
private void SetPageParams(ProjectDto project)
{
ProjectFormat = project.Format;
ProjectDisplayName = project.Name;
if (DocumentName.IsNullOrWhiteSpace())
{

Loading…
Cancel
Save