Added clues templates.

This commit is contained in:
Martin Edenhofer 2015-06-21 20:01:29 +02:00
parent 59a4050838
commit 57ef3f34d7
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<div class="modal-backdrop js-backdrop"></div>
<div class="modal-spacer js-positionOrigin"></div>

View file

@ -0,0 +1,21 @@
<div class="modal-content">
<div class="modal-arrow js-arrow"></div>
<div class="modal-close js-close">
<svg class="icon-diagonal-cross"><use xlink:href="#icon-diagonal-cross" /></svg>
</div>
<div class="modal-header"><%- @T(@headline) %></div>
<div class="modal-body"><%- @text %></div>
<div class="modal-controls">
<div class="modal-control">
<div class="<% if @position is 0: %>is-disabled <% end %>btn btn--text js-previous"><%- @T( 'Previous' ) %></div>
</div>
<div class="modal-control clue-count"><%= @position+1 %>/<%= @max %></div>
<div class="modal-control">
<% if @position+1 is @max: %>
<div class="btn btn--text js-next"><%- @T( 'Finish' ) %></div>
<% else: %>
<div class="btn btn--text js-next"><%- @T( 'Next' ) %></div>
<% end %>
</div>
</div>
</div>