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

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

Loading…
Cancel
Save