codecombat/app/templates/play/level/tome/spell-top-bar-view.jade
2016-07-28 12:00:52 -07:00

47 lines
1.7 KiB
Text

.hinge.hinge-0
.hinge.hinge-1
.hinge.hinge-2
.hinge.hinge-3
.spell-tool-buttons
.btn.btn-small.btn-illustrated.btn-warning.reload-code(data-i18n="[title]play_level.tome_reload_method")
.glyphicon.glyphicon-repeat
span.spl(data-i18n="play_level.restart")
if me.level() >= 15
.btn.btn-small.btn-illustrated.fullscreen-code(title=maximizeShortcutVerbose)
.glyphicon.glyphicon-fullscreen
.glyphicon.glyphicon-resize-small
if codeLanguage === 'javascript' && me.level() >= 15
.btn.btn-small.btn-illustrated.beautify-code(title=beautifyShortcutVerbose)
.glyphicon.glyphicon-magnet
if view.hintsState && view.hintsState.get('total') > 0
.btn.btn-small.btn-illustrated.hints-button
span(data-i18n="play_level.hints")
if view.options.level.isType('web-dev')
.btn.btn-small.btn-illustrated.image-gallery-button
span(data-i18n='web_dev.image_gallery_title')
if view.options.level.get('shareable')
- var url = '/play/' + view.options.level.get('type') + '-level/' + view.options.level.get('slug') + '/' + view.options.session.id;
- if (view.options.courseID) url += '?course=' + view.options.courseID;
a.btn.btn-small.btn-illustrated(href=url)
if view.options.level.isType('game-dev')
span(data-i18n='sharing.game')
else
span(data-i18n='sharing.webpage')
.clearfix
.programming-language-container
span.programming-language-label(data-i18n='play_level.programming_language')
span.programming-language-label.spr :
if view.spell.language === 'html' || view.spell.language === 'javascript'
span.programming-language JavaScript
else if view.spell.language === 'python'
span.programming-language Python
else
span.programming-language= view.spell.language