The Wayback Machine - https://web.archive.org/web/20211003224552/https://github.com/go-gitea/gitea/issues/16800
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UI hints to create a Wiki sidebar and footer #16800

Open
n194 opened this issue Aug 24, 2021 · 3 comments
Open

Add UI hints to create a Wiki sidebar and footer #16800

n194 opened this issue Aug 24, 2021 · 3 comments

Comments

@n194
Copy link
Contributor

@n194 n194 commented Aug 24, 2021

Description

Mentioned in #16719 and lost in #16655, this issue is about adding UI hints on the Wiki from which a user with edit access can quickly create a sidebar or footer.

Screenshot from GitHub

wiki-add-sidebar-footer

@zeripath
Copy link
Contributor

@zeripath zeripath commented Aug 24, 2021

This would be a simple change to templates/repo/wiki/view.tmpl around line 63 + change to options/locale/locale_en-US.ini for localisation.

@n194
Copy link
Contributor Author

@n194 n194 commented Aug 24, 2021

@zeripath how do you open the Wiki editor with a pre-defined page name?

@zeripath
Copy link
Contributor

@zeripath zeripath commented Aug 24, 2021

ah you want to add that...

that would need a change to routers/web/repo/wiki.go:NewWiki()

Probably as simple as adding:

if ctx.Form("title") != "" {
  ctx.Data["title"] = ctx.Form("title")
}

then you'd need to add ?title=... to the url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants