From: Date: Thu, 17 Jul 2008 21:46:20 +0000 (-0400) Subject: Scrollbar if someone creates too many electons to fit within defualt given room for... X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/f5d7ead8bbeec349c55e55a9c5927a7667ee207f?hp=e8111bfbb23641eb8f5e6afadab6ec38e9e260c4 Scrollbar if someone creates too many electons to fit within defualt given room for control panel. Doesn't look too good yet. --- diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 68d59cc..be2fb3d 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -79,7 +79,6 @@ class ElectionController < ApplicationController def update_general_information @election = Election.find(params[:id]) - holder = create_theme_hash unless holder.values.all? {|v| v.has_value?("")} unless @election.embed_custom_string @@ -98,8 +97,10 @@ class ElectionController < ApplicationController end end - #Takes care of uploading custom images -- unnecessarily long, how can I compress? + #Takes care of uploading custom images + #unnecessarily long, how can I compress? def add_theme(prefix) + holder = create_theme_hash unless params[:top_bar][:uploaded_data].to_s.empty? previous = SkinPicture.find(:first, :conditions => ["filename = ?", @election.embed_custom_string + "top_bar.png"]) diff --git a/app/views/front/index.rhtml b/app/views/front/index.rhtml index afdf35d..70cad25 100644 --- a/app/views/front/index.rhtml +++ b/app/views/front/index.rhtml @@ -19,7 +19,8 @@
-
+
+

Control Room

<% if session[:user] %> <%= render :partial => 'user_summary' %> diff --git a/public/stylesheets/front.css b/public/stylesheets/front.css index 4c973b1..8805abe 100644 --- a/public/stylesheets/front.css +++ b/public/stylesheets/front.css @@ -127,6 +127,7 @@ h3 { #control-room-content { height: 428px; + overflow:auto; } #quickvotes {