mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-08-07 14:23:48 +00:00
mycorrhiza.lesarbr.es -> mycorrhiza.wiki
This commit is contained in:
parent
9dfbcedd19
commit
80414dd748
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
// These variables represent the configuration. You are not meant to modify
|
// These variables represent the configuration. You are not meant to modify
|
||||||
// them after they were set.
|
// them after they were set.
|
||||||
// See https://mycorrhiza.lesarbr.es/hypha/configuration/fields for the
|
// See https://mycorrhiza.wiki/hypha/configuration/fields for the
|
||||||
// documentation.
|
// documentation.
|
||||||
var (
|
var (
|
||||||
WikiName string
|
WikiName string
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package cfg
|
package cfg
|
||||||
|
|
||||||
// See https://mycorrhiza.lesarbr.es/hypha/configuration/header
|
// See https://mycorrhiza.wiki/hypha/configuration/header
|
||||||
import (
|
import (
|
||||||
"github.com/bouncepaw/mycomarkup/blocks"
|
"github.com/bouncepaw/mycomarkup/blocks"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<div class="non-existent-hypha__ways">
|
<div class="non-existent-hypha__ways">
|
||||||
<section class="non-existent-hypha__way">
|
<section class="non-existent-hypha__way">
|
||||||
<h3 class="non-existent-hypha__subtitle">📝 Write a text</h3>
|
<h3 class="non-existent-hypha__subtitle">📝 Write a text</h3>
|
||||||
<p>Write a note, a diary, an article, a story or anything textual using <a href="https://mycorrhiza.lesarbr.es/hypha/mycomarkup" class="shy-link">Mycomarkup</a>. Full history of edits to the document will be saved.</p>
|
<p>Write a note, a diary, an article, a story or anything textual using <a href="https://mycorrhiza.wiki/hypha/mycomarkup" class="shy-link">Mycomarkup</a>. Full history of edits to the document will be saved.</p>
|
||||||
<p>Make sure to follow this wiki's writing conventions if there are any.</p>
|
<p>Make sure to follow this wiki's writing conventions if there are any.</p>
|
||||||
<a class="btn btn_accent stick-to-bottom" href="/edit/{%s h.Name %}">Create</a>
|
<a class="btn btn_accent stick-to-bottom" href="/edit/{%s h.Name %}">Create</a>
|
||||||
</section>
|
</section>
|
||||||
|
@ -68,7 +68,7 @@ func streamnonExistentHyphaNotice(qw422016 *qt422016.Writer, h *hyphae.Hypha, u
|
|||||||
<div class="non-existent-hypha__ways">
|
<div class="non-existent-hypha__ways">
|
||||||
<section class="non-existent-hypha__way">
|
<section class="non-existent-hypha__way">
|
||||||
<h3 class="non-existent-hypha__subtitle">📝 Write a text</h3>
|
<h3 class="non-existent-hypha__subtitle">📝 Write a text</h3>
|
||||||
<p>Write a note, a diary, an article, a story or anything textual using <a href="https://mycorrhiza.lesarbr.es/hypha/mycomarkup" class="shy-link">Mycomarkup</a>. Full history of edits to the document will be saved.</p>
|
<p>Write a note, a diary, an article, a story or anything textual using <a href="https://mycorrhiza.wiki/hypha/mycomarkup" class="shy-link">Mycomarkup</a>. Full history of edits to the document will be saved.</p>
|
||||||
<p>Make sure to follow this wiki's writing conventions if there are any.</p>
|
<p>Make sure to follow this wiki's writing conventions if there are any.</p>
|
||||||
<a class="btn btn_accent stick-to-bottom" href="/edit/`)
|
<a class="btn btn_accent stick-to-bottom" href="/edit/`)
|
||||||
//line views/hypha.qtpl:25
|
//line views/hypha.qtpl:25
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
</button>
|
</button>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</section>
|
</section>
|
||||||
<p class="edit-toolbar__ad"><a href="https://mycorrhiza.lesarbr.es/hypha/mycomarkup" target="_blank" class="shy-link">Learn more</a> about mycomarkup</p>
|
<p class="edit-toolbar__ad"><a href="https://mycorrhiza.wiki/hypha/mycomarkup" target="_blank" class="shy-link">Learn more</a> about mycomarkup</p>
|
||||||
<h2 class="edit-toolbar__title layout-card__title">Actions</h2>
|
<h2 class="edit-toolbar__title layout-card__title">Actions</h2>
|
||||||
<section class="edit-toolbar__buttons">
|
<section class="edit-toolbar__buttons">
|
||||||
{% for _, el := range []struct{
|
{% for _, el := range []struct{
|
||||||
|
@ -88,7 +88,7 @@ func StreamToolbar(qw422016 *qt422016.Writer, u *user.User) {
|
|||||||
//line views/mutators.qtpl:41
|
//line views/mutators.qtpl:41
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</section>
|
</section>
|
||||||
<p class="edit-toolbar__ad"><a href="https://mycorrhiza.lesarbr.es/hypha/mycomarkup" target="_blank" class="shy-link">Learn more</a> about mycomarkup</p>
|
<p class="edit-toolbar__ad"><a href="https://mycorrhiza.wiki/hypha/mycomarkup" target="_blank" class="shy-link">Learn more</a> about mycomarkup</p>
|
||||||
<h2 class="edit-toolbar__title layout-card__title">Actions</h2>
|
<h2 class="edit-toolbar__title layout-card__title">Actions</h2>
|
||||||
<section class="edit-toolbar__buttons">
|
<section class="edit-toolbar__buttons">
|
||||||
`)
|
`)
|
||||||
|
@ -112,7 +112,7 @@ for u := range user.YieldUsers() {
|
|||||||
<section>
|
<section>
|
||||||
<h1>About {%s cfg.WikiName %}</h1>
|
<h1>About {%s cfg.WikiName %}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><a href="https://mycorrhiza.lesarbr.es">Mycorrhiza Wiki</a> version:</b> 1.3.0</li>
|
<li><b><a href="https://mycorrhiza.wiki">Mycorrhiza Wiki</a> version:</b> 1.3.0</li>
|
||||||
{%- if cfg.UseAuth -%}
|
{%- if cfg.UseAuth -%}
|
||||||
<li><b>User count:</b> {%dul user.Count() %}</li>
|
<li><b>User count:</b> {%dul user.Count() %}</li>
|
||||||
<li><b>Home page:</b> <a href="/">{%s cfg.HomeHypha %}</a></li>
|
<li><b>Home page:</b> <a href="/">{%s cfg.HomeHypha %}</a></li>
|
||||||
|
@ -373,7 +373,7 @@ func StreamAboutHTML(qw422016 *qt422016.Writer) {
|
|||||||
//line views/stuff.qtpl:113
|
//line views/stuff.qtpl:113
|
||||||
qw422016.N().S(`</h1>
|
qw422016.N().S(`</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><a href="https://mycorrhiza.lesarbr.es">Mycorrhiza Wiki</a> version:</b> 1.3.0</li>
|
<li><b><a href="https://mycorrhiza.wiki">Mycorrhiza Wiki</a> version:</b> 1.3.0</li>
|
||||||
`)
|
`)
|
||||||
//line views/stuff.qtpl:116
|
//line views/stuff.qtpl:116
|
||||||
if cfg.UseAuth {
|
if cfg.UseAuth {
|
||||||
|
@ -51,7 +51,7 @@ func handlerReindex(w http.ResponseWriter, rq *http.Request) {
|
|||||||
|
|
||||||
// handlerUpdateHeaderLinks updates header links by reading the configured hypha, if there is any, or resorting to default values.
|
// handlerUpdateHeaderLinks updates header links by reading the configured hypha, if there is any, or resorting to default values.
|
||||||
//
|
//
|
||||||
// See https://mycorrhiza.lesarbr.es/hypha/configuration/header
|
// See https://mycorrhiza.wiki/hypha/configuration/header
|
||||||
func handlerUpdateHeaderLinks(w http.ResponseWriter, rq *http.Request) {
|
func handlerUpdateHeaderLinks(w http.ResponseWriter, rq *http.Request) {
|
||||||
util.PrepareRq(rq)
|
util.PrepareRq(rq)
|
||||||
if ok := user.CanProceed(rq, "update-header-links"); !ok {
|
if ok := user.CanProceed(rq, "update-header-links"); !ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user