Skip to content

Commit

Permalink
feat(infobox): Show automated team history for logged out users on AoE (
Browse files Browse the repository at this point in the history
  • Loading branch information
mbergen authored Nov 4, 2024
1 parent eeab872 commit b1bf4d1
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,21 @@ function CustomPlayer.run(frame)
player.args.history = automatedHistory
else
args.history = tostring(mw.html.create('div')
:addClass("show-when-logged-in")
:addClass("navigation-not-searchable")
:tag('big'):wikitext("Automated History"):done()
:wikitext(automatedHistory)
:tag('big'):wikitext("Manual History"):done())
.. args.history
:tag('div')
:tag('big')
:addClass("show-when-logged-in")
:addClass("navigation-not-searchable")
:wikitext("Automated History")
:done()
:wikitext(automatedHistory)
:done()
:tag('div')
:addClass("show-when-logged-in")
:addClass("navigation-not-searchable")
:tag('big'):wikitext("Manual History"):done()
:wikitext(args.history)
:done()
)
end

-- Automatic achievements
Expand Down

0 comments on commit b1bf4d1

Please sign in to comment.