diaspora/app/models
Marco Gallardo 4aab8762fa Locator feature
added marker image for publisher, showing div for address, and added
functionality to close it when clicking 'X' image

showing marker image in publisher

renamed map-marker to locator

fixed style for map marker image in publisher

added locator.js to get user's location

loading google maps api

removed unecessary append and showing location next to publisher

moved location address inside div and  added image to close location

styled div location address an image to close location

removing location when clicking close image

cleaned code

cleaned code

showing loader while location is being obtained, translated normal js to
backbone structure, created locations db stuff, and removing location
div when clicking 'share'

refactored code; started to move code to backbone

refactored js code; moving functionality to backbone structure

created address function to make accessible address variable value

refactored locator.js

showing and removing location div from dom

created location; it belongs_to status_message

added location model and created association with status_message

added hidden field for location address and added respective code on js files to retrieve it on ajax call

saving location for status_message (post)

removing location when sharing

renamed locator backbone view to location, added template, showing
location, and saving lat and lng

prepared and added template to show location

added location to post model in order to have it accessible in backbone

retrieving location to show it in template

removed console.log XD

fixes when removing location

cleanind location_address hidden field when location is removed

more fixes; showing location when sharing

saving location just when it exists

created method to retrieve location address just when location was created

fixed issue about showing 'Near from' message when there was not any location

added style for location

cleaned code

renamed locator view

retrieving lat and lng from locator.js

saving lat and lng in location_coords

saving lat and lng

added style for input location_address

removed location_address  hidden field; the value will be taken directly from input with the location

replaced div with location for input; the user will be able to edit the place

avoiding submitting the form when pressing Enter key on new input for location

added missed spec file for location model

refactored location_view code

refactored location_view code

cleaned code

added sinon library for testing

added describes for new publisher's view functions

created test for destroyLocation function

added test for showLocation publisher view function

created test for avoidEnter publisher view function

removed unnecessary div

Created first test for locations view, added more specs, added Sinon.js,
and fixed issue with assets

loading locator.js for tests

moved location stuff to app/assets

moved locator.js and sinon.js to app/assets

fixed route for images

included locator.js to assets

fixed issue when post object is different than StatusMessage; also fixed issue with lat and lng

loading Sinon for specs

refactoring locator errorGettingposition and start replacing google maps stuff with OSM

added OpenLayers JS, osmlocator, and added them into the main js

changing the locator from Google to OSM instance

changing lat and lng value in the backbone view

removing google javascript tag in application layout

adding jasmine to locator test and removed locator.js

adding jasmine to locator test using OSM

adding Jasmine test to OSM locator

removed locator.js

removed require locator and updated schema

fixed js response; added location

since we are using OSM Locator we don't need locator-spec test

fixed spec for location view; we are not using google maps anymore

changed description of osmlocator-spec

fixed issue with status-message-location template

fixed style for location_address textbox

fixed tests for locator

moved split function to model

created test for location model

removed puts

added effect for location marker

added translations for locator

removed conflicting-unnecessary lines that were loading files for specs

removed sinon library; using sinon-rails gem

removed useless code

removed puts; added Rails.logger.error

added sinon.js file

added specific version of sinon-rails gem

improving validations sintax

using openlayers-rails gem

removed 'google API' text

using sinon gem

isolating LocationStream view

refactored validation

getting location when post is a Reshare

refactored code

fixed aligment for elements under location message

improved styling for location message

refactored begin-rescue block

getting absolute root instead of just the root

added address method to retrive address of location

removed code from Post model; also added descriptinon why it was removed

removed validation when retrieving address; with latest refactorizations we dont need them any more

interpolated location; using file in locales

fixed width for div of location

moved Sinon gem into development and test group

fixed method's description

added missed indexes

updated schema with locations table

removed openlayers-rails gem

preventing location to be saved if there are not coordinates

