2021-12-30 20:16:09 +00:00
|
|
|
{% import "fmt" %}
|
2021-02-22 18:37:23 +00:00
|
|
|
{% import "path/filepath" %}
|
2021-10-01 05:14:23 +00:00
|
|
|
{% import "sort" %}
|
2021-12-30 20:16:09 +00:00
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
{% import "github.com/bouncepaw/mycorrhiza/cfg" %}
|
2021-02-22 18:37:23 +00:00
|
|
|
{% import "github.com/bouncepaw/mycorrhiza/hyphae" %}
|
2021-01-23 13:45:17 +00:00
|
|
|
{% import "github.com/bouncepaw/mycorrhiza/user" %}
|
2021-02-22 18:37:23 +00:00
|
|
|
{% import "github.com/bouncepaw/mycorrhiza/util" %}
|
2021-09-06 17:46:34 +00:00
|
|
|
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
|
2021-01-23 13:45:17 +00:00
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func BaseHTML(title, body string, lc *l18n.Localizer, u *user.User, headElements ...string) %}
|
2020-08-31 17:52:26 +00:00
|
|
|
<!doctype html>
|
2021-09-06 17:46:34 +00:00
|
|
|
<html lang="{%s lc.Locale %}">
|
2020-08-31 17:52:26 +00:00
|
|
|
<head>
|
2021-02-22 18:19:28 +00:00
|
|
|
<meta charset="utf-8">
|
2021-06-12 13:51:28 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-08-31 17:52:26 +00:00
|
|
|
<title>{%s title %}</title>
|
2021-06-12 13:51:28 +00:00
|
|
|
<link rel="shortcut icon" href="/static/favicon.ico">
|
2021-06-13 05:40:06 +00:00
|
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
|
|
<script src="/static/shortcuts.js"></script>
|
2020-12-17 12:59:59 +00:00
|
|
|
{% for _, el := range headElements %}{%s= el %}{% endfor %}
|
2020-08-31 17:52:26 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-01-23 19:00:58 +00:00
|
|
|
<header>
|
2021-07-13 20:52:33 +00:00
|
|
|
<nav class="main-width top-bar">
|
|
|
|
<ul class="top-bar__wrapper">
|
|
|
|
<li class="top-bar__section top-bar__section_home">
|
2021-07-15 09:35:01 +00:00
|
|
|
<div class="top-bar__home-link-wrapper">
|
|
|
|
<a class="top-bar__home-link" href="/">{%s cfg.WikiName %}</a>
|
|
|
|
</div>
|
2021-07-13 20:52:33 +00:00
|
|
|
</li>
|
|
|
|
<li class="top-bar__section top-bar__section_search">
|
|
|
|
<form class="top-bar__search" method="GET" action="/title-search">
|
2021-09-06 17:46:34 +00:00
|
|
|
<input type="text" name="q" placeholder="{%s lc.Get("ui.title_search") %}" class="top-bar__search-bar">
|
2021-07-12 17:13:54 +00:00
|
|
|
</form>
|
|
|
|
</li>
|
2021-07-15 17:46:23 +00:00
|
|
|
<li class="top-bar__section top-bar__section_auth">
|
2021-07-25 13:17:13 +00:00
|
|
|
{% if cfg.UseAuth %}
|
2021-07-13 20:52:33 +00:00
|
|
|
<ul class="top-bar__auth auth-links">
|
|
|
|
<li class="auth-links__box auth-links__user-box">
|
|
|
|
{% if u.Group == "anon" %}
|
2021-09-06 17:46:34 +00:00
|
|
|
<a href="/login" class="auth-links__link auth-links__login-link">{%s lc.Get("ui.login") %}</a>
|
2021-07-13 20:52:33 +00:00
|
|
|
{% else %}
|
2021-07-15 09:35:01 +00:00
|
|
|
<a href="/hypha/{%s cfg.UserHypha %}/{%s u.Name %}" class="auth-links__link auth-links__user-link">{%s util.BeautifulName(u.Name) %}</a>
|
2021-07-13 20:52:33 +00:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% if cfg.AllowRegistration && u.Group == "anon" %}
|
|
|
|
<li class="auth-links__box auth-links__register-box">
|
2021-09-06 17:46:34 +00:00
|
|
|
<a href="/register" class="auth-links__link auth-links__register-link">{%s lc.Get("ui.register") %}</a>
|
2021-07-13 20:52:33 +00:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2021-07-25 13:17:13 +00:00
|
|
|
</li>
|
2021-07-15 17:46:23 +00:00
|
|
|
<li class="top-bar__section top-bar__section_highlights">
|
2021-07-13 20:52:33 +00:00
|
|
|
<ul class="top-bar__highlights">
|
|
|
|
{%- for _, link := range cfg.HeaderLinks -%}
|
|
|
|
{% if link.Href != "/" %}
|
|
|
|
<li class="top-bar__highlight">
|
|
|
|
<a class="top-bar__highlight-link" href="{%s link.Href %}">{%s link.Display %}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|
|
|
|
</li>
|
2021-01-23 19:00:58 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2020-08-31 17:52:26 +00:00
|
|
|
{%s= body %}
|
2021-06-14 05:16:50 +00:00
|
|
|
<template id="dialog-template">
|
2021-06-14 06:50:52 +00:00
|
|
|
<div class="dialog-backdrop"></div>
|
|
|
|
<div class="dialog" tabindex="0">
|
|
|
|
<div class="dialog__header">
|
|
|
|
<h1 class="dialog__title"></h1>
|
2021-09-06 17:46:34 +00:00
|
|
|
<button class="dialog__close-button" aria-label="{%s lc.Get("ui.close_dialog") %}"></button>
|
2021-06-14 05:16:50 +00:00
|
|
|
</div>
|
2021-06-14 06:50:52 +00:00
|
|
|
|
|
|
|
<div class="dialog__content"></div>
|
2021-06-14 05:16:50 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2021-07-01 09:45:29 +00:00
|
|
|
{%= CommonScripts() %}
|
2021-07-15 17:19:10 +00:00
|
|
|
<script src="/static/view.js"></script>
|
2020-08-31 17:52:26 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func TitleSearchHTML(query string, generator func(string) <-chan string, lc *l18n.Localizer) %}
|
2021-07-12 13:25:57 +00:00
|
|
|
<div class="layout">
|
2021-07-12 17:05:50 +00:00
|
|
|
<main class="main-width title-search">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>{%s lc.Get("ui.search_results_query", &l18n.Replacements{"query": query})%}</h1>
|
|
|
|
<p>{%s lc.Get("ui.search_results_desc")%}</p>
|
2021-07-12 17:05:50 +00:00
|
|
|
<ul class="title-search__results">
|
2021-07-12 13:25:57 +00:00
|
|
|
{% for hyphaName := range generator(query) %}
|
2021-07-12 17:05:50 +00:00
|
|
|
<li class="title-search__entry">
|
|
|
|
<a class="title-search__link wikilink" href="/hypha/{%s hyphaName %}">{%s util.BeautifulName(hyphaName) %}</a>
|
2021-07-12 13:25:57 +00:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-07-12 17:55:36 +00:00
|
|
|
It outputs a poorly formatted JSON, but it works and is valid.
|
|
|
|
{% func TitleSearchJSON(query string, generator func(string) <-chan string) %}
|
|
|
|
{% code
|
|
|
|
// Lol
|
|
|
|
counter := 0
|
|
|
|
%}
|
|
|
|
{
|
|
|
|
"source_query": "{%s query %}",
|
|
|
|
"results": [
|
|
|
|
{% for hyphaName := range generator(query) %}
|
|
|
|
{% if counter > 0 %}, {% endif %}{
|
|
|
|
"canonical_name": "{%s hyphaName %}",
|
|
|
|
"beautiful_name": "{%s util.BeautifulName(hyphaName) %}",
|
|
|
|
"url": "{%s cfg.URL + "/hypha/" + hyphaName %}"
|
|
|
|
}{% code counter++ %}
|
|
|
|
{% endfor %}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-12-30 19:59:28 +00:00
|
|
|
{% func BacklinksHTML(hyphaName string, generator func(string) <-chan string, lc *l18n.Localizer) %}
|
2021-08-31 17:27:52 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width backlinks">
|
2021-12-30 20:16:09 +00:00
|
|
|
<h1>{%s= lc.Get(
|
|
|
|
"ui.backlinks_heading",
|
|
|
|
&l18n.Replacements{
|
|
|
|
"hypha_link": fmt.Sprintf(
|
|
|
|
`<a href="/hypha/%s">%s</a>`,
|
|
|
|
hyphaName,
|
|
|
|
util.BeautifulName(hyphaName),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
)%}</h1>
|
2021-09-06 17:46:34 +00:00
|
|
|
<p>{%s lc.Get("ui.backlinks_desc")%}</p>
|
2021-08-31 17:27:52 +00:00
|
|
|
<ul class="backlinks__list">
|
2021-12-30 19:59:28 +00:00
|
|
|
{% for hyphaName := range generator(hyphaName) %}
|
2021-08-31 17:27:52 +00:00
|
|
|
<li class="backlinks__entry">
|
|
|
|
<a class="backlinks__link wikilink" href="/hypha/{%s hyphaName %}">{%s util.BeautifulName(hyphaName) %}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2021-12-30 19:59:28 +00:00
|
|
|
</ul>
|
2021-08-31 17:27:52 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func HelpHTML(content, lang string, lc *l18n.Localizer) %}
|
2021-07-12 09:58:20 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width help">
|
|
|
|
<article>
|
|
|
|
{%s= content %}
|
|
|
|
</article>
|
|
|
|
</main>
|
2021-09-06 17:46:34 +00:00
|
|
|
{%s= helpTopicsHTML(lang, lc) %}
|
2021-07-12 09:58:20 +00:00
|
|
|
</div>
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func HelpEmptyErrorHTML(lc *l18n.Localizer) %}
|
|
|
|
<h1>{%s lc.Get("help.empty_error_title") %}</h1>
|
|
|
|
<p>{%s lc.Get("help.empty_error_line_1") %}</p>
|
|
|
|
<p>{%s lc.Get("help.empty_error_line_2a") %} <a class="wikilink wikilink_external wikilink_https" href="https://github.com/bouncepaw/mycorrhiza">{%s lc.Get("help.empty_error_link") %}</a> {%s lc.Get("help.empty_error_line_2b") %}</p>
|
2021-07-12 09:58:20 +00:00
|
|
|
{% endfunc %}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func helpTopicsHTML(lang string, lc *l18n.Localizer) %}
|
2021-07-12 09:58:20 +00:00
|
|
|
<aside class="help-topics layout-card">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h2 class="layout-card__title">{%s lc.GetWithLocale(lang, "help.topics") %}</h2>
|
2021-07-12 10:13:12 +00:00
|
|
|
<ul class="help-topics__list">
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><a href="/help/{%s lang %}">{%s lc.GetWithLocale(lang, "help.main") %}</a></li>
|
|
|
|
<li><a href="/help/{%s lang %}/hypha">{%s lc.GetWithLocale(lang, "help.hypha") %}</a>
|
2021-07-12 09:58:20 +00:00
|
|
|
<ul>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><a href="/help/{%s lang %}/attachment">{%s lc.GetWithLocale(lang, "help.attachment") %}</a></li>
|
2021-07-24 19:44:01 +00:00
|
|
|
</ul>
|
2021-07-12 09:58:20 +00:00
|
|
|
</li>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><a href="/help/{%s lang %}/mycomarkup">{%s lc.GetWithLocale(lang, "help.mycomarkup") %}</a></li>
|
|
|
|
<li>{%s lc.GetWithLocale(lang, "help.interface") %}
|
2021-07-24 20:32:38 +00:00
|
|
|
<ul>
|
2021-09-27 09:06:25 +00:00
|
|
|
<li><a href="/help/{%s lang %}/prevnext">{%s lc.GetWithLocale(lang, "help.prevnext") %}</a></li>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><a href="/help/{%s lang %}/top_bar">{%s lc.GetWithLocale(lang, "help.top_bar") %}</a></li>
|
|
|
|
<li><a href="/help/{%s lang %}/sibling_hyphae_section">{%s lc.GetWithLocale(lang, "help.sibling_hyphae") %}</a></li>
|
2021-07-24 20:32:38 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li>{%s lc.GetWithLocale(lang, "help.special_pages") %}
|
2021-08-01 19:25:24 +00:00
|
|
|
<ul>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><a href="/help/{%s lang %}/recent_changes">{%s lc.GetWithLocale(lang, "help.recent_changes") %}</a></li>
|
2021-10-27 03:28:56 +00:00
|
|
|
<li><a href="/help/{%s lang %}/feeds">{%s lc.GetWithLocale(lang, "help.feeds") %}</a></li>
|
2021-08-01 19:25:24 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li>{%s lc.GetWithLocale(lang, "help.configuration") %}
|
2021-07-24 11:30:28 +00:00
|
|
|
<ul>
|
2021-11-30 18:20:09 +00:00
|
|
|
<li><a href="/help/{%s lang %}/config_file">{%s lc.GetWithLocale(lang, "help.config_file") %}</a></li>
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><a href="/help/{%s lang %}/lock">{%s lc.GetWithLocale(lang, "help.lock") %}</a></li>
|
|
|
|
<li><a href="/help/{%s lang %}/whitelist">{%s lc.GetWithLocale(lang, "help.whitelist") %}</a></li>
|
|
|
|
<li><a href="/help/{%s lang %}/telegram">{%s lc.GetWithLocale(lang, "help.telegram") %}</a></li>
|
2021-07-24 11:30:28 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2021-07-12 09:58:20 +00:00
|
|
|
</ul>
|
|
|
|
</aside>
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-08-01 19:25:24 +00:00
|
|
|
{% func helpTopicBadgeHTML(lang, topic string) %}
|
2022-02-03 18:47:23 +00:00
|
|
|
<a class="help-topic-badge" href="/help/en/{%s topic %}">?</a>
|
2021-08-01 19:25:24 +00:00
|
|
|
{% endfunc %}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func UserListHTML(lc *l18n.Localizer) %}
|
2021-01-30 18:21:50 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width user-list">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>{%s lc.Get("ui.users_heading") %}</h1>
|
2021-01-30 18:21:50 +00:00
|
|
|
{% code
|
|
|
|
var (
|
|
|
|
admins = make([]string, 0)
|
|
|
|
moderators = make([]string, 0)
|
|
|
|
editors = make([]string, 0)
|
|
|
|
)
|
|
|
|
for u := range user.YieldUsers() {
|
|
|
|
switch u.Group {
|
|
|
|
case "admin":
|
|
|
|
admins = append(admins, u.Name)
|
|
|
|
case "moderator":
|
|
|
|
moderators = append(moderators, u.Name)
|
|
|
|
case "editor", "trusted":
|
|
|
|
editors = append(editors, u.Name)
|
|
|
|
}
|
|
|
|
}
|
2021-10-01 05:14:23 +00:00
|
|
|
sort.Strings(admins)
|
|
|
|
sort.Strings(moderators)
|
|
|
|
sort.Strings(editors)
|
2021-01-30 18:21:50 +00:00
|
|
|
%}
|
|
|
|
<section>
|
2021-09-06 17:46:34 +00:00
|
|
|
<h2>{%s lc.Get("ui.users_admins") %}</h2>
|
2021-01-30 18:21:50 +00:00
|
|
|
<ol>{% for _, name := range admins %}
|
2021-06-14 07:13:29 +00:00
|
|
|
<li><a href="/hypha/{%s cfg.UserHypha %}/{%s name %}">{%s name %}</a></li>
|
2021-01-30 18:21:50 +00:00
|
|
|
{% endfor %}</ol>
|
|
|
|
</section>
|
|
|
|
<section>
|
2021-09-06 17:46:34 +00:00
|
|
|
<h2>{%s lc.Get("ui.users_moderators") %}</h2>
|
2021-01-30 18:21:50 +00:00
|
|
|
<ol>{% for _, name := range moderators %}
|
2021-06-14 07:13:29 +00:00
|
|
|
<li><a href="/hypha/{%s cfg.UserHypha %}/{%s name %}">{%s name %}</a></li>
|
2021-01-30 18:21:50 +00:00
|
|
|
{% endfor %}</ol>
|
|
|
|
</section>
|
|
|
|
<section>
|
2021-09-06 17:46:34 +00:00
|
|
|
<h2>{%s lc.Get("ui.users_editors") %}</h2>
|
2021-01-30 18:21:50 +00:00
|
|
|
<ol>{% for _, name := range editors %}
|
2021-06-14 07:13:29 +00:00
|
|
|
<li><a href="/hypha/{%s cfg.UserHypha %}/{%s name %}">{%s name %}</a></li>
|
2021-01-30 18:21:50 +00:00
|
|
|
{% endfor %}</ol>
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
{% endfunc %}
|
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func HyphaListHTML(lc *l18n.Localizer) %}
|
2021-01-26 05:41:57 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>{%s lc.Get("ui.list_heading") %}</h1>
|
|
|
|
<p>{%s lc.GetPlural("ui.list_desc", hyphae.Count()) %}</p>
|
2021-02-22 18:37:23 +00:00
|
|
|
<ul class="hypha-list">
|
2021-10-01 04:56:49 +00:00
|
|
|
{% code
|
|
|
|
hyphaNames := make(chan string)
|
|
|
|
sortedHypha := hyphae.PathographicSort(hyphaNames)
|
|
|
|
for hypha := range hyphae.YieldExistingHyphae() {
|
2022-02-03 21:47:36 +00:00
|
|
|
hyphaNames <- hypha.CanonicalName()
|
2021-10-01 04:56:49 +00:00
|
|
|
}
|
|
|
|
close(hyphaNames)
|
|
|
|
%}
|
|
|
|
{% for hyphaName := range sortedHypha %}
|
2022-02-19 08:26:38 +00:00
|
|
|
{% code h := hyphae.ByName(hyphaName) %}
|
2021-02-22 18:37:23 +00:00
|
|
|
<li class="hypha-list__entry">
|
2022-02-19 08:26:38 +00:00
|
|
|
<a class="hypha-list__link" href="/hypha/{%s h.CanonicalName() %}">
|
|
|
|
{%s util.BeautifulName(h.CanonicalName()) %}
|
2022-02-04 14:56:28 +00:00
|
|
|
</a>
|
2022-02-19 08:26:38 +00:00
|
|
|
{% switch h := h.(type) %}
|
|
|
|
{% case *hyphae.MediaHypha %}
|
|
|
|
<span class="hypha-list__amnt-type">
|
|
|
|
{%s filepath.Ext(h.MediaFilePath())[1:] %}
|
|
|
|
</span>
|
|
|
|
{% endswitch %}
|
2021-02-22 18:37:23 +00:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-08-31 17:52:26 +00:00
|
|
|
</main>
|
2021-01-26 05:41:57 +00:00
|
|
|
</div>
|
2020-08-31 17:52:26 +00:00
|
|
|
{% endfunc %}
|
2020-08-31 18:16:22 +00:00
|
|
|
|
2021-09-06 17:46:34 +00:00
|
|
|
{% func AboutHTML(lc *l18n.Localizer) %}
|
2021-01-26 05:41:57 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
2021-01-23 13:45:17 +00:00
|
|
|
<section>
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>{%s lc.Get("ui.about_title", &l18n.Replacements{"name": cfg.WikiName}) %}</h1>
|
2021-01-23 13:45:17 +00:00
|
|
|
<ul>
|
2022-01-27 19:28:00 +00:00
|
|
|
<li><b>{%s= lc.Get("ui.about_version", &l18n.Replacements{"pre": "<a href=\"https://mycorrhiza.wiki\">", "post": "</a>"}) %}</b> 1.8.0</li>
|
2021-07-02 08:20:03 +00:00
|
|
|
{%- if cfg.UseAuth -%}
|
2021-09-06 17:46:34 +00:00
|
|
|
<li><b>{%s lc.Get("ui.about_usercount") %}</b> {%dul user.Count() %}</li>
|
|
|
|
<li><b>{%s lc.Get("ui.about_homepage") %}</b> <a href="/">{%s cfg.HomeHypha %}</a></li>
|
|
|
|
<li><b>{%s lc.Get("ui.about_admins") %}</b> {%- for i, username := range user.ListUsersWithGroup("admin") -%}
|
2021-01-23 13:45:17 +00:00
|
|
|
{%- if i > 0 -%}<span aria-hidden="true">, </span>
|
|
|
|
{%- endif -%}
|
2021-06-14 07:13:29 +00:00
|
|
|
<a href="/hypha/{%s cfg.UserHypha %}/{%s username %}">{%s username %}</a>{%- endfor -%}</li>
|
2021-01-23 13:45:17 +00:00
|
|
|
{%- else -%}
|
2021-09-06 17:46:34 +00:00
|
|
|
<li>{%s lc.Get("ui.about_noauth") %}</li>
|
2021-01-23 13:45:17 +00:00
|
|
|
{%- endif -%}
|
|
|
|
</ul>
|
2021-09-06 17:46:34 +00:00
|
|
|
<p>{%s= lc.Get("ui.about_hyphae", &l18n.Replacements{"link": "<a href=\"/list\">/list</a>"}) %}</p>
|
2021-01-23 13:45:17 +00:00
|
|
|
</section>
|
|
|
|
</main>
|
2021-01-26 05:41:57 +00:00
|
|
|
</div>
|
2021-01-23 13:45:17 +00:00
|
|
|
{% endfunc %}
|
2021-02-22 18:19:28 +00:00
|
|
|
|
2021-07-01 09:45:29 +00:00
|
|
|
{% func CommonScripts() %}
|
|
|
|
{% for _, scriptPath := range cfg.CommonScripts %}
|
2021-05-22 18:05:14 +00:00
|
|
|
<script src="{%s scriptPath %}"></script>
|
|
|
|
{% endfor %}
|
2021-06-29 10:34:36 +00:00
|
|
|
{% endfunc %}
|