meta.pug 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. meta(name="ol-project_id" content=project_id)
  2. meta(name="ol-projectName" content=projectName)
  3. meta(name="ol-userSettings" data-type="json" content=userSettings)
  4. meta(name="ol-user" data-type="json" content=user)
  5. meta(name="ol-learnedWords" data-type="json" content=learnedWords)
  6. meta(name="ol-anonymous" data-type="boolean" content=anonymous)
  7. meta(name="ol-brandVariation" data-type="json" content=brandVariation)
  8. meta(name="ol-isTokenMember" data-type="boolean" content=isTokenMember)
  9. meta(name="ol-isRestrictedTokenMember" data-type="boolean" content=isRestrictedTokenMember)
  10. meta(name="ol-maxDocLength" data-type="json" content=maxDocLength)
  11. meta(name="ol-wikiEnabled" data-type="boolean" content=settings.proxyLearn)
  12. meta(name="ol-gitBridgePublicBaseUrl" content=gitBridgePublicBaseUrl)
  13. meta(name="ol-gitBridgeEnabled" data-type="boolean" content=gitBridgeEnabled)
  14. meta(name="ol-compilesUserContentDomain" content=settings.compilesUserContentDomain)
  15. //- enable doc hash checking for all projects
  16. //- used in public/js/libs/sharejs.js
  17. meta(name="ol-useShareJsHash" data-type="boolean" content=true)
  18. meta(name="ol-wsUrl" data-type="string" content=wsUrl)
  19. meta(name="ol-wsRetryHandshake" data-type="json" content=settings.wsRetryHandshake)
  20. meta(name="ol-pdfjsVariant" content=pdfjsVariant)
  21. meta(name="ol-debugPdfDetach" data-type="boolean" content=debugPdfDetach)
  22. meta(name="ol-showSymbolPalette" data-type="boolean" content=showSymbolPalette)
  23. meta(name="ol-symbolPaletteAvailable" data-type="boolean" content=symbolPaletteAvailable)
  24. meta(name="ol-detachRole" data-type="string" content=detachRole)
  25. meta(name="ol-allowedImageNames" data-type="json" content=allowedImageNames)
  26. meta(name="ol-languages" data-type="json" content=languages)
  27. meta(name="ol-editorThemes" data-type="json" content=editorThemes)
  28. meta(name="ol-legacyEditorThemes" data-type="json" content=legacyEditorThemes)
  29. meta(name="ol-showUpgradePrompt" data-type="boolean" content=showUpgradePrompt)
  30. meta(name="ol-useOpenTelemetry" data-type="boolean" content=useOpenTelemetry)
  31. meta(name="ol-showSupport", data-type="boolean" content=showSupport)
  32. meta(name="ol-showTemplatesServerPro", data-type="boolean" content=showTemplatesServerPro)
  33. meta(name="ol-showPersonalAccessToken", data-type="boolean" content=showPersonalAccessToken)
  34. meta(name="ol-optionalPersonalAccessToken", data-type="boolean" content=optionalPersonalAccessToken)
  35. meta(name="ol-hasTrackChangesFeature", data-type="boolean" content=hasTrackChangesFeature)
  36. meta(name="ol-inactiveTutorials", data-type="json" content=user.inactiveTutorials)
  37. meta(name="ol-projectTags" data-type="json" content=projectTags)
  38. meta(name="ol-idePageReact", data-type="boolean" content=idePageReact)
  39. meta(name="ol-loadingText", data-type="string" content=translate("loading"))
  40. meta(name="ol-translationLoadErrorMessage", data-type="string" content=translate("could_not_load_translations"))
  41. - var fileActionI18n = ['edited', 'renamed', 'created', 'deleted'].reduce((acc, i) => {acc[i] = translate('file_action_' + i); return acc}, {})
  42. meta(name="ol-fileActionI18n" data-type="json" content=fileActionI18n)
  43. if (settings.overleaf != null)
  44. meta(name="ol-overallThemes" data-type="json" content=overallThemes)
  45. != moduleIncludes("editor:meta", locals)