-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.haml
37 lines (34 loc) · 1.06 KB
/
show.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%section
%header
%h1
= @tale.title
%h2
%i
Set in
= @tale.where
%p
- if @tale.account == current_account
= link_to "Edit overview", url_for(:tales, :edit, :slug => @tale.slug), :class => "btn"
- if @tale.account == current_account
= link_to "Manage the steps that make up this tale", url_for(:tales, :manage, :slug => @tale.slug), :class => "btn"
#description
- unless @tale.embed_url.blank?
.tale_embed
%a{:href=> @tale.embed_url}
= simple_format @tale.description
- if @tale.steps.blank?
%h2
Coming soon
- else
%section
%header
%h1
Play this tale
%p
To begin the game, please follow these instructions:
= simple_format @tale.start_the_game
%p
- if current_step(@tale) == @tale.steps.first
= link_to "Start", url_for(:tales, :play, :slug => @tale.slug), :class => "btn"
- else
= link_to "Continue", url_for(:tales, :play, :slug => @tale.slug), :class => "btn"