From cef5d4d6f7b6b3392106c1bcaaff3285534e31e9 Mon Sep 17 00:00:00 2001 From: Mattia Date: Sat, 11 Mar 2023 10:48:00 +0100 Subject: [PATCH] Add edit link in project page for all docs Add link edit for all docs also for docs without collaborators --- .../Pages/Documents/Project/Index.cshtml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 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 dde30ddb95..363a587f1e 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 @@ -242,22 +242,24 @@
- @if (Model.Document.Contributors != null && Model.Document.Contributors.Count > 0) - { -
+
+ @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 (!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()) { @@ -276,8 +278,6 @@ }
- -