From 6646fc4ab58bdc3b321c2d0eb547e885fec8d0f6 Mon Sep 17 00:00:00 2001 From: Berkan Sasmaz Date: Wed, 15 Mar 2023 10:53:52 +0300 Subject: [PATCH] Update Index.cshtml --- .../Pages/Documents/Project/Index.cshtml | 74 ++++++++++--------- 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index 363a587f1e..cd97ea9a76 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -240,45 +240,51 @@ } -
-
-
- @if (Model.Document.Contributors != null && Model.Document.Contributors.Count > 0) - { - - @L["Contributors"].Value - - } - @if (!string.IsNullOrEmpty(Model.Document.EditLink)) - { - - - @L["Edit"] - (@Model.Document.LastUpdatedTime.ToShortDateString()) - - } -
- @if (Model.Document.Contributors != null && Model.Document.Contributors.Count > 0) - { -
- @foreach (var contributor in Model.Document.Contributors.OrderByDescending(c => c.CommitCount).ToList()) + @{ + var showContributors = Model.Document.Contributors != null && Model.Document.Contributors.Count > 0; + var showEditLink = !string.IsNullOrEmpty(Model.Document.EditLink); + } + @if (showContributors || showEditLink) + { +
+
+
+ @if (showContributors) + { + + @L["Contributors"].Value + + } + @if (showEditLink) { - - Avatar + + + @L["Edit"] + (@Model.Document.LastUpdatedTime.ToShortDateString()) }
- } - + @if (showContributors) + { +
+ @foreach (var contributor in Model.Document.Contributors.OrderByDescending(c => c.CommitCount).ToList()) + { + + Avatar + + } +
+ } +
-
+ }