Permalink
Browse files

renamed to uclass

  • Loading branch information...
1 parent 7045e4e commit 5be3cc3d59e7dc65b515f5486e40ba306ace7bf4 @agrobbin committed Mar 6, 2011
View
@@ -1,5 +1,6 @@
.rvmrc
.bundle
+.sass-cache/
db/*.sqlite3
log/*.log
tmp/
View
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
require 'rake'
-Uclassme::Application.load_tasks
+Uclass::Application.load_tasks
@@ -14,6 +14,6 @@
= image_tag 'bryant.png', :class => 'left'
%p= "Welcome back, Alex Robbin"
%h2= current_institution.name
- = link_to 'UClass.Me', root_url(:subdomain => nil), :class => 'right', :id => 'uclassme'
+ = link_to 'UClass', root_url(:subdomain => nil), :class => 'right', :id => 'uclass'
.clear
#content= yield
View
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run Uclassme::Application
+run Uclass::Application
View
@@ -6,7 +6,7 @@
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
-module Uclassme
+module Uclass
class Application < Rails::Application
config.time_zone = 'UTC'
View
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Uclassme::Application.initialize!
+Uclass::Application.initialize!
@@ -1,4 +1,4 @@
-Uclassme::Application.configure do
+Uclass::Application.configure do
config.cache_classes = false
config.whiny_nils = true
@@ -1,4 +1,4 @@
-Uclassme::Application.configure do
+Uclass::Application.configure do
config.cache_classes = true
config.consider_all_requests_local = false
@@ -1,4 +1,4 @@
-Uclassme::Application.configure do
+Uclass::Application.configure do
config.cache_classes = true
config.whiny_nils = true
@@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-Uclassme::Application.config.secret_token = '357f7d3092b26d067c3041cadc693cc334690ad533d670d8d5aba8506c4573c254f44e26791bd37660ad7bbed212efb473d39e75f9fbadf07cdae87a190ad22b'
+Uclass::Application.config.secret_token = '357f7d3092b26d067c3041cadc693cc334690ad533d670d8d5aba8506c4573c254f44e26791bd37660ad7bbed212efb473d39e75f9fbadf07cdae87a190ad22b'
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
-Uclassme::Application.config.session_store :cookie_store, :key => '_uclassme_session'
+Uclass::Application.config.session_store :cookie_store, :key => '_uclass_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
-# Uclassme::Application.config.session_store :active_record_store
+# Uclass::Application.config.session_store :active_record_store
View
@@ -1,4 +1,4 @@
-Uclassme::Application.routes.draw do
+Uclass::Application.routes.draw do
constraints(Subdomain) do
root :to => "institutions#index"
View
@@ -22,7 +22,7 @@ task :import, [:filename] => [:environment] do |task, args|
section = course.sections.build(:name => row[:sect], :identifier => row[:crn], :semester_season => season, :semester_year => year, :location => "#{row[:bldg]} #{row[:room]}", :days => days, :start => row[:start_time], :end => row[:end_time])
if !row[:instructor].blank?
last_name, first_name = row[:instructor].split(',')
- section.professor = Professor.find_or_create_by_institution_id_and_first_name_and_last_name(1, first_name, last_name)
+ section.professor = Professor.find_or_create_by_institution_id_and_first_name_and_last_name(1, first_name.strip, last_name.strip)
end
section.save!
puts "- #{row[:sect]}"
@@ -23,7 +23,7 @@ a:active, a:focus { outline: 0; }
#header #institution { width: 50%; }
#header #institution img { padding-right: 25px; }
#header #institution p { margin: 35px 0 0; font-size: 11px; font-style: italic; }
-#header a#uclassme { font-weight: bold; }
+#header a#uclass { font-weight: bold; }
#content { background: url(/images/drop-shadow.gif) repeat-x; margin-top: 10px; padding: 0 50px; height: 500px; overflow: auto; }
-#content h1 { padding-top: 10px; }
+#content h1 { padding-top: 20px; }
@@ -61,7 +61,7 @@ a:active, a:focus {
}
}
}
- a#uclassme {
+ a#uclass {
font-weight: bold;
}
}
@@ -73,6 +73,6 @@ a:active, a:focus {
height: 500px;
overflow: auto;
h1 {
- padding-top: 10px;
+ padding-top: 20px;
}
}

0 comments on commit 5be3cc3

Please sign in to comment.