Avatares
This commit is contained in:
@@ -3,7 +3,7 @@ App.language = "pt-br"
|
||||
App.title = "Wiki UFC"
|
||||
App.webmaster_email = "webmaster@wikiufc.gelsol.org"
|
||||
|
||||
App.default_host = "wikiufc.gelsol.org"
|
||||
App.default_host = "localhost:3000"
|
||||
App.base_path = ""
|
||||
|
||||
App.current_period = "2009.2"
|
||||
@@ -16,7 +16,7 @@ App.max_upload_file_size = 5.megabytes
|
||||
|
||||
# Tema
|
||||
App.default_color = 0
|
||||
App.default_avatar = "http://wikiufc.gelsol.org/images/avatar.png"
|
||||
App.default_avatar = "http://#{App.default_host}#{App.default_path}/images/avatar"
|
||||
App.color_schemes = [
|
||||
# Default
|
||||
[ "#037", "#069", "#455", "#778" ],
|
||||
|
||||
@@ -5,12 +5,18 @@
|
||||
# ENV['RAILS_ENV'] ||= 'production'
|
||||
|
||||
# Specifies gem version of Rails to use when vendor/rails is not present
|
||||
RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
|
||||
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
|
||||
|
||||
# Bootstrap the Rails environment, frameworks, and default configuration
|
||||
require File.join(File.dirname(__FILE__), 'boot')
|
||||
|
||||
Rails::Initializer.run do |config|
|
||||
|
||||
config.to_prepare do
|
||||
load "#{RAILS_ROOT}/app/models/message.rb"
|
||||
load "#{RAILS_ROOT}/app/models/log_entry.rb"
|
||||
end
|
||||
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration should go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded.
|
||||
|
||||
@@ -51,6 +51,6 @@ end
|
||||
|
||||
# Carrega as classes Message e LogEntry. O lazy loading do Rails gera
|
||||
# problemas se voce definir varias classes por arquivos.
|
||||
require "#{RAILS_ROOT}/app/models/message.rb"
|
||||
require "#{RAILS_ROOT}/app/models/log_entry.rb"
|
||||
#require "#{RAILS_ROOT}/app/models/message.rb"
|
||||
#require "#{RAILS_ROOT}/app/models/log_entry.rb"
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ ActionController::Routing::Routes.draw do |map|
|
||||
map.with_options :controller => 'log' do |log|
|
||||
log.course_log 'courses/:course_id/log', :action => 'index', :format => 'html'
|
||||
log.undo_course_log 'courses/:course_id/log/:id/undo', :action => 'undo', :format => 'html'
|
||||
|
||||
log.formatted_course_log 'courses/:course_id/log.:format', :action => 'index'
|
||||
end
|
||||
|
||||
@@ -78,7 +77,7 @@ ActionController::Routing::Routes.draw do |map|
|
||||
end
|
||||
|
||||
# Pagina pessoal
|
||||
map.dashboard '/dashboard', :controller => 'users', :action => 'dashboard', :format => 'html'
|
||||
map.dashboard '/dashboard', :controller => 'users', :action => 'dashboard'
|
||||
map.formatted_dashboard '/dashboard/:secret.:format', :controller => 'users', :action => 'dashboard'
|
||||
|
||||
# Stylesheets
|
||||
|
||||
Reference in New Issue
Block a user