mirror of https://github.com/onweru/compose.git

Jorge Maldonado Ventura
08.53.2023 42071dfca4411bf4ce638c14c3bbbb53a830c905
Don't show empty <li> and <a> when no repo provided
1 files modified
2 ■■■■■ changed files
layouts/partials/nav.html 2 ●●●●● patch | view | raw | blame | history
layouts/partials/nav.html
@@ -30,6 +30,7 @@
            <a class="nav-link{{if $active }} active{{end}}" href="{{ $url }}"><span{{if $active }} class="active"{{end}}>{{ T .Identifier | default .Name }}</span></a>
        </li>
        {{- end }}
        {{ if $sp.source }}
        {{ $repo := $sp.source }}
        <li class="nav-item nav_repo">
            <a class="nav-link" href="{{ $repo.url }}" target="_blank">
@@ -44,6 +45,7 @@
                {{ end }}
            </a>
        </li>
        {{ end }}
        <li class="nav-item">{{ partial "mode" . }}</li>
    </ul>
</nav>