From a4cb27b273e66cae01b95cdcaabecd9bc2554a38 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Mon, 23 Sep 2013 11:28:26 -0400 Subject: [PATCH] Move poll button into partial --- web/views/_poll.erb | 14 ++++++++++++++ web/views/layout.erb | 16 ---------------- 2 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 web/views/_poll.erb diff --git a/web/views/_poll.erb b/web/views/_poll.erb new file mode 100644 index 00000000..df78fa54 --- /dev/null +++ b/web/views/_poll.erb @@ -0,0 +1,14 @@ +<% if params[:poll] %> + +<% end %> +<% unless current_path == '' %> +
+ <% if params[:poll] %> + <%= t('StopPolling') %> + <% else %> + <%= t('LivePoll') %> + <% end %> +
+<% end %> diff --git a/web/views/layout.erb b/web/views/layout.erb index 1f6e97ad..44cdd770 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -7,11 +7,6 @@ - <% if params[:poll] %> - - <% end %>