mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-31 03:24:44 +00:00
Recent changes: Get rid of ? in a circle
This commit is contained in:
parent
40bb20a89c
commit
6037073352
@ -82,7 +82,6 @@ if err != nil {
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{%s= helpTopicBadgeHTML(lc.Locale, "recent_changes") %}
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
@ -272,181 +272,176 @@ func StreamRecentChangesHTML(qw422016 *qt422016.Writer, n int, lc *l18n.Localize
|
||||
//line views/history.qtpl:84
|
||||
}
|
||||
//line views/history.qtpl:84
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/history.qtpl:85
|
||||
qw422016.N().S(helpTopicBadgeHTML(lc.Locale, "recent_changes"))
|
||||
//line views/history.qtpl:85
|
||||
qw422016.N().S(`
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
`)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
}
|
||||
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, n int, lc *l18n.Localizer) {
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
StreamRecentChangesHTML(qw422016, n, lc)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
}
|
||||
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
func RecentChangesHTML(n int, lc *l18n.Localizer) string {
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
WriteRecentChangesHTML(qb422016, n, lc)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
return qs422016
|
||||
//line views/history.qtpl:89
|
||||
//line views/history.qtpl:88
|
||||
}
|
||||
|
||||
//line views/history.qtpl:91
|
||||
//line views/history.qtpl:90
|
||||
func streamrecentChangesEntry(qw422016 *qt422016.Writer, rev history.Revision) {
|
||||
//line views/history.qtpl:91
|
||||
//line views/history.qtpl:90
|
||||
qw422016.N().S(`
|
||||
<div>
|
||||
<time class="recent-changes__entry__time">
|
||||
`)
|
||||
//line views/history.qtpl:94
|
||||
//line views/history.qtpl:93
|
||||
qw422016.E().S(rev.Time.UTC().Format("15:04 UTC"))
|
||||
//line views/history.qtpl:94
|
||||
//line views/history.qtpl:93
|
||||
qw422016.N().S(`
|
||||
</time>
|
||||
<span class="recent-changes__entry__message">`)
|
||||
//line views/history.qtpl:96
|
||||
//line views/history.qtpl:95
|
||||
qw422016.E().S(rev.Hash)
|
||||
//line views/history.qtpl:96
|
||||
//line views/history.qtpl:95
|
||||
qw422016.N().S(`</span>
|
||||
|
||||
`)
|
||||
//line views/history.qtpl:98
|
||||
//line views/history.qtpl:97
|
||||
if rev.Username != "anon" {
|
||||
//line views/history.qtpl:98
|
||||
//line views/history.qtpl:97
|
||||
qw422016.N().S(`
|
||||
<span class="recent-changes__entry__author">
|
||||
— <a href="/hypha/`)
|
||||
//line views/history.qtpl:100
|
||||
//line views/history.qtpl:99
|
||||
qw422016.E().S(cfg.UserHypha)
|
||||
//line views/history.qtpl:100
|
||||
//line views/history.qtpl:99
|
||||
qw422016.N().S(`/`)
|
||||
//line views/history.qtpl:100
|
||||
//line views/history.qtpl:99
|
||||
qw422016.E().S(rev.Username)
|
||||
//line views/history.qtpl:100
|
||||
//line views/history.qtpl:99
|
||||
qw422016.N().S(`" rel="author">`)
|
||||
//line views/history.qtpl:100
|
||||
//line views/history.qtpl:99
|
||||
qw422016.E().S(rev.Username)
|
||||
//line views/history.qtpl:100
|
||||
//line views/history.qtpl:99
|
||||
qw422016.N().S(`</a>
|
||||
</span>
|
||||
`)
|
||||
//line views/history.qtpl:102
|
||||
//line views/history.qtpl:101
|
||||
}
|
||||
//line views/history.qtpl:102
|
||||
//line views/history.qtpl:101
|
||||
qw422016.N().S(`
|
||||
</div>
|
||||
<div>
|
||||
<span class="recent-changes__entry__links">
|
||||
`)
|
||||
//line views/history.qtpl:106
|
||||
//line views/history.qtpl:105
|
||||
qw422016.N().S(rev.HyphaeLinksHTML())
|
||||
//line views/history.qtpl:106
|
||||
//line views/history.qtpl:105
|
||||
qw422016.N().S(`
|
||||
</span>
|
||||
<span class="recent-changes__entry__message">
|
||||
`)
|
||||
//line views/history.qtpl:109
|
||||
//line views/history.qtpl:108
|
||||
qw422016.E().S(rev.Message)
|
||||
//line views/history.qtpl:109
|
||||
//line views/history.qtpl:108
|
||||
qw422016.N().S(`
|
||||
</span>
|
||||
</div>
|
||||
`)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
}
|
||||
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
func writerecentChangesEntry(qq422016 qtio422016.Writer, rev history.Revision) {
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
streamrecentChangesEntry(qw422016, rev)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
}
|
||||
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
func recentChangesEntry(rev history.Revision) string {
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
writerecentChangesEntry(qb422016, rev)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
return qs422016
|
||||
//line views/history.qtpl:112
|
||||
//line views/history.qtpl:111
|
||||
}
|
||||
|
||||
//line views/history.qtpl:114
|
||||
//line views/history.qtpl:113
|
||||
func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
|
||||
//line views/history.qtpl:114
|
||||
//line views/history.qtpl:113
|
||||
qw422016.N().S(`
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
<article class="history">
|
||||
<h1>`)
|
||||
//line views/history.qtpl:118
|
||||
//line views/history.qtpl:117
|
||||
qw422016.N().S(fmt.Sprintf(lc.Get("ui.history_title"), beautifulLink(hyphaName)))
|
||||
//line views/history.qtpl:118
|
||||
//line views/history.qtpl:117
|
||||
qw422016.N().S(`</h1>
|
||||
`)
|
||||
//line views/history.qtpl:119
|
||||
//line views/history.qtpl:118
|
||||
qw422016.N().S(list)
|
||||
//line views/history.qtpl:119
|
||||
//line views/history.qtpl:118
|
||||
qw422016.N().S(`
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
`)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
}
|
||||
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
StreamHistoryHTML(qw422016, rq, hyphaName, list, lc)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
}
|
||||
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
func HistoryHTML(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) string {
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
WriteHistoryHTML(qb422016, rq, hyphaName, list, lc)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
return qs422016
|
||||
//line views/history.qtpl:123
|
||||
//line views/history.qtpl:122
|
||||
}
|
||||
|
@ -160,10 +160,6 @@ It outputs a poorly formatted JSON, but it works and is valid.
|
||||
<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>
|
||||
{% endfunc %}
|
||||
|
||||
{% func helpTopicBadgeHTML(lang, topic string) %}
|
||||
<a class="help-topic-badge" href="/help/en/{%s topic %}">?</a>
|
||||
{% endfunc %}
|
||||
|
||||
{% func HyphaListHTML(lc *l18n.Localizer) %}
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
|
@ -601,63 +601,24 @@ func HelpEmptyErrorHTML(lc *l18n.Localizer) string {
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:163
|
||||
func streamhelpTopicBadgeHTML(qw422016 *qt422016.Writer, lang, topic string) {
|
||||
//line views/stuff.qtpl:163
|
||||
qw422016.N().S(`
|
||||
<a class="help-topic-badge" href="/help/en/`)
|
||||
//line views/stuff.qtpl:164
|
||||
qw422016.E().S(topic)
|
||||
//line views/stuff.qtpl:164
|
||||
qw422016.N().S(`">?</a>
|
||||
`)
|
||||
//line views/stuff.qtpl:165
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:165
|
||||
func writehelpTopicBadgeHTML(qq422016 qtio422016.Writer, lang, topic string) {
|
||||
//line views/stuff.qtpl:165
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/stuff.qtpl:165
|
||||
streamhelpTopicBadgeHTML(qw422016, lang, topic)
|
||||
//line views/stuff.qtpl:165
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/stuff.qtpl:165
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:165
|
||||
func helpTopicBadgeHTML(lang, topic string) string {
|
||||
//line views/stuff.qtpl:165
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/stuff.qtpl:165
|
||||
writehelpTopicBadgeHTML(qb422016, lang, topic)
|
||||
//line views/stuff.qtpl:165
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/stuff.qtpl:165
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/stuff.qtpl:165
|
||||
return qs422016
|
||||
//line views/stuff.qtpl:165
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:167
|
||||
func StreamHyphaListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
|
||||
//line views/stuff.qtpl:167
|
||||
//line views/stuff.qtpl:163
|
||||
qw422016.N().S(`
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
<h1>`)
|
||||
//line views/stuff.qtpl:170
|
||||
//line views/stuff.qtpl:166
|
||||
qw422016.E().S(lc.Get("ui.list_heading"))
|
||||
//line views/stuff.qtpl:170
|
||||
//line views/stuff.qtpl:166
|
||||
qw422016.N().S(`</h1>
|
||||
<p>`)
|
||||
//line views/stuff.qtpl:171
|
||||
//line views/stuff.qtpl:167
|
||||
qw422016.E().S(lc.GetPlural("ui.list_desc", hyphae.Count()))
|
||||
//line views/stuff.qtpl:171
|
||||
//line views/stuff.qtpl:167
|
||||
qw422016.N().S(`</p>
|
||||
<ul class="hypha-list">
|
||||
`)
|
||||
//line views/stuff.qtpl:174
|
||||
//line views/stuff.qtpl:170
|
||||
hyphaNames := make(chan string)
|
||||
sortedHypha := hyphae.PathographicSort(hyphaNames)
|
||||
for hypha := range hyphae.YieldExistingHyphae() {
|
||||
@ -665,134 +626,134 @@ func StreamHyphaListHTML(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
|
||||
}
|
||||
close(hyphaNames)
|
||||
|
||||
//line views/stuff.qtpl:180
|
||||
//line views/stuff.qtpl:176
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/stuff.qtpl:181
|
||||
//line views/stuff.qtpl:177
|
||||
for hyphaName := range sortedHypha {
|
||||
//line views/stuff.qtpl:181
|
||||
//line views/stuff.qtpl:177
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/stuff.qtpl:182
|
||||
//line views/stuff.qtpl:178
|
||||
h := hyphae.ByName(hyphaName)
|
||||
|
||||
//line views/stuff.qtpl:182
|
||||
//line views/stuff.qtpl:178
|
||||
qw422016.N().S(`
|
||||
<li class="hypha-list__entry">
|
||||
<a class="hypha-list__link" href="/hypha/`)
|
||||
//line views/stuff.qtpl:184
|
||||
//line views/stuff.qtpl:180
|
||||
qw422016.E().S(h.CanonicalName())
|
||||
//line views/stuff.qtpl:184
|
||||
//line views/stuff.qtpl:180
|
||||
qw422016.N().S(`">
|
||||
`)
|
||||
//line views/stuff.qtpl:185
|
||||
//line views/stuff.qtpl:181
|
||||
qw422016.E().S(util.BeautifulName(h.CanonicalName()))
|
||||
//line views/stuff.qtpl:185
|
||||
//line views/stuff.qtpl:181
|
||||
qw422016.N().S(`
|
||||
</a>
|
||||
`)
|
||||
//line views/stuff.qtpl:187
|
||||
//line views/stuff.qtpl:183
|
||||
switch h := h.(type) {
|
||||
//line views/stuff.qtpl:188
|
||||
//line views/stuff.qtpl:184
|
||||
case *hyphae.MediaHypha:
|
||||
//line views/stuff.qtpl:188
|
||||
//line views/stuff.qtpl:184
|
||||
qw422016.N().S(`
|
||||
<span class="hypha-list__amnt-type">
|
||||
`)
|
||||
//line views/stuff.qtpl:190
|
||||
//line views/stuff.qtpl:186
|
||||
qw422016.E().S(filepath.Ext(h.MediaFilePath())[1:])
|
||||
//line views/stuff.qtpl:190
|
||||
//line views/stuff.qtpl:186
|
||||
qw422016.N().S(`
|
||||
</span>
|
||||
`)
|
||||
//line views/stuff.qtpl:192
|
||||
//line views/stuff.qtpl:188
|
||||
}
|
||||
//line views/stuff.qtpl:192
|
||||
//line views/stuff.qtpl:188
|
||||
qw422016.N().S(`
|
||||
</li>
|
||||
`)
|
||||
//line views/stuff.qtpl:194
|
||||
//line views/stuff.qtpl:190
|
||||
}
|
||||
//line views/stuff.qtpl:194
|
||||
//line views/stuff.qtpl:190
|
||||
qw422016.N().S(`
|
||||
</ul>
|
||||
</main>
|
||||
</div>
|
||||
`)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
func WriteHyphaListHTML(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
StreamHyphaListHTML(qw422016, lc)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
func HyphaListHTML(lc *l18n.Localizer) string {
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
WriteHyphaListHTML(qb422016, lc)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
return qs422016
|
||||
//line views/stuff.qtpl:198
|
||||
//line views/stuff.qtpl:194
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:200
|
||||
//line views/stuff.qtpl:196
|
||||
func StreamCommonScripts(qw422016 *qt422016.Writer) {
|
||||
//line views/stuff.qtpl:200
|
||||
//line views/stuff.qtpl:196
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/stuff.qtpl:201
|
||||
//line views/stuff.qtpl:197
|
||||
for _, scriptPath := range cfg.CommonScripts {
|
||||
//line views/stuff.qtpl:201
|
||||
//line views/stuff.qtpl:197
|
||||
qw422016.N().S(`
|
||||
<script src="`)
|
||||
//line views/stuff.qtpl:202
|
||||
//line views/stuff.qtpl:198
|
||||
qw422016.E().S(scriptPath)
|
||||
//line views/stuff.qtpl:202
|
||||
//line views/stuff.qtpl:198
|
||||
qw422016.N().S(`"></script>
|
||||
`)
|
||||
//line views/stuff.qtpl:203
|
||||
//line views/stuff.qtpl:199
|
||||
}
|
||||
//line views/stuff.qtpl:203
|
||||
//line views/stuff.qtpl:199
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
func WriteCommonScripts(qq422016 qtio422016.Writer) {
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
StreamCommonScripts(qw422016)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
}
|
||||
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
func CommonScripts() string {
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
WriteCommonScripts(qb422016)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
return qs422016
|
||||
//line views/stuff.qtpl:204
|
||||
//line views/stuff.qtpl:200
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user