gddo: gddo-server: Hide Files link for commands v1 APPLIED

Adnan Maolood: 1
 gddo-server: Hide Files link for commands

 1 files changed, 6 insertions(+), 4 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/godocs.io/patches/22540/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gddo] gddo-server: Hide Files link for commands Export this patch

Alternatively, we could display the list of files for commands. However,
I don't really see the value in doing so.

 gddo-server/assets/templates/common.html | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gddo-server/assets/templates/common.html b/gddo-server/assets/templates/common.html
index 2a5f857..f7b8a91 100644
--- a/gddo-server/assets/templates/common.html
+++ b/gddo-server/assets/templates/common.html
@@ -12,15 +12,17 @@
{{define "ProjectNav"}}{{template "FlashMessages" .Messages}}<div class="clearfix" id="x-projnav">
  {{if eq .ModulePath "std"}}<a href="/std">Go:</a>{{else if .Meta}}<a rel="noopener nofollow" href="{{.Meta.ProjectURL}}"><strong>{{.Meta.ProjectName}}:</strong></a>{{end}}
  {{.Breadcrumbs templateName}}
  {{if and .Name (eq templateName "doc.html")}}
  {{if and .Name (eq templateName "doc.html") (or (not .IsCommand) .SubPackages)}}
  <span class="pull-right">
    {{if not .IsCommand}}
      <a href="#pkg-index">Index</a>
      {{if .AllExamples}}<span class="text-muted">|</span> <a href="#pkg-examples">Examples</a>{{end}}
      <span class="text-muted">|</span>
      <span class="text-muted">|</span> <a href="#pkg-files">Files</a>
    {{if .SubPackages}}
      {{if not .IsCommand}}<span class="text-muted">|</span>{{end}}
      <a href="#pkg-subdirectories">Directories</a>
    <a href="#pkg-files">Files</a>
    {{if .SubPackages}}<span class="text-muted">|</span> <a href="#pkg-subdirectories">Directories</a>{{end}}

To git@git.sr.ht:~sircmpwn/gddo
   d442d49..a978cea  master -> master