diff --git a/templates/repo/source-darcs.hamlet b/templates/repo/source-darcs.hamlet index 9a2960f..718e1d2 100644 --- a/templates/repo/source-darcs.hamlet +++ b/templates/repo/source-darcs.hamlet @@ -43,21 +43,21 @@ $case sv ^{body} $of SourceDir (DirectoryView mname ents mreadme)

#{fromMaybe "Files" mname} - - - -
Type - Name - $forall DirEntry type' name <- ents -
- $case type' - $of TypeBlob - 🗎 - $of TypeTree - 🗀 - - - #{name} + $if null ents +

No files! + $else + + $forall DirEntry type' name <- ents + +
+ $case type' + $of TypeBlob + 🗎 + $of TypeTree + 🗀 + + + #{name} $maybe (readmeName, readmeWidget) <- mreadme

#{readmeName} ^{readmeWidget} diff --git a/templates/repo/source-git.hamlet b/templates/repo/source-git.hamlet index aaa3e46..8ca9016 100644 --- a/templates/repo/source-git.hamlet +++ b/templates/repo/source-git.hamlet @@ -51,21 +51,21 @@ $case sv ^{body} $of SourceDir (DirectoryView mname ents mreadme)

#{fromMaybe "Files" mname} - - - -
Type - Name - $forall DirEntry type' name <- ents -
- $case type' - $of TypeBlob - 🗎 - $of TypeTree - 🗀 - - - #{name} + $if null ents +

No files! + $else + + $forall DirEntry type' name <- ents + +
+ $case type' + $of TypeBlob + 🗎 + $of TypeTree + 🗀 + + + #{name} $maybe (readmeName, readmeWidget) <- mreadme

#{readmeName} ^{readmeWidget}