Sha256: af3ca33fe9438e654a2648e2ca8d3f0484efd761b8098c1eb0577bb99028a395
Contents?: true
Size: 2 KB
Versions: 6
Compression:
Stored size: 2 KB
Contents
= partial_render('layout/doctype') %head = partial_render('layout/header') :sass .favourite > .item:empty display: none .dropdown.item .dropdown.item i.icon.dropdown margin-right: -10px !important %body.preload /{{{ TOP MENU /------------ #top_menu.main.ui.menu.fixed = partial_render('layout/top_menu') /{{{ CONTENT /----------- #content.ui.main.container.top.attached - @reload_page = false = yield /{{{ MODAL /--------- #modal.ui.modal /{{{ FOOTER /---------- #footer =partial_render('layout/footer') /{{{ CODA /-------- #coda = link_js "http://cdnjs.cloudflare.com/ajax/libs/mithril/0.1.28/mithril.min.js" -# ["/js-find/rbbt", "/js-find/rbbt.page", "/js-find/rbbt.entity", "/js-find/rbbt.entity_list", "/js-find/rbbt.knowledge_base", "/js-find/rbbt.favourites"].each do |file| - record_js file =partial_render('layout/coda') :deferjs function gene_name(name){ return new Entity({type: "Gene", id: name, name: name, format: "Associated Gene Name", info: { organism: "Hsa/feb2014" }}) } function entity_link(entity){ return m('a', {href: entity.url()}, entity.name) } function entity_item(entity){ return m('li', entity_link(entity)) } function entity_list(list){ return m('ul.entity_list', list.map(entity_item)) } function draw_entity_list(list){ var content_elem = $('#content')[0] var content = [m("p", {style: 'padding: 3em'}, entity_list(list))] return m.render(content_elem, content) } function debug(name){ gene = gene_name(name) gene.children("tfacts@genomics").then(draw_entity_list) gene.parents("tfacts@genomics").then(draw_entity_list) } require_js(["/js-find/rbbt", "/js-find/rbbt.entity", "/js-find/rbbt.entity_list", "/js-find/rbbt.entity_map", "/js-find/rbbt.knowledge_base", "/js-find/rbbt.page", "/js-find/rbbt.aesthetics", "/js-find/rbbt.favourites"], function(){ //debug("TP53") })
Version data entries
6 entries across 6 versions & 1 rubygems