more progress
This commit is contained in:
parent
5b2716d2ef
commit
f72f1d4059
5 changed files with 10 additions and 4 deletions
|
|
@ -19,6 +19,7 @@ module PeopleHelper
|
|||
def request_partial single_aspect_form
|
||||
if single_aspect_form
|
||||
'requests/new_request_with_aspect_to_person'
|
||||
|
||||
else
|
||||
'requests/new_request_to_person'
|
||||
end
|
||||
|
|
@ -67,7 +68,6 @@ module PeopleHelper
|
|||
"href=\"#{local_or_remote_person_path(person, opts)}\"".html_safe
|
||||
end
|
||||
|
||||
|
||||
# Rails.application.routes.url_helpers is needed since this is indirectly called from a model
|
||||
def local_or_remote_person_path(person, opts={})
|
||||
opts.merge!(:protocol => AppConfig[:pod_uri].scheme, :host => AppConfig[:pod_uri].authority)
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class Profile < ActiveRecord::Base
|
|||
else
|
||||
self[:image_url]
|
||||
end
|
||||
result || '/images/user/default.png'
|
||||
result || '/assets/user/default.png'
|
||||
end
|
||||
|
||||
def from_omniauth_hash(omniauth_user_hash)
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ Diaspora::Application.configure do
|
|||
config.serve_static_assets = true
|
||||
config.static_cache_control = "public, max-age=3600"
|
||||
|
||||
config.assets.enabled = true
|
||||
config.assets.debug = true
|
||||
|
||||
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
|
||||
config.assets.allow_debugging = true
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ require 'cucumber/api_steps'
|
|||
# Ensure we know the appservers port
|
||||
Capybara.server_port = 9887
|
||||
|
||||
# Set the asset host for the pipeline
|
||||
ActionController::Base.asset_host = Capybara.app_host
|
||||
|
||||
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
|
||||
# order to ease the transition to Capybara we set the default here. If you'd
|
||||
|
|
@ -95,3 +97,4 @@ end
|
|||
After('@localserver') do
|
||||
CapybaraSettings.instance.restore
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ var View = {
|
|||
|
||||
avatars: {
|
||||
fallback: function(evt) {
|
||||
$(this).attr("src", "/images/user/default.png");
|
||||
$(this).attr("src", "/assets/user/default.png");
|
||||
},
|
||||
selector: "img.avatar"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue