2014-05-21 07:52:09 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
2015-11-18 14:36:30 -05:00
|
|
|
- var authorized = me.isAdmin() || me.isArtisan();
|
2016-03-11 15:08:13 -05:00
|
|
|
ol.breadcrumb
|
2014-08-05 08:33:33 -04:00
|
|
|
li
|
|
|
|
a(href="/editor", data-i18n="editor.main_title") CodeCombat Editors
|
|
|
|
li
|
|
|
|
a(href="/editor/achievement", data-i18n="editor.achievement_title") Achievement Editor
|
|
|
|
li.active
|
2015-11-18 14:16:44 -05:00
|
|
|
| #{view.achievement.attributes.name}
|
2014-05-21 07:52:09 -04:00
|
|
|
|
2016-03-11 15:08:13 -05:00
|
|
|
if authorized
|
2014-09-30 22:32:11 -04:00
|
|
|
button.achievement-tool-button(data-i18n="", disabled=me.isAdmin() === true ? undefined : "true").btn.btn-primary#recalculate-all-button Recalculate All
|
2014-08-29 20:33:25 -04:00
|
|
|
button.achievement-tool-button(data-i18n="", disabled=me.isAdmin() === true ? undefined : "true").btn.btn-primary#recalculate-button Recalculate
|
|
|
|
button.achievement-tool-button(data-i18n="common.delete", disabled=me.isAdmin() === true ? undefined : "true").btn.btn-primary#delete-button Delete
|
2015-02-25 21:41:39 -05:00
|
|
|
button.achievement-tool-button(data-i18n="common.save", disabled=(me.isAdmin() === true || me.isArtisan() === true) ? undefined : "true").btn.btn-primary#save-button Save
|
2014-05-21 07:52:09 -04:00
|
|
|
|
2014-05-31 17:55:26 -04:00
|
|
|
else
|
2016-03-11 15:01:06 -05:00
|
|
|
button.achievement-tool-button(data-i18n="", disabled=true, style="display:none;").btn.btn-primary#recalculate-all-button Recalculate All
|
|
|
|
button.achievement-tool-button(data-i18n="", disabled=true, style="display:none;").btn.btn-primary#recalculate-button Recalculate
|
|
|
|
button.achievement-tool-button(data-i18n="common.delete", disabled=true, style="display:none;").btn.btn-primary#delete-button Delete
|
|
|
|
button.achievement-tool-button(data-i18n="common.save", disabled=true, style="display:none;").btn.btn-primary#save-button Save
|
|
|
|
|
2016-03-11 15:08:13 -05:00
|
|
|
h3(data-i18n="achievement.edit_achievement_title") Edit Achievement
|
|
|
|
span
|
|
|
|
|: "#{view.achievement.attributes.name}"
|
2016-03-11 15:01:06 -05:00
|
|
|
|
2016-03-11 15:08:13 -05:00
|
|
|
#achievement-treema
|
2016-03-11 15:01:06 -05:00
|
|
|
|
2016-03-11 15:08:13 -05:00
|
|
|
#achievement-view.clearfix
|
2016-03-11 15:01:06 -05:00
|
|
|
|
2016-03-11 15:08:13 -05:00
|
|
|
h3(data-i18n="resources.patches") Patches
|
|
|
|
.patches-view
|
2016-03-11 15:01:06 -05:00
|
|
|
|
2016-03-11 15:08:13 -05:00
|
|
|
hr
|