You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
322 B
Elixir
13 lines
322 B
Elixir
8 years ago
|
defmodule Asciinema.AsciicastAnimationController do
|
||
|
use Asciinema.Web, :controller
|
||
|
alias Asciinema.{Repo, Asciicast}
|
||
|
|
||
|
def show(conn, %{"id" => id}) do
|
||
|
asciicast = Repo.one!(Asciicast.by_id_or_secret_token(id))
|
||
|
|
||
|
conn
|
||
|
|> put_layout("simple.html")
|
||
|
|> render("show.html", asciicast: asciicast)
|
||
|
end
|
||
|
end
|