Skip to content
Extraits de code Groupes Projets
  1. mai 04, 2015
  2. avr. 27, 2015
  3. avr. 25, 2015
  4. mars 25, 2015
  5. mars 06, 2015
  6. jan. 13, 2015
  7. jan. 10, 2015
  8. oct. 08, 2014
  9. oct. 07, 2014
  10. sept. 14, 2014
  11. sept. 01, 2014
  12. août 28, 2014
    • Jonne Haß's avatar
      Dynamic asset paths everywhere · 46219879
      Jonne Haß a rédigé
      * Use asset pipeline aware helpers in CSS files
      * Add js_image_paths to push image asset names to the client side JS
      46219879
  13. août 26, 2014
  14. août 19, 2014
  15. août 16, 2014
  16. juil. 20, 2014
  17. juil. 06, 2014
  18. fév. 23, 2014
  19. jan. 20, 2014
  20. mai 02, 2013
    • Marco Gallardo's avatar
      Locator feature · 4aab8762
      Marco Gallardo a rédigé
      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
      4aab8762
  21. sept. 12, 2012
  22. mai 30, 2012
  23. avr. 21, 2012
  24. avr. 11, 2012
    • Steven Hancock's avatar
      bootstrap-sass · 021cc994
      Steven Hancock a rédigé
      Upgrade our current Bootstrap 1 and 2 dependencies to use Bootstrap 2.0.2
      from the bootstrap-sass gem.
      
      I had to modify layouts/application to get the stream page to render properly,
      looks like a slight conflict between Bootstrap and Blueprint grid systems, with
      .span-24 instead of .row I was seeing the whole right bar dropped to the bottom
      of the page below the left bar.
      
      I also modified two other templates since Bootstrap 2.0.2 includes a "badge"
      class that was making our navbar badges look funny. :)
      021cc994
  25. mars 29, 2012
  26. mars 28, 2012
    • Maxwell Salzberg's avatar
      AHHH CRAZY. stupid branchs. WIP · 283e7304
      Maxwell Salzberg a rédigé
      283e7304
    • Maxwell Salzberg's avatar
      update new js files · e1bf6441
      Maxwell Salzberg a rédigé
      e1bf6441
    • Steven Hancock's avatar
      Remove jquery_ujs from main.js manifest · 8b92ed73
      Steven Hancock a rédigé
      Since jquery and jquery_ujs are now included by the jquery_include_tag
      helper (see commit 9e752585), they shouldn't be included by the asset
      pipeline in our javascript manifests. :)
      8b92ed73
    • Steven Hancock's avatar
      Fix Jasmine tests - first pass · 95d5c9ca
      Steven Hancock a rédigé
      193 specs | 5 failing
      
      The 5 failing specs appear (according to Firebug) to be due to missing
      fixtures and/or missing routes in the Jasmine environment. Fixing these
      last 5 failures is a task probably best left to a more experienced
      Javascript/Jasmine developer.
      
      This commit also moves validation.js and clear-form.js into
      app/assets/javascripts and precompiles validation.js
      95d5c9ca
    • Steven Hancock's avatar
      Move Javascript to the asset pipeline · 1aa0b15c
      Steven Hancock a rédigé
      * 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
      1aa0b15c
Chargement en cours