fixed spec; wrong closing tag
2013-05-02 17:31:53 -05:00
..
activity_streams the websocket has been completely removed, and replaced for a stub until 2012-01-03 18:39:54 -08:00
acts_as_taggable_on Remove unnecessary ruby187 hacks 2013-05-02 10:07:30 -03:00
notifications Bye Resque. Ohai Sidekiq. 2013-03-21 23:39:07 +01:00
services End the require mess 2013-03-21 23:37:53 +01:00
user Merge pull request #3993 from MrZYX/sidekiq 2013-04-03 15:19:15 -07:00
account_deleter.rb kill your darlings; remove diaspora_client with fire 2012-05-17 14:55:53 -07:00
account_deletion.rb Bye Resque. Ohai Sidekiq. 2013-03-21 23:39:07 +01:00
aspect.rb serialize current user json into body tag for now 2012-01-07 14:23:20 -08:00
aspect_membership.rb [WIP] aspect membership dropdown Backbone.js rework 2013-02-17 13:40:10 +01:00
aspect_visibility.rb Introduced Shareable 2011-10-16 13:58:35 +02:00
block.rb some refactoring regarding the law of demeter 2012-09-23 19:33:19 +02:00
comment.rb some refactoring regarding the law of demeter 2012-09-23 19:33:19 +02:00
contact.rb some refactoring regarding the law of demeter 2012-09-23 19:33:19 +02:00
conversation.rb added a id and a autoscroll to first unread message in conversation (Fix: #3216) 2013-02-11 16:15:01 +01:00
conversation_visibility.rb PrivateMessage -> Conversation, Message. 2011-03-01 12:25:55 -08:00
invitation.rb kill references to ServiceUser 2012-05-14 18:47:14 -07:00
invitation_code.rb New configuration system 2012-09-26 20:19:37 +02:00
like.rb Refactor Relayable Creation 2012-02-09 19:01:00 -08:00
location.rb Locator feature 2013-05-02 17:31:53 -05:00
mention.rb move mention regex to a constant in mention 2012-01-27 02:23:37 -08:00
message.rb Fix notifications for private messages between local users, fixes #2321 2012-11-11 23:35:19 +02:00
notification.rb upgrade to Rails 3.2.3 2012-05-14 21:53:16 -07:00
notification_actor.rb MS DG update copyright 2011-09-14 11:23:12 -07:00
o_embed_cache.rb Correct our general exception handling. 2012-03-03 16:26:06 -08:00
participation.rb you can now follow / unfollow a post from the stream; fixed cukes. 2012-02-13 19:13:43 -08:00
person.rb End the require mess 2013-03-21 23:37:53 +01:00
photo.rb Bye Resque. Ohai Sidekiq. 2013-03-21 23:39:07 +01:00
pod.rb Removed , but not the table. Record all in httpmulti success 2011-08-30 10:14:32 -07:00
post.rb Locator feature 2013-05-02 17:31:53 -05:00
profile.rb query the set url only through #pod_uri in the app 2012-09-26 20:19:37 +02:00
relayable_retraction.rb delegate parent_author to the target of a RelayableRetraction 2013-02-28 17:01:58 +01:00
request.rb introduce the idea of Federated::Base. this is mostly just renaming and collasping of different federation modules, but also starting a direct hiearchy of these federation classes to make everything easier to refactor 2012-02-25 16:57:14 -08:00
reshare.rb Locator feature 2013-05-02 17:31:53 -05:00
retraction.rb introduce the idea of Federated::Base. this is mostly just renaming and collasping of different federation modules, but also starting a direct hiearchy of these federation classes to make everything easier to refactor 2012-02-25 16:57:14 -08:00
role.rb New configuration system 2012-09-26 20:19:37 +02:00
service.rb End the require mess 2013-03-21 23:37:53 +01:00
share_visibility.rb Don't create share_visibilities for public posts, sans migration of deleting old data. 2012-01-24 16:49:07 -08:00
signed_retraction.rb introduce the idea of Federated::Base. this is mostly just renaming and collasping of different federation modules, but also starting a direct hiearchy of these federation classes to make everything easier to refactor 2012-02-25 16:57:14 -08:00
status_message.rb Locator feature 2013-05-02 17:31:53 -05:00
tag_following.rb Fix ActiveRecord queries - take two 2012-06-13 14:52:25 -07:00
user.rb Merge pull request #3993 from MrZYX/sidekiq 2013-04-03 15:19:15 -07:00
user_preference.rb a user now has the option to disable reshare email notifications 2011-08-25 17:16:09 -07:00