all repos

mugit @ b407568d0a3ac5a14ba9b93f349903d11e7c224d

🐮 git server that your cow will love

mugit/templates/_head.html(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{ define "head" }}
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/static/style.css" type="text/css">
    <!-- TODO: icon -->
    {{ if .parent }}
    <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .parent }}/</title>

    {{ else if .path }}
    <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }}): {{ .path }}</title>
    {{ else if .files }}
    <title>{{ .meta.Title }} &mdash; {{ .name }} ({{ .ref }})</title>
    {{ else if .commit }}
    <title>{{ .meta.Title }} &mdash; {{ .name }}: {{ .commit.This }}</title>
    {{ else if .branches }}
    <title>{{ .meta.Title }} &mdash; {{ .name }}: refs</title>
    {{ else if .commits }}
    {{ if .log }}
    <title>{{ .meta.Title }} &mdash; {{ .name }}: log</title>
    {{ else }}
    <title>{{ .meta.Title }} &mdash; {{ .name }}</title>
    {{ end }}
    {{ else }}
    <title>{{ .meta.Title }}</title>
    {{ end }}
    <!-- {{ if and .servername .gomod }} -->
    <!-- <meta name="go-import" content="{{ .servername}}/{{ .name }} git https://{{ .servername }}/{{ .name }}"> -->
    <!-- {{ end }} -->
  </head>
{{ end }}