codecombat/app/templates/editor/poll/poll-edit-view.jade

33 lines
847 B
Text
Raw Normal View History

2015-03-07 19:30:25 -05:00
extends /templates/base
block content
2015-11-18 14:16:44 -05:00
- var authorized = me.isAdmin();
if authorized
2015-03-07 19:30:25 -05:00
ol.breadcrumb
li
a(href="/editor", data-i18n="editor.main_title") CodeCombat Editors
li
a(href="/editor/poll", data-i18n="editor.poll_title") Poll Editor
li.active
2015-11-18 14:16:44 -05:00
| #{view.poll.attributes.name}
2015-03-07 19:30:25 -05:00
button.poll-tool-button(data-i18n="common.delete", disabled=!me.isAdmin()).btn.btn-primary#delete-button Delete
button.poll-tool-button(data-i18n="common.save", disabled=!me.isAdmin()).btn.btn-primary#save-button Save
h3(data-i18n="poll.edit_poll_title") Edit Poll
span
2015-11-18 14:16:44 -05:00
|: "#{view.poll.attributes.name}"
2015-03-07 19:30:25 -05:00
#poll-treema
#poll-view.clearfix
h3(data-i18n="resources.patches") Patches
.patches-view
hr
else
.alert.alert-danger
span Admin only. Turn around.