nitc :: PageMEntity :: build_code
# Build the code panel
fun build_code(doc: DocModel) do
var code_url = doc.code_url
if not doc.no_code then
var cq = new CmdEntityCode(doc.model, doc.modelbuilder, doc.filter, mentity)
cq.init_command
var code = cq.node
if code == null then return
code_tab.content.add new CardCode(mentity, code)
else if doc.code_url != null then
code_tab = new DocTabLink("code", "Code", "console", mentity.source_url(code_url))
end
end
src/doc/static/static_structure.nit:163,2--177,4