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

Closed
n194 opened this issue Aug 24, 2021 · 3 comments · Fixed by #17283
Closed

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

n194 opened this issue Aug 24, 2021 · 3 comments · Fixed by #17283
Labels
good first issue Likely to be an easy fix

Comments

@n194
Copy link
Contributor

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

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.

@zeripath zeripath added the good first issue Likely to be an easy fix label Aug 24, 2021
@n194
Copy link
Contributor Author

n194 commented Aug 24, 2021

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

@zeripath
Copy link
Contributor

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

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Likely to be an easy fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants