File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1585,6 +1585,7 @@ wiki.page_already_exists = A wiki page with the same name already exists.
1585
1585
wiki.reserved_page = The wiki page name ' %s' is reserved.
1586
1586
wiki.pages = Pages
1587
1587
wiki.last_updated = Last updated %s
1588
+ wiki.page_name_desc = Enter a name for this Wiki page. Some special names are: ' Home' , ' _Sidebar' and ' _Footer' .
1588
1589
1589
1590
activity = Activity
1590
1591
activity.period.filter_label = Period:
Original file line number Diff line number Diff line change @@ -627,6 +627,9 @@ func NewWiki(ctx *context.Context) {
627
627
if ! ctx .Repo .Repository .HasWiki () {
628
628
ctx .Data ["title" ] = "Home"
629
629
}
630
+ if ctx .FormString ("title" ) != "" {
631
+ ctx .Data ["title" ] = ctx .FormString ("title" )
632
+ }
630
633
631
634
ctx .HTML (http .StatusOK , tplWikiNew )
632
635
}
Original file line number Diff line number Diff line change 16
16
<div class="field {{if .Err_Title}}error{{end}}">
17
17
<input name="title" value="{{.title}}" autofocus required>
18
18
</div>
19
+ <div class="help">
20
+ {{.i18n.Tr "repo.wiki.page_name_desc"}}
21
+ </div>
19
22
<div class="ui top attached tabular menu previewtabs" data-write="write" data-preview="preview">
20
23
<a class="active item" data-tab="write">{{.i18n.Tr "write"}}</a>
21
24
<a class="item" data-tab="preview" data-url="{{$.Repository.APIURL}}/markdown" data-context="{{$.RepoLink}}">{{$.i18n.Tr "preview"}}</a>
You can’t perform that action at this time.
0 commit comments