diff options
Diffstat (limited to '')
-rw-r--r-- | templates/_header.html.tmpl | 22 | ||||
-rw-r--r-- | templates/group_repos.html.tmpl | 4 | ||||
-rw-r--r-- | templates/index.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_commit.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_index.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_log.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_raw_dir.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_tree_dir.html.tmpl | 4 | ||||
-rw-r--r-- | templates/repo_tree_file.html.tmpl | 4 |
9 files changed, 20 insertions, 34 deletions
diff --git a/templates/_header.html.tmpl b/templates/_header.html.tmpl index 7c0e4ea..7aebfbc 100644 --- a/templates/_header.html.tmpl +++ b/templates/_header.html.tmpl @@ -1,12 +1,14 @@ {{- define "header" -}} -<div> - <a href="/">Lindenii Forge</a> -</div> -<div> - {{ if ne .user_id "" }} - <a href="/:/users/{{ .user_id }}">{{ .username }}</a> - {{ else }} - <a href="/:/login/">Login</a> - {{ end }} -</div> +<header id="main-header"> + <div id="main-header-forge-title"> + <a href="/">Lindenii Forge</a> + </div> + <div id="main-header-user"> + {{ if ne .user_id "" }} + <a href="/:/users/{{ .user_id }}">{{ .username }}</a> + {{ else }} + <a href="/:/login/">Login</a> + {{ end }} + </div> +</header> {{- end -}} diff --git a/templates/group_repos.html.tmpl b/templates/group_repos.html.tmpl index 1050ce4..c9c12fd 100644 --- a/templates/group_repos.html.tmpl +++ b/templates/group_repos.html.tmpl @@ -6,9 +6,7 @@ <title>Repos in {{ .group_name }} – Lindenii Forge</title> </head> <body class="group-repos"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <div class="padding-wrapper"> <h1> Repos in {{ .group_name }} diff --git a/templates/index.html.tmpl b/templates/index.html.tmpl index a8ef445..50cd489 100644 --- a/templates/index.html.tmpl +++ b/templates/index.html.tmpl @@ -6,9 +6,7 @@ <title>Index – Lindenii Forge</title> </head> <body class="index"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <div class="padding-wrapper"> <h1>Lindenii Forge</h1> <h2> diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl index 6c064fc..4965d6e 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -6,9 +6,7 @@ <title>{{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-commit"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <header> {{ template "repo_header" . }} </header> diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index f77e10b..d799a22 100644 --- a/templates/repo_index.html.tmpl +++ b/templates/repo_index.html.tmpl @@ -6,9 +6,7 @@ <title>{{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-index"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <header> {{ template "repo_header" . }} </header> diff --git a/templates/repo_log.html.tmpl b/templates/repo_log.html.tmpl index 3cc719e..34b7c45 100644 --- a/templates/repo_log.html.tmpl +++ b/templates/repo_log.html.tmpl @@ -6,9 +6,7 @@ <title>Log of {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge</title> </head> <body class="repo-log"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <header> {{ template "repo_header" . }} </header> diff --git a/templates/repo_raw_dir.html.tmpl b/templates/repo_raw_dir.html.tmpl index a005a32..dc7bb98 100644 --- a/templates/repo_raw_dir.html.tmpl +++ b/templates/repo_raw_dir.html.tmpl @@ -6,9 +6,7 @@ <title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge</title> </head> <body class="repo-raw-dir"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <header> {{ template "repo_header" . }} </header> diff --git a/templates/repo_tree_dir.html.tmpl b/templates/repo_tree_dir.html.tmpl index 5d2f632..73ea4cf 100644 --- a/templates/repo_tree_dir.html.tmpl +++ b/templates/repo_tree_dir.html.tmpl @@ -6,9 +6,7 @@ <title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }}{{ if ne .path_spec "" }}/{{ end }} – Lindenii Forge</title> </head> <body class="repo-tree-dir"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <header> {{ template "repo_header" . }} </header> diff --git a/templates/repo_tree_file.html.tmpl b/templates/repo_tree_file.html.tmpl index 7b184e3..9f705c9 100644 --- a/templates/repo_tree_file.html.tmpl +++ b/templates/repo_tree_file.html.tmpl @@ -7,9 +7,7 @@ <title>{{ .group_name }}/repos/{{ .repo_name }}/{{ .path_spec }} – Lindenii Forge</title> </head> <body class="repo-tree-file"> - <header> - {{ template "header" . }} - </header> + {{ template "header" . }} <header> {{ template "repo_header" . }} </header> |