nci/static/js/app/components/projects/selector/index.jade
2015-07-11 15:24:35 +03:00

25 lines
862 B
Plaintext

.projects-selector(href="javascript:void(0);")
if !this.state.showSearch
span.projects-selector_preview(onClick=this.onSearchProject)
i.fa.fa-fw.fa-bars
span.projects-selector_preview_text Select a project...
else
input.projects-selector_input(
type="text",
value=this.state.searchQuery,
onChange=this.onSearchChange,
ref=this.onInputMount,
onBlur=this.onBlurSearch
)
ul.projects-selector_items
each project in this.state.projects
li.projects-selector_item.row(key=project.name)
.col-md-8
Link.projects-selector_item_link(to="projects", params={name: project.name}, onMouseDown=this.onSelectProject(project.name))
span= project.name
.col-md-4.text-small.text-right
a.projects-selector_item_run(href="javascript:void(0);", onMouseDown=this.onRunProject(project.name))
i.fa.fa-fw.fa-play