@@ -409,7 +409,6 @@ func WikiPost(ctx *context.Context) {
409
409
410
410
// Wiki renders single wiki page
411
411
func Wiki (ctx * context.Context ) {
412
- ctx .Data ["PageIsWiki" ] = true
413
412
ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
414
413
415
414
switch ctx .FormString ("action" ) {
@@ -474,7 +473,6 @@ func Wiki(ctx *context.Context) {
474
473
475
474
// WikiRevision renders file revision list of wiki page
476
475
func WikiRevision (ctx * context.Context ) {
477
- ctx .Data ["PageIsWiki" ] = true
478
476
ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
479
477
480
478
if ! ctx .Repo .Repository .HasWiki () {
@@ -519,7 +517,6 @@ func WikiPages(ctx *context.Context) {
519
517
}
520
518
521
519
ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.pages" )
522
- ctx .Data ["PageIsWiki" ] = true
523
520
ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
524
521
525
522
wikiRepo , commit , err := findWikiRepoCommit (ctx )
@@ -624,7 +621,6 @@ func WikiRaw(ctx *context.Context) {
624
621
// NewWiki render wiki create page
625
622
func NewWiki (ctx * context.Context ) {
626
623
ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.new_page" )
627
- ctx .Data ["PageIsWiki" ] = true
628
624
629
625
if ! ctx .Repo .Repository .HasWiki () {
630
626
ctx .Data ["title" ] = "Home"
@@ -640,7 +636,6 @@ func NewWiki(ctx *context.Context) {
640
636
func NewWikiPost (ctx * context.Context ) {
641
637
form := web .GetForm (ctx ).(* forms.NewWikiForm )
642
638
ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.new_page" )
643
- ctx .Data ["PageIsWiki" ] = true
644
639
645
640
if ctx .HasError () {
646
641
ctx .HTML (http .StatusOK , tplWikiNew )
@@ -676,7 +671,6 @@ func NewWikiPost(ctx *context.Context) {
676
671
677
672
// EditWiki render wiki modify page
678
673
func EditWiki (ctx * context.Context ) {
679
- ctx .Data ["PageIsWiki" ] = true
680
674
ctx .Data ["PageIsWikiEdit" ] = true
681
675
682
676
if ! ctx .Repo .Repository .HasWiki () {
@@ -696,7 +690,6 @@ func EditWiki(ctx *context.Context) {
696
690
func EditWikiPost (ctx * context.Context ) {
697
691
form := web .GetForm (ctx ).(* forms.NewWikiForm )
698
692
ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.new_page" )
699
- ctx .Data ["PageIsWiki" ] = true
700
693
701
694
if ctx .HasError () {
702
695
ctx .HTML (http .StatusOK , tplWikiNew )
0 commit comments