cosname

/opt/code/host/client/nravo/cardgame/app/views/layouts/_mani

Jul 10th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. - files = {dashboard: {}, arena: {}}
  2. - files[:dashboard][:images] = Dir["app/assets/images/page/dashboard/*.png"]
  3. - files[:arena][:images] = Dir["app/assets/images/page/arena/*.png"]
  4. - locales = [game_api_locale_index_path(format: :json, key_chain: 'controllers.card_pack_ctrl')]
  5. - locales << translation_data('controllers.card_pack_ctrl')
  6. :javascript
  7. var files = #{files.map { |file|image_path(file.match(%r{^app/assets/images/([\w\d/.-]+)})[1]) }}
  8. var locales = #{locales.map {|e| e }};
  9. :coffee
  10. # pace init options
  11. window.paceOptions =
  12. ajax: false
  13. document: false
  14. eventLag: true
  15. target: 'body'
Advertisement
Add Comment
Please, Sign In to add comment