* Move all Diaspora-specific javascripts to app/assets/javascripts * Move all vendored javascripts to vendor/assets/javascripts * Add the appropriate Sprockets require directives to make sure everything gets included in the right order * Remove Jammit dependencies * Fix all templates that were using Jammit's include_javascripts helper * Add handlebars_assets gem for compiling Handlebars templates * Move all Handlebars templates to app/assets/templates and rename from .handlebars to .jst.hbs (this is to keep them in the same global JST namespace that they were in under Jammit) * Add public/assets to .gitignore since these files can and should be re-generated by Heroku or Capistrano during each deploy * Fix a few Handlebars templates that were looking for images in the wrong location (I'm sure there are others, but it's late) * Configure application.rb to precompile all javascript and css assets that were compiled by Jammit in the Rails 3.0 code
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
- content_for :head do
|
|
= javascript_include_tag :finder
|
|
|
|
#section_header
|
|
%h2
|
|
= t('contacts.index.title')
|
|
|
|
= render 'shared/contact_sidebar'
|
|
|
|
.span-18.last.searchable
|
|
/= search_field_tag :contact_search, "", :id => "contact_list_search", :class => 'contact_list_search', :results => 5, :placeholder => t('search')
|
|
%h3
|
|
= t('.service_friends', :service => params[:provider].titleize)
|
|
#people_stream.stream.contacts
|
|
- if @friends.size > 0
|
|
= render :partial => 'remote_friend', :collection => @friends, :as => :friend
|
|
|
|
= will_paginate @friends
|
|
- elsif @service
|
|
.no_contacts
|
|
%br
|
|
%br
|
|
%h4
|
|
= t('.fetching_contacts', :service => params[:provider].titleize)
|
|
- else
|
|
.no_contacts
|
|
= link_to(image_tag("social_media_logos/facebook-48x48.png"), "/auth/facebook")
|
|
%br
|
|
%br
|
|
%h4
|
|
= link_to t('services.index.connect_to_facebook'), '/auth/facebook'
|