From 97fe0cb3ffce3c80a17e843900184f083e59a638 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 10 Mar 2012 17:45:06 +0100 Subject: [PATCH] Move player to partial --- app/views/asciicasts/_asciicast.html.erb | 12 ++++++++++++ app/views/asciicasts/show.html.erb | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 app/views/asciicasts/_asciicast.html.erb diff --git a/app/views/asciicasts/_asciicast.html.erb b/app/views/asciicasts/_asciicast.html.erb new file mode 100644 index 0000000..554ba50 --- /dev/null +++ b/app/views/asciicasts/_asciicast.html.erb @@ -0,0 +1,12 @@ +
+
+
+
+
+ +
+ <%= random_description %> +
+
+ +<%= player_script(asciicast) %> diff --git a/app/views/asciicasts/show.html.erb b/app/views/asciicasts/show.html.erb index 9a798ef..19517dc 100644 --- a/app/views/asciicasts/show.html.erb +++ b/app/views/asciicasts/show.html.erb @@ -10,18 +10,7 @@ -
-
-
-
-
- -
- <%= random_description %> -
-
- -<%= player_script(@asciicast) %> +<%= render :partial => 'asciicasts/asciicast', :object => @asciicast %>

Comments