`
31 |
--------------------------------------------------------------------------------
/app/views/game_mailer/game_stale_and_incomplete_player_set.text.erb:
--------------------------------------------------------------------------------
1 | <% if @game.number_of_players == 12 -%>
2 | Hola, intrepid Sembler.
3 |
4 | Good on you for joining the 12-player game, ‘<%= @game.title %>’ on the largest and most complex board. Love!
5 |
6 | So far, <%= @game.players.count %> players have joined the game (including your good self), so you need <%= @game.number_of_players - @game.players.count %> more. Want to invite others to join you on this epic game adventure? Send them a link:
7 | <% else -%>
8 | Hola, Sembler.
9 |
10 | So far, <%= @game.players.count %> players have joined the open game '<%= @game.title %>' (including your good self), and to play it, you need <%= @game.number_of_players - @game.players.count %>. Because this game has not reached capacity, it has been removed from the list of open games.
11 |
12 | No need to worry; the game can still go on! You will see it listed under 'Games you're playing', and you can invite others to join you by sending them a link:
13 | <% end -%>
14 |
15 | <%= game_url(@game) %>
16 |
17 | Regards,
18 |
19 | - Sembl
20 |
21 |
22 |
23 | If you have a question, comment or concern, please email feedback@sembl.net or tweet @semblnet
24 |
--------------------------------------------------------------------------------
/app/assets/javascripts/views/utils/animation_item.js.jsx.coffee:
--------------------------------------------------------------------------------
1 | #= require react
2 | #= require jquery
3 | #= require views/utils/transition_ender
4 | #= require request_animation_frame
5 |
6 | ###* @jsx React.DOM ###
7 |
8 | @Sembl.Utils.AnimationItem = React.createClass
9 | componentWillEnter: (done) ->
10 | @$el = $(@getDOMNode())
11 | @$el.addClass("#{@props.prefix}-enter")
12 |
13 | requestAnimationFrame =>
14 | @$el.addClass("#{@props.prefix}-enter-active")
15 | new Sembl.Utils.TransitionEnder(@$el, done)
16 | componentDidEnter: ->
17 | @$el
18 | .removeClass("#{@props.prefix}-enter")
19 | .removeClass("#{@props.prefix}-enter-active")
20 |
21 | componentWillLeave: (done) ->
22 | @$el = $(@getDOMNode())
23 | @$el.addClass("#{@props.prefix}-leave")
24 | requestAnimationFrame =>
25 | @$el.addClass("#{@props.prefix}-leave-active")
26 | new Sembl.Utils.TransitionEnder(@$el, done)
27 | componentDidLeave: ->
28 | @$el
29 | .removeClass("#{@props.prefix}-leave")
30 | .removeClass("#{@props.prefix}-leave-active")
31 | render: ->
32 | `