codecombat/app/templates/common/search-view.jade

26 lines
829 B
Text
Raw Normal View History

2014-04-08 02:45:03 -04:00
extends /templates/base
block content
if !unauthorized
div
ol.breadcrumb
li
a(href="/editor", data-i18n="editor.main_title") CodeCombat Editors
li.active(data-i18n="#{currentEditor}")
| #{currentEditor}
2014-04-08 02:45:03 -04:00
if me.isAdmin() || !newModelsAdminOnly
if me.get('anonymous')
a.btn.btn-primary.open-modal-button(data-toggle="coco-modal", data-target="core/CreateAccountModal", role="button", data-i18n="#{currentNewSignup}") Log in to Create a New Something
else
a.btn.btn-primary.open-modal-button#new-model-button(data-i18n="#{currentNew}") Create a New Something
input#search(data-i18n="[placeholder]#{currentSearch}")
hr
div.results
table
2014-04-08 02:45:03 -04:00
else
.alert.alert-danger
span Admin only. Turn around.
// TODO Ruben prettify