@@ -409,7 +409,6 @@ func WikiPost(ctx *context.Context) {
409409
410410// Wiki renders single wiki page
411411func Wiki (ctx * context.Context ) {
412- ctx .Data ["PageIsWiki" ] = true
413412 ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
414413
415414 switch ctx .FormString ("action" ) {
@@ -474,7 +473,6 @@ func Wiki(ctx *context.Context) {
474473
475474// WikiRevision renders file revision list of wiki page
476475func WikiRevision (ctx * context.Context ) {
477- ctx .Data ["PageIsWiki" ] = true
478476 ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
479477
480478 if ! ctx .Repo .Repository .HasWiki () {
@@ -519,7 +517,6 @@ func WikiPages(ctx *context.Context) {
519517 }
520518
521519 ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.pages" )
522- ctx .Data ["PageIsWiki" ] = true
523520 ctx .Data ["CanWriteWiki" ] = ctx .Repo .CanWrite (unit .TypeWiki ) && ! ctx .Repo .Repository .IsArchived
524521
525522 wikiRepo , commit , err := findWikiRepoCommit (ctx )
@@ -624,7 +621,6 @@ func WikiRaw(ctx *context.Context) {
624621// NewWiki render wiki create page
625622func NewWiki (ctx * context.Context ) {
626623 ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.new_page" )
627- ctx .Data ["PageIsWiki" ] = true
628624
629625 if ! ctx .Repo .Repository .HasWiki () {
630626 ctx .Data ["title" ] = "Home"
@@ -640,7 +636,6 @@ func NewWiki(ctx *context.Context) {
640636func NewWikiPost (ctx * context.Context ) {
641637 form := web .GetForm (ctx ).(* forms.NewWikiForm )
642638 ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.new_page" )
643- ctx .Data ["PageIsWiki" ] = true
644639
645640 if ctx .HasError () {
646641 ctx .HTML (http .StatusOK , tplWikiNew )
@@ -676,7 +671,6 @@ func NewWikiPost(ctx *context.Context) {
676671
677672// EditWiki render wiki modify page
678673func EditWiki (ctx * context.Context ) {
679- ctx .Data ["PageIsWiki" ] = true
680674 ctx .Data ["PageIsWikiEdit" ] = true
681675
682676 if ! ctx .Repo .Repository .HasWiki () {
@@ -696,7 +690,6 @@ func EditWiki(ctx *context.Context) {
696690func EditWikiPost (ctx * context.Context ) {
697691 form := web .GetForm (ctx ).(* forms.NewWikiForm )
698692 ctx .Data ["Title" ] = ctx .Tr ("repo.wiki.new_page" )
699- ctx .Data ["PageIsWiki" ] = true
700693
701694 if ctx .HasError () {
702695 ctx .HTML (http .StatusOK , tplWikiNew )
0 commit comments