Merge pull request #3861 from overleaf/jpa-meta-launchpad

[views] migrate the launchpad module to meta tags

GitOrigin-RevId: 05295de90bf478e9b3494d854e2c57039c8f39e8
This commit is contained in:
Miguel Serrano 2021-03-31 11:49:13 +02:00 committed by Copybot
parent 13bf8dad2b
commit d8b49f65da

View file

@ -1,14 +1,11 @@
extends ../../../../app/views/layout
block append meta
meta(name="ol-adminUserExists" data-type="boolean" content=adminUserExists)
meta(name="ol-ideJsPath" content=buildJsPath('ide.js'))
meta(name="ol-authMethod" content=authMethod)
block content
script(type="text/javascript", nonce=scriptNonce).
window.data = {
adminUserExists: !{adminUserExists == true},
ideJsPath: "!{buildJsPath('ide.js')}",
authMethod: "!{authMethod}"
}
script(type="text/javascript", nonce=scriptNonce, src=(wsUrl || '/socket.io') + '/socket.io.js')
style.