guts 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/app/assets/javascripts/guts/application.js.erb +30 -17
  4. data/app/assets/javascripts/guts/media.js +29 -29
  5. data/app/assets/javascripts/guts/navigation.js +36 -21
  6. data/app/assets/javascripts/guts/vendor/sortable.js +2 -0
  7. data/app/assets/stylesheets/guts/application.scss +22 -4
  8. data/app/controllers/guts/navigations_controller.rb +16 -3
  9. data/app/models/guts/navigation_item.rb +16 -3
  10. data/app/views/guts/navigation_items/index.html.erb +3 -3
  11. data/app/views/guts/navigations/index.html.erb +3 -2
  12. data/config/routes.rb +42 -40
  13. data/lib/guts/version.rb +1 -1
  14. data/test/controllers/guts/navigation_items_controller_test.rb +11 -12
  15. data/test/controllers/guts/navigations_controller_test.rb +25 -2
  16. data/test/dummy/db/development.sqlite3 +0 -0
  17. data/test/dummy/db/test.sqlite3 +0 -0
  18. data/test/dummy/log/development.log +11077 -0
  19. data/test/dummy/log/test.log +30021 -0
  20. data/test/dummy/public/system/guts/media/166/075/618/compact/spongebob.png +0 -0
  21. data/test/dummy/public/system/guts/media/166/075/618/grande/spongebob.png +0 -0
  22. data/test/dummy/public/system/guts/media/166/075/618/large/spongebob.png +0 -0
  23. data/test/dummy/public/system/guts/media/166/075/618/medium/spongebob.png +0 -0
  24. data/test/dummy/public/system/guts/media/166/075/618/small/spongebob.png +0 -0
  25. data/test/dummy/public/system/guts/media/166/075/618/supreme/spongebob.png +0 -0
  26. data/test/dummy/public/system/guts/media/166/075/618/thumb/spongebob.png +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-Y/-Yt5xDo56dK1QNjph1_MktEmtZJh8G5RR2Z-vK9wK9Y.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-c/-CO5yiCrSDwYePEPTUA8xC11-Xi7uD86fj5VXcWZkAg.cache +1 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-k/-krNbpbFdu7EpwnNK3FZ7IXCp2KRgVkEWEGdUS6eWsg.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/-l/-l-9vQsbt5QHaaDHhuYaxqArPEwbrt9mLd6jzhvqlOk.cache +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/03/03BFDVxbfYfXyJ_r7o-UgzShrLIEIX0NaLZDWIhvdNk.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0E/0eSKrc3DJYauJO6WYYdaclofOJzrqOdaknG1yjuOUB4.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0M/0mxuSWwDlJiih0JRYfCeV9ScxRCzSZIq96Kn9OZDTH0.cache +0 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/0V/0vRSMGRXxFiR-6OOjepmgMrmIHwNiXfzH1Za4cQ4w_4.cache +2 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1a/1aCK6Agcw5mo4whC7zk3Xyo4mzKik0VuLTpB7wBHkTY.cache +1 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1b/1bMpnejjdJHTUad7R_iJ_gkgRqV_iXiRG6OHbJMPc6Q.cache +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/1d/1dPqkZ6DBPcTKTIHw3i8-XQHql_Fkbpl2bb_TJtBDck.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2e/2eFBW3Bm-MiapQvsNpoV7rcc8Il3oxWEdPlB5NzibN4.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2o/2okltfHaxwbLXyYFP_G1HpYsx6cJw7l-vi1fYn-Ksg4.cache +2 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2v/2vu9f6NvO_SV_DuBPxoVhWX-Cg3EIGIPJoVlcqQ_utU.cache +0 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2z/2Z4S4DaGW64iNVRvaXLN6Ghzuie8n3urE_dzUDQoXOc.cache +1 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/36/36HRL2qb7JG1Ih2vYAtpAvEzdieSyTgrXZZBgDx_Mag.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3D/3DwKENfNQDp3vxr9Jg6218x3rMq0dLE7LfmpaAbfRIY.cache +3 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3K/3Kx2Iqzh1AZHDrMoTIxBYz3o1mFW76KnoPAwfT0fqxU.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3g/3gs3Z6hkzbYDNxZcm2h5zkXK3yNrdZlvzt_1E53iiCM.cache +1 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/3v/3vNlnbUwbDbW-vfR1oYmiD8pADXlYdj4cqXBnoYsfSc.cache +1 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/40/40P3sGYZtlF0J6DyryQgEX_03WGUFGZ17_r3AistLAM.cache +0 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4Y/4yqQguytQxNe261q-0qjtXpbALp8hLEAzi-glhOESsg.cache +1 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/4x/4x5YJItyc0vEuTHiQIcp3bl0QmirdMTF3lXzVV6EMOY.cache +2 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/56/562Wb3-tkqjnv7SlSr7iX3l51c2EPZGD3m9dsGQFnvk.cache +1 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/59/59ZwpiMNB2z_7RL9Cu3DqbUe1yJPSpG6AifLCf0qFTE.cache +0 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5e/5ecDyM7aM5vSf6irMvVech1rto2dJsif4bILXgKMwAc.cache +0 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5j/5jsEBHt-FshKWPXTa6HAd-UvKn5MQB8ps136mJru7ZQ.cache +0 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/64/64doxjU8Pa6FBUG-B1AMOLhk0wo1Zy3RrHEecwBHGLU.cache +6 -0
  55. data/test/dummy/tmp/cache/assets/sprockets/v3.0/68/68GOsNqx-r7WWzSZYDvmdTnrqhy0fpk6gkfQ8G4iX7Q.cache +1 -0
  56. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6E/6EyhBx5znJpZNxuuPLw3sle9n9Yer-gByXjiopyu7vE.cache +1 -0
  57. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6R/6rFqZp1JvKjZlHthAbvYWLKOOIbXHqX2EG9mxbIYjR8.cache +0 -0
  58. data/test/dummy/tmp/cache/assets/sprockets/v3.0/6n/6n1Xjz5tHWgt9bnurlPFjHgWS3SDjqQ3ReoovLOaGkQ.cache +2 -0
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/71/71OYA1bmUwV1wdodUBHj4ugUdmV3faq5GE90GEe_KQU.cache +6 -0
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7I/7IBAW0SQeMuzLoAOf2_Tn9dVo6dCnNSQBxD6-AKdPMc.cache +0 -0
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7T/7TwpJ_Lf0P-Grq06ehvWfiZ5fzPo0fmRMsrLZvfMt5I.cache +0 -0
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7Y/7YnW5Kwu8JPjKRKs9gti7CKa3muxrJaLhtUN-J2weUY.cache +0 -0
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7o/7oFMpayUaRzMfhQL9CdmngEVXteYZLpqOG_ajFk4d0M.cache +0 -0
  64. data/test/dummy/tmp/cache/assets/sprockets/v3.0/81/81X_WaKyKm67njQN7Ow8SGz5oZYof0RVl89Frr3YzmM.cache +0 -0
  65. data/test/dummy/tmp/cache/assets/sprockets/v3.0/82/82eQogB8xjC7ZUwKjj_juEm4COBsfxgI6Ab1ekWDalc.cache +2 -0
  66. data/test/dummy/tmp/cache/assets/sprockets/v3.0/86/86Y4DiZPSGoCf_DapUQhEyVMWSt89o0Uc4bw6JDtH70.cache +2 -0
  67. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8c/8cWTGiDVUAJQVIn1vmeYaY1C07FKMn3dXgQn4v2Q0yk.cache +0 -0
  68. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8i/8i_hI1qwP_syudCuANqxuvj-uSrkaVbIpUa-D-wR97I.cache +1 -0
  69. data/test/dummy/tmp/cache/assets/sprockets/v3.0/8m/8mVWTP_K9kfKUs37r1i2LzVbHyTY8JMHhSXDqYv2Iso.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9L/9L6f0RUX80b146-GtdopoQk09WAyw3UWxup1XPCg6ow.cache +0 -0
  71. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9b/9b0Ug11WKR6Iu2uA8UtxbB-dcPmEqEH8uOfjkGo93R0.cache +1 -0
  72. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9j/9jRa01X_LNseBdv4lO3GD-JcRiOIJmeFOKQ5y72Titg.cache +0 -0
  73. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9o/9OJZYxRwKJp2cGIss1LCTmGaEiGYpe3avcqbbxcvDbM.cache +0 -0
  74. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9r/9rQaL1zuhHc1JCiqJ-88TKpuwhjh5jKeuuMgXMI_j4E.cache +2 -0
  75. data/test/dummy/tmp/cache/assets/sprockets/v3.0/A-/a-2HQvQr-PF1mkErK399xxq9ltHX1oZMOmGoakRGKR8.cache +0 -0
  76. data/test/dummy/tmp/cache/assets/sprockets/v3.0/A5/A5wICF1tdkaKNBXYNepYnjMPzXT7gffk7WTxF67B7dI.cache +0 -0
  77. data/test/dummy/tmp/cache/assets/sprockets/v3.0/A7/A7_BS3dOEO1AoRYdUPXpQOsijtfTSzRQOBth6epCjGc.cache +0 -0
  78. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AQ/Aq6Fz3DMBkCEa9vZAqaSV8F8q0WzWKfWmzhCwCKPTWw.cache +1 -0
  79. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AQ/aQRqovB-gmodTeLuYtIecbkFlORW8jWWAbrIcMFMpNA.cache +3 -0
  80. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AxssgjR8sDp5tAw81amm_fzylgQMbmN6YvPSs6ltmhA.cache +0 -0
  81. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Aj/Ajbif-1I2q83YMap5Q-xqKC6litlYmYhCWc-6hsT9Ew.cache +0 -0
  82. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BL/BLSOx-fgh0EvPfiC4i7cB_553L-1iMSMYdkWVgm2_cw.cache +1 -0
  83. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BM/bmOt1wB8nuYjN9lwQx0gB9RHuYZRhS18SkPGNwhiBzw.cache +0 -0
  84. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BR/bR2aV7oBgYCu6Sn7Afurd1hCCDz3znNbH6mwEV-ZCAQ.cache +0 -0
  85. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BX/BxPpR9K_Gi8YTSBPjTXTwYC1TXKnuDhBKEpPJIkl8Ws.cache +0 -0
  86. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BX/bXxvQmuOVDbwnOR7Iyse_O_Hw_joxotwUViGXKXHPck.cache +0 -0
  87. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BY/BYwplO2SgOfplrCWYH7tD3-f1I1ccHvG8zlK8N7XxNE.cache +1 -0
  88. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Bh/BhO6yiYIpG6O-mLbXCJaVGWIoIRxXFcv1V_dm0mBb7E.cache +0 -0
  89. data/test/dummy/tmp/cache/assets/sprockets/v3.0/C5/C5jAjIeJb9KbCNpWW_q7uwfmqwytBSODEacgLadY9UQ.cache +3 -0
  90. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CG/CG3gJrF-YXf2YqHKfE7VDQ1CHZftqAqZvpWceCoPqwI.cache +1 -0
  91. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Cy/CyfaJFUX1GaOeBU99SUBriHcGyfGv8bs7ET6Fj6DJE8.cache +1 -0
  92. data/test/dummy/tmp/cache/assets/sprockets/v3.0/D3/D341CW1Y672Logt6-0rdhQNK6Y38BPoxg5dIJUbJm6A.cache +0 -0
  93. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DE/DEB49_h5w9Y-UBHBEQuXAS6Nqm7z1qbXB516imx1FHY.cache +1 -0
  94. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DH/DH2bwjRSBMDl-tAWOZqizPK1Xsx9S93CyEl8CY0WHpc.cache +1 -0
  95. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DH/DhswUNpfT2GtS4XD_D_HH4id4BzGknClfu56Z8YmCj8.cache +1 -0
  96. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DH/dHzMbB7b5dZaOiqF-uUvPmv3lklPC9CAZSy5HgZofT0.cache +0 -0
  97. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DN/DN6hVP3G1vt4CKDzM13I2mXhbwapGs65vcQHdTcAFEg.cache +6 -0
  98. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DR/DRPJZZes78jJUwBcNQACJvNwhsV2uZ6Oa7Q7UofOON4.cache +1 -0
  99. data/test/dummy/tmp/cache/assets/sprockets/v3.0/D_/D_TbhI83HN_-ev8vVMKdFIyiRloXB9vkKpuZuvPByVI.cache +2 -0
  100. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EE/EETwGVsulwqsqG1lM5WRYEuq0odfWou3nsDnOoruJGw.cache +1 -0
  101. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EM/EMr9HsPUCy8T1BqTCqFdbpizmLdvVgc2RiX0khoRqXU.cache +0 -0
  102. data/test/dummy/tmp/cache/assets/sprockets/v3.0/EW/ewT7bbB5d1B2LtQKORyS-GsZLDJSevOstRl73lofBiw.cache +1 -0
  103. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Eq/eQsnouU8xkIwwZm0tD0wDjOfOeSRF-DaZx4Y8aBM6jo.cache +0 -0
  104. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ey/EYgSWwBsyMbcc3D7Xiz2r1OO0zdvIgqmAxq9zV0dbEA.cache +1 -0
  105. data/test/dummy/tmp/cache/assets/sprockets/v3.0/F4/F4E9_-KgqcWQ07fCSu9N11NqAGMjG84GdPS2yW_09uE.cache +0 -0
  106. data/test/dummy/tmp/cache/assets/sprockets/v3.0/FQ/FQIF1TOA_xAmaAs_jGUR4AJPfPrOP6fwXv8Uf_jXGdA.cache +3 -0
  107. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fc/FCkkybxTPo5FcK83Fba24jmuNfSOhJPeuV8ahBq_pfI.cache +1 -0
  108. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fl/FlDqS_UwdUl7UsSdaRSctpzpehwdCfh_XsTnz1590UQ.cache +0 -0
  109. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ft/FTULPPfSsGhELVxhyZLTSvj0mKNHkuGHt1i2ScOBsLo.cache +0 -0
  110. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ft/FtYzwQZ0ifdIaMzCtqtnZTHGuEf-_k4NADFXPZ0vBqM.cache +1 -0
  111. data/test/dummy/tmp/cache/assets/sprockets/v3.0/G2/G2rCgo89WNDQL8CPvcTgVloAoYJzSvwKMtepd0M5PWg.cache +0 -0
  112. data/test/dummy/tmp/cache/assets/sprockets/v3.0/G8/G8s9M8F6-PXrDqnzv1htHa0bpKGvDUnpUCWWJXeWFZc.cache +6 -0
  113. data/test/dummy/tmp/cache/assets/sprockets/v3.0/GO/GOfj11DlGH42h42v1ik7XeCTA2e56qjUee7iZKMeDvc.cache +0 -0
  114. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gw/GwPO5KRlF2S7_zjumq9zHnTg8IeMNsvMFTtyIGP4a6w.cache +1 -0
  115. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gy/GyyKt_JqxEei8CwsjOH2ouR4eVfXl-NQ60urcKb5bek.cache +0 -0
  116. data/test/dummy/tmp/cache/assets/sprockets/v3.0/H5/H5Eds4hFm4AhFP9fabUZkPiNlQnBtUOZCbO-ECgUwvs.cache +0 -0
  117. data/test/dummy/tmp/cache/assets/sprockets/v3.0/H8/H8r5Q15PNOjju5B_4-Cm0A5MrpVA4YHQQ71qczB1dLk.cache +0 -0
  118. data/test/dummy/tmp/cache/assets/sprockets/v3.0/HW/Hw-v9vXuWRsx6tPJFg_C5v16nbPpTjdJm72db3kq5eo.cache +0 -0
  119. data/test/dummy/tmp/cache/assets/sprockets/v3.0/I_/I__o6TPoJgLc0yYK2rxzKZnMNojB1x8Rz29fsShh_jk.cache +0 -0
  120. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ii/II5LbsRzYlQAXcipVT3S68laZ6WDO3d4yUraoz38C54.cache +1 -0
  121. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ij/IjkRw8jPNS-WnPgsbbqUCQuGTgTEaC8YbErLS4XhAcM.cache +1 -0
  122. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ju/jugH6EMJO2XpfQSy5xbGqz7YC7YT5Av7J0e2DSronNw.cache +1 -0
  123. data/test/dummy/tmp/cache/assets/sprockets/v3.0/KS/KSB7o3jq-n_T2S_BDEgxN5erz4eOM9U83OMIwOio22c.cache +1 -0
  124. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kh/KhQoKS47qN2GxGn2uZRboRvrYNhk_nJSf97pEkyRxdo.cache +1 -0
  125. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kh/kH88dWfVUNO2w_58vrgfc4ADdegvtQf3bLi7c1VW_RE.cache +1 -0
  126. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Kw/kW0yZ2vhvXm0Rg4w_o9UXBbzbkSwB5dBY8x4eb8KBo0.cache +0 -0
  127. data/test/dummy/tmp/cache/assets/sprockets/v3.0/LE/letRH8AYV6TsiNOfVGspCAP-z6i6MVs9jN-vUMNoauo.cache +0 -0
  128. data/test/dummy/tmp/cache/assets/sprockets/v3.0/MI/miZWkwCdhBepZUA8xO_4UEVvYvOD5g3ghR5jpmnrv-4.cache +1 -0
  129. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Mc/McrAtuk60EcFi9FuoaKjlYmFDI2NbbEaJFlE_BJjhu4.cache +0 -0
  130. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N3/N32UWuieUCM1RIRQGVXkFp_bsCUSz-d6RK49m5Dkbuo.cache +1 -0
  131. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N4/n4rVWPtqJ6vR9YlmZY7fF97hgWM9JMTK7t686MMNOxQ.cache +6 -0
  132. data/test/dummy/tmp/cache/assets/sprockets/v3.0/N_/N_TZEnQtePGZSiTcs8LCq3iscMgyZSJ1gGUwQfwXIOk.cache +3 -0
  133. data/test/dummy/tmp/cache/assets/sprockets/v3.0/O6/o6Tgc4VVk4DuWGCgcs0xg_ngEXl9jwoiO-PMkxum1WM.cache +1 -0
  134. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OE/OEU2wi1mWy_NbBB81Mot2-0fKNkULtIuRJvvVvRXWZc.cache +3 -0
  135. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OQ/OqS0r_q-nbVFh7XRTA6C4u7Wm-C-kUtV5dGcs5H27ZI.cache +0 -0
  136. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ou/OuTuLP83EuJ8pdY0EcYrFE9cL5NlIWuFARwe8mZal7s.cache +1 -0
  137. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PG/PGb2pRkUj80Q8pg4e_9-BgcrsSumK0OADpQI6uhlEqM.cache +0 -0
  138. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PM/Pmy8TmFgvWNJFp1nyNR-rJIA1iDAc3QIUQ9upQRL004.cache +1 -0
  139. data/test/dummy/tmp/cache/assets/sprockets/v3.0/PM/pMaVlVUGHQu9xi89sYc4YvtPAZQTGuGvM-gXKf72m24.cache +0 -0
  140. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Pi/piEQ3kKvtS1JRYGgdnh7SbYCrkvnCkGp2YQTfhpu7Dg.cache +0 -0
  141. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ps/PSBX_fdKo2GFaYjd0AmsiuluB_WxOUEM3moseSpMa2w.cache +1 -0
  142. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q1/Q1DUouVgpPsXOh-I0Gs4Wj026tohQYFoViMCsGMET8Y.cache +1 -0
  143. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q2/Q2rtR0p-vIipM-QEz9z5P5ap36Ukg7VuupOeg3qpiDE.cache +0 -0
  144. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Q6/Q6goDyqqY2XUqVLhCCf_-ioTF8BKF9cGN_vLjdNoXLI.cache +1 -0
  145. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QD/QDLJwIhLVPsUxCKIvCVaijgKmA0MzL3qJYtlmxKRcNQ.cache +0 -0
  146. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QV/qV3nS4nnudIV2v8VA_bRXJOL0yNSbkRL0vnKpW6zDGs.cache +1 -0
  147. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QV/qVkm37Mu6Dlq2AuXk8dkgUQiQFqi6Z3jRdpZovZksHw.cache +6 -0
  148. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QV/qvykMfv7pWzJu2a6CsLhn0oL1Jt3EN44T5xrFixY_kc.cache +1 -0
  149. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qh/QhWHqmZ_H7eVnymQU3SIQJ5WBCM9yJbNOm0WLUow-ME.cache +1 -0
  150. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qp/QPZ8EnKslvwsM03hJWm55u8Jk6wtlSAF-tm4w37CtVY.cache +1 -0
  151. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qp/qpbSXVAlrtj7JWQ2YVcxGH28EhpXwyij7hS7LnLKprI.cache +0 -0
  152. data/test/dummy/tmp/cache/assets/sprockets/v3.0/R0/R0-koz0QzjDeDN3e0omhQI_mU3-2-AHZKeQub3Nm4BM.cache +3 -0
  153. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ro/Ro8aBoY3p7rT02ilqqxOV55_x9TzgYjlB_C_fVJXPq0.cache +0 -0
  154. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SI/SiOAiG4BgSz-Tv5iK-gIJsi92zVkYKHeuhg1sS7KEtY.cache +6 -0
  155. data/test/dummy/tmp/cache/assets/sprockets/v3.0/SI/sIMwW6q2W-1Np7b2NTnZ8fyVBHMdySOksZWhVm-w_zM.cache +1 -0
  156. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Sg/SGhDdxwwEbrOPzld-3zvL_Brxf7OYXD_tLScb0tt-0w.cache +1 -0
  157. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TD/tdpi35QHf3oYbDIVoPrpB4Sxthl51SC03GQ6EqKHMFs.cache +0 -0
  158. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TE/tERHkM1RBMZkuSOuklhWNu4DUZmIYMTSMMVzGozG22A.cache +1 -0
  159. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TR/TryEDow40lUSuNrXpbzlcTUCI0EtwZJyfJ3b1jqwUok.cache +1 -0
  160. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TS/TS7hs4bhVY6T7LqVTMY7RvqrpnfCi6Psu15pSAdYBks.cache +2 -0
  161. data/test/dummy/tmp/cache/assets/sprockets/v3.0/TZ/tZlxmbAkTSFlHNeSRwgswytYJNybKfv0t6DV87ejZI4.cache +1 -0
  162. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tc/Tc4n8zycgQhRylmEIEwfsrbgCUgis4_YjnPpYeu2dmM.cache +0 -0
  163. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Tl/tLymxNJX5PNNOh_5hOGT_S63VGcTI1yKkpSlfJUd4wQ.cache +1 -0
  164. data/test/dummy/tmp/cache/assets/sprockets/v3.0/U8/U8E6TkbbUksQ0flLIr_9BLNW0_rfCEtFo5edkrDkVUY.cache +0 -0
  165. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UB/Ub7X3K5t5aqumubhBtvJ5M0k2FVUgXBO3CSXYiUNkF4.cache +1 -0
  166. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UF/UFhs40QFqq560EoSNjDIxHef0FuTiABP4I2ifb76Ops.cache +2 -0
  167. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UW/UwCJWacT5jmoVxbvke1gikkaHJ-fIxcy7PQL2MTV14g.cache +1 -0
  168. data/test/dummy/tmp/cache/assets/sprockets/v3.0/V5/V5glhgzizl5i7_WI41ELxmNgvlH0fLG6XM9N0w1WJLM.cache +0 -0
  169. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VS/vsMkp2gxVbZHoOx9tjxPul9Av03WV3KQgFmZV88SV8c.cache +0 -0
  170. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vw/VW-XHupqZsXaHAk8V4eY0-HJuY_Qx1wUDC-XSn0_aac.cache +0 -0
  171. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WE/wEfmJ9t7f8Y1IIBNqAyLqJnSUPGhaUO5v1jmrz2QzVo.cache +0 -0
  172. data/test/dummy/tmp/cache/assets/sprockets/v3.0/WF/wf02J3d-EnqrxPU3jmvIt-jOa7-H_V8ZCVGSoT5zDSw.cache +0 -0
  173. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wb/WbT6UdyxPqDLgrTKcYVFXjf7uarNYUvE69_E7gCpOP8.cache +0 -0
  174. data/test/dummy/tmp/cache/assets/sprockets/v3.0/XI/Xi_Jgn3v2pglPyy2Jkyzmw8vcX6sOiCeYh8rahoHAUY.cache +0 -0
  175. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Xk/xKhDTh2AiynM3z1V3iOzYvvZ-pvAqkl1MPGN8ER2-JQ.cache +0 -0
  176. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJKQJbPdps4wr_mUg76ScjlG_FDo7g6SpIT3yBN8vaE.cache +0 -0
  177. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/YJb0Bn5NhNdy7h5TpztaecQ0V33rP4HjEpiWgsCf6ms.cache +3 -0
  178. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YJ/yjpRDoT60XyZJFwkgnSYZhY9Rem2Td2K_CSXh4wgB5g.cache +1 -0
  179. data/test/dummy/tmp/cache/assets/sprockets/v3.0/YL/yL_mb9Rne_fpy0RfiPDRDhTwxjke5sFlqAIHrZY8yYU.cache +1 -0
  180. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ya/YaIgsS_x17JVHnGpIzovK8CXsehl-N6Caof7aMgSdf4.cache +1 -0
  181. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ye/yE9y7qg7MS_dCoJ2hywmmdlPX78Up94qSE_IPMEz5OU.cache +3 -0
  182. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z7/Z7PGhgDTYmUoq1Setk1IFkdiP_1ih7_Df95oNNHAqpw.cache +1 -0
  183. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Z7/Z7hVVN7nG3AOvSSqb-t7jiVFqyhru78xHgyMv6nOKAA.cache +1 -0
  184. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZH/ZhJc2PJQ5U-tKntTtkylFaSK7nEBSbp1iyf6pP-_uBU.cache +0 -0
  185. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZM/ZMg-ls2S0T66e3dj7z72N1dgfpFP7K18xI6X-ALh9fQ.cache +1 -0
  186. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZM/Zmr-rEd5FfMWfW2iTHaLKzFR2hfEbJnk2bzDZETxL2w.cache +3 -0
  187. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZM/zm6IW1GK29TRy6m6mTU4fgrISTfcgm6zYE1NWDcLfEI.cache +1 -0
  188. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZX/zxT8urHYPSVLyrzPk4K2OB-PRxeksOr00PnQBNWURf0.cache +0 -0
  189. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZZ/zzFH59HHSR0Tpe4hL8JqVyiqY0QcXpVXHWczP9Mtw2U.cache +1 -0
  190. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_H/_HmEM40Pykb03z2rxfMqVB0ZlpS8Tn5YVOEjV-shyBs.cache +0 -0
  191. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_d/_d1U5MiFciRvy3yes8dRxnPUieV6LqPtLJQi_xVgn2A.cache +1 -0
  192. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_d/_dVckTKGPYW4wVAmX1QuypJVcxxYbK9vLfnAXN7VaW0.cache +1 -0
  193. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_n/_noweiYTt1eRO-Y4atNMhjgK7DZe7wl74ps3KP-X3so.cache +1 -0
  194. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_p/_pcj0KZs2zvusGccVq6Vm3nXTzHwwbpQR1VZVcSEYZY.cache +1 -0
  195. data/test/dummy/tmp/cache/assets/sprockets/v3.0/_p/_pxsl6IrxsvX6bu7GRn0ZfjbQ5PqLbFx_SW2gxLzAG0.cache +1 -0
  196. data/test/dummy/tmp/cache/assets/sprockets/v3.0/a1/a1cCTUeawtYbai4EG3-Yb1KpIqQ8731UXckrE8kJHaw.cache +1 -0
  197. data/test/dummy/tmp/cache/assets/sprockets/v3.0/aN/An37zLpaovZqe1y4nqWXwiSblcvCX-SHS6LxiV59UTU.cache +0 -0
  198. data/test/dummy/tmp/cache/assets/sprockets/v3.0/b8/b8cb7GSVG80lWsxXUrLfFVwRIOOWzlqie77ZCuP9nv4.cache +1 -0
  199. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bP/bPOHnKX11M5mr8dsSmjA5O193Ki8SkYvstUa2KzlMPI.cache +0 -0
  200. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bf/bfrQGo7C3W38CY2lDgJ2NL7Y8YuiKNkY9IuQpRqzOp0.cache +2 -0
  201. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bj/bjTT2dOUdFFn_Uts9PZCX40M7ZzD9lE2vIJsUEpi8yA.cache +1 -0
  202. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bq/bQ4GaXTyYjIDT2jnGr5-j5eZC0lOGL3_AynI7eU6HyE.cache +1 -0
  203. data/test/dummy/tmp/cache/assets/sprockets/v3.0/c6/C6abU9QAWsGW6TtwNqcX6PiP2bWpo4eQP-YUsjXm3JE.cache +0 -0
  204. data/test/dummy/tmp/cache/assets/sprockets/v3.0/c8/c8Ibzj2U4rCejySs2iGlJ_vac2zpYNMw4Vyk31bwPBs.cache +0 -0
  205. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cH/chu9MWazQkk0MaJYKErAL1Xasfvb8DMHTAcyybtYw0U.cache +1 -0
  206. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cM/CMLPgrRGU2d2yCEGJgGtU9S7oWIuUggW0DJwS1vZDeU.cache +0 -0
  207. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cX/cXInNkZBRakiTPsib0EwnlltClbvIDCOoRUoExDJzOc.cache +1 -0
  208. data/test/dummy/tmp/cache/assets/sprockets/v3.0/c_/c_RlJRpMwS82nV1BixhZvXyWoQ9TKQIoSsKHsItw764.cache +0 -0
  209. data/test/dummy/tmp/cache/assets/sprockets/v3.0/cn/cNhBRPFp8FxGH2n_jrq4dN7Yemjb7_GpleQ0VivP2DY.cache +0 -0
  210. data/test/dummy/tmp/cache/assets/sprockets/v3.0/d8/D8laIkBX2eVE2Io8dql36tO04ZGEwn-jQxMzAhDnV74.cache +0 -0
  211. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dF/df-qrTTDW2eTVbeZFL24hN9TF94dryrZMrgFSFklIN8.cache +1 -0
  212. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dl/DLOcdY7T4y8N_hTVWt1RUA0qJ2DoCHgP9lpag7e_Jw8.cache +1 -0
  213. data/test/dummy/tmp/cache/assets/sprockets/v3.0/e0/e0_2CIFS8lPSNnHPXI_wP1-UFS6UlmBlu9SCDt5NDhg.cache +0 -0
  214. data/test/dummy/tmp/cache/assets/sprockets/v3.0/e5/e5iWf_RMU5mGG9zjZ0OwJ9fFWi_ZD0QfgveN35jnv9c.cache +0 -0
  215. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eJ/EJC9PUDYCRZLEbnchV8jJc5mfEvh2pawvVL8WqhMq7U.cache +0 -0
  216. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eK/EkQ3CRLxl9817LiQd7j19vjUi-_eyY6hCXBbr1Jn0v4.cache +0 -0
  217. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eX/EXDl_iquvG6D0svrmQ8PuIXPf1bdxtRsKR2snnK6ESs.cache +1 -0
  218. data/test/dummy/tmp/cache/assets/sprockets/v3.0/et/etu5n-vSF8Or93vLbhtBF8bwMdQKBhGLDhUv6_HjY_k.cache +1 -0
  219. data/test/dummy/tmp/cache/assets/sprockets/v3.0/f9/f96qeJILzIaA5AsY3OpxC1smThS1vbsgqOnXiiZskFg.cache +0 -0
  220. data/test/dummy/tmp/cache/assets/sprockets/v3.0/fg/fgdc8McTCGaB1MOAr5U8G-c-4gvT9dLuov-FetsFZUY.cache +0 -0
  221. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hY/hya1dC3isqrs6oS-QbkOXSet6kIBluQ2cQcFGN7Du5s.cache +0 -0
  222. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZw5Qcv-dCmCeFCYpILA3bb0KkxBBLIq0xZ2MIYVubo.cache +0 -0
  223. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hq/Hq5fnG6MRALZSFDJge5f8UMPqyXBSeMOuRfEVqW-ExM.cache +6 -0
  224. data/test/dummy/tmp/cache/assets/sprockets/v3.0/i9/i9ag446IECbC2CyUQjWPPZ0ZKr4pAUh7sIDFM8gexF8.cache +3 -0
  225. data/test/dummy/tmp/cache/assets/sprockets/v3.0/iZ/iZQ9XdJSoUs-zxUwzoV5ClapIpNDaQCJsNclGzuFec4.cache +0 -0
  226. data/test/dummy/tmp/cache/assets/sprockets/v3.0/j9/j9kpftr6G3nsnMQOv8lJGb6GV8YnCtYMFC72pCpUu9k.cache +1 -0
  227. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jK/jKpmb6WdfiOIjALs8OdT1IEEl5uCnHMXnu4KCGcrZN0.cache +3 -0
  228. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ja/jacWeXtGIKEgRyVvMThk_2uMOWlRuZ2VgAUQl7lLnug.cache +0 -0
  229. data/test/dummy/tmp/cache/assets/sprockets/v3.0/k0/k0_A5V6W6psuH5EGEgvD8tSV0nJXM-MhKAqnyDB8b8o.cache +1 -0
  230. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kM/kMe6lsugkr-IxOct_REKyBX04sLPsFoynDiL6AD8jTk.cache +1 -0
  231. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lA/LAJfw_vjGSXrtUHVR9plA1LlVlaWHTTW3wlg5nYqwDs.cache +3 -0
  232. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lA/LAN8_fEYM0HXMUvopJg1SkNqTV6PukVhEfBV8H5PiFM.cache +0 -0
  233. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lU/LUqASFzSV7fB7IRuxYhM5qcabRHYO63wrt0RfgQEuqs.cache +1 -0
  234. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lU/lUbfdMhZ07D_Hw3T-d7oNvFdf01vhMR_kJb946Kzja0.cache +1 -0
  235. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lc/Lcn3c4llCBGpCoHLPhUC8AjbukPRwypNAWZQOacSQOA.cache +3 -0
  236. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lh/lHsiuMOTf7MhRODo5_zdcPq0BcsUuJDz0hF-R5eEdHA.cache +1 -0
  237. data/test/dummy/tmp/cache/assets/sprockets/v3.0/lw/LwX6T6OaTY4SHnZgSklg3iAeccPp_991Qaz-GukvR6Y.cache +0 -0
  238. data/test/dummy/tmp/cache/assets/sprockets/v3.0/m4/M44AOnu8UUk7gKRu484xDTKVBDqt5TUZrieMjKLIdPw.cache +1 -0
  239. data/test/dummy/tmp/cache/assets/sprockets/v3.0/m4/m4kfjY61NCnwiA99Nyx_GZU2nz_QG_n-OBoGMZKPQQE.cache +1 -0
  240. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mM/MMnc3zvOSlUcp8fp_jNfvgmV5o6opLQrhhKhZKe986k.cache +0 -0
  241. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mM/mmWFiTX21_WQvKKwRhTxmVpfEDxWozO525xbpDQxHFY.cache +1 -0
  242. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mZ/mZ8_78vY4ZDetTv5b2I4Rqt7xfePnb4DbXNGhP867c0.cache +1 -0
  243. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mf/MF0pOaPKWeH7z96J6pnLFDZecaHZRXSdOjwROnv2bDY.cache +1 -0
  244. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mf/MfbaHIc9-d2i7oy0ToC8vBA4PDIlgMzvRLu_KgwTL3Y.cache +1 -0
  245. data/test/dummy/tmp/cache/assets/sprockets/v3.0/n8/n866T__lWXTGxOg-WAKoxTbHAsALD1HJUH542xD6KX8.cache +0 -0
  246. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nO/noTTIPTZY-Cx37-rHf8CMcd-KS0ITyyM_rzw6N09l5c.cache +0 -0
  247. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nT/nTtgNCVoJIDhEksPh4EeHExq4MnP4eqEOb5cOXnoY-s.cache +2 -0
  248. data/test/dummy/tmp/cache/assets/sprockets/v3.0/na/na9HIcsg_aRlojoo_GUQw1TrKZAuFwqkATTIsuUSDgM.cache +3 -0
  249. data/test/dummy/tmp/cache/assets/sprockets/v3.0/nb/NBIRRo66TCCMaz_VOanzBZhdeTSGZ41SLSTbsXXWi3A.cache +1 -0
  250. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ne/NeYz2eNTpEvETW0zARfJepu09WTR7cHjg_9uUA6I5oU.cache +0 -0
  251. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ne/nEjgWbbqbzSNsz2IJaKWjtYHm4f3BWdWwNK406fF7RI.cache +0 -0
  252. data/test/dummy/tmp/cache/assets/sprockets/v3.0/o8/o8FGnHcAPvJyNZ4TECjaiN-5Nt6dGAbcpn2reRIKWag.cache +1 -0
  253. data/test/dummy/tmp/cache/assets/sprockets/v3.0/oW/owIYqNVclB2LSRcrFFp-2jOl4tlfOc0f6Xq2Dx0v9dI.cache +1 -0
  254. data/test/dummy/tmp/cache/assets/sprockets/v3.0/of/OfLKyzyUCg3EqM4ZQd9UEE6AQbpOQ2TVOMUJ1C5iVZ8.cache +0 -0
  255. data/test/dummy/tmp/cache/assets/sprockets/v3.0/p8/p8MKmtclgS5f16Dx99GUY8a-655hIbTvDpnsbAcRoCc.cache +1 -0
  256. data/test/dummy/tmp/cache/assets/sprockets/v3.0/p8/p8wCxncMgBDQHjQLAVxyjLc-sf85CYP0_h7ieEO2IV0.cache +1 -0
  257. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pO/poZTn3m7fHSa1VqwrdmbvmtI5z0nl-14hnRetrQzJm0.cache +0 -0
  258. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pR/PRXNZCsU6eGIdBbA9Nono_aHwAUE5gcw96_NpIl9hrs.cache +1 -0
  259. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pp/ppUSOTZaTKALrYrc2u_u6abeue5bFdQ-aCd4c5BNl8s.cache +1 -0
  260. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qL/qlq6hBS8n24Hzdis_U2aEORwEiqqrcnJkd9wlALW2xA.cache +3 -0
  261. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qT/QTy6uLTP-5F4_6hKbNz0yLUFykRc_24ovgRNsJBwpYo.cache +3 -0
  262. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qf/qFwvfkz7pTXC74llUPWytZnB4pV9iz2gRd1BV-gs8ZY.cache +0 -0
  263. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ra/RAVQIh6qg-vxYwoV6kXbIpITGsUpoeWixuBf_wGter4.cache +0 -0
  264. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sK/sKbCRvnGaSPrz1cp41E8a6k46TbPEX8mtqSl9R3V3zo.cache +1 -0
  265. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sU/SUtQQ6cFgMxVkI4KCH5v5uN9QPpvCXqu4E5-3z0CKzc.cache +1 -0
  266. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sU/SuuiS2QowBvoblobDrbMZaeqoG2msFBKuYPAZoUlncM.cache +6 -0
  267. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sV/sVpPcEst6Hl9shaOvifaDBoEGH7v6o6-ndkCkEJUE0I.cache +1 -0
  268. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sd/Sdkglad6BBXGxJjhycj79RNWCG281dlErIidogHRISc.cache +1 -0
  269. data/test/dummy/tmp/cache/assets/sprockets/v3.0/se/sEogIR9sGSIPoBUIpYCZAqb_OXP8J7jz9pJz89sBd3w.cache +1 -0
  270. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sp/sp48h_0yTKVWySOGPALho5FSe59861K2rh_M7k_cN8I.cache +1 -0
  271. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sx/sXAgqLngIJbL07jFiAqqhhaGZMJyUKeqAANf6n2ZgJs.cache +1 -0
  272. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tN/tNmiToM-uCSGHmsGnEShdaJcX0H1Xy0PMBo1MjserUw.cache +0 -0
  273. data/test/dummy/tmp/cache/assets/sprockets/v3.0/to/tocSrPexcoPgPOhI_qZ4EyizXmkvFTp36JX7RbwJZMU.cache +1 -0
  274. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uH/UhwMC1k_F23KWvJXicBUTNQ8kghdhaeZuhPcl33X4Wo.cache +1 -0
  275. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ut/uTEwD4xyZWSikqyDhij9dmktPknpa9FcmId4rY6JfUc.cache +1 -0
  276. data/test/dummy/tmp/cache/assets/sprockets/v3.0/uu/uuYQ5byDS9QhMX7ypjrKAC6CPz3FmD5SXBIzkqRUPec.cache +0 -0
  277. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vK/VKvfc-JiRqt3kmGu62nTJT7dXdzeohMM1Ie_s3Bo-j4.cache +1 -0
  278. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vd/vdL2sBqFvLViWF0C8iVc2cIwddJwQefRtSnEVv3dUDk.cache +0 -0
  279. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vn/vnCOXRXnilToucdr1_WTBLWD05vYTyOqiXP8TSuHxz0.cache +1 -0
  280. data/test/dummy/tmp/cache/assets/sprockets/v3.0/vu/VuTEQdfRB4XYfpQfVcw6iM0woBGHp0j2Elf4qL3FPtw.cache +0 -0
  281. data/test/dummy/tmp/cache/assets/sprockets/v3.0/w9/w9hviII7hgGgrQVlfKV0q0kny7gvf1eR2FErY1CtxGM.cache +0 -0
  282. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ww/wwo2zG9iBp2OS0mRV5G6tcQiAg4wE55b9TjVzz8GHzA.cache +1 -0
  283. data/test/dummy/tmp/cache/assets/sprockets/v3.0/x1/x1SGDtBvr3i4nB7ymYUx-6DHqigEPJVBA46nuKKW_V4.cache +1 -0
  284. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xY/xYxc3hZ9JFCn2gGfw9dar5yK6Rf3Zgp3j0jCXyD6ROQ.cache +1 -0
  285. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xj/xJJ7RAF7eFv-3SoFW-6s7QWXbCkIBgM5GADh0J-4tMA.cache +0 -0
  286. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xr/xRJAdh9qREVpYI0lKJ8QyHiBCBKpZb9jZHTDOPTLpJ8.cache +0 -0
  287. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xt/XtyCNmdXcT3C5XqJiAVSEZgwgGp1TS9paIHNKtMGhzE.cache +0 -0
  288. data/test/dummy/tmp/cache/assets/sprockets/v3.0/y2/y22768G4I6CGTbX9inWsq6xeTZ-4iQbZX0RtznBWVX8.cache +0 -0
  289. data/test/dummy/tmp/cache/assets/sprockets/v3.0/y5/y5z31NtfXJz0XM_buzgQu7yrP9kjm-Jasr3C44TT_8k.cache +0 -0
  290. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yb/YBVM2T9viNMRKI5ZKvlCE006wecl64SR4KOX96xuZJ8.cache +1 -0
  291. data/test/dummy/tmp/cache/assets/sprockets/v3.0/yb/ybSiEfjYaFpA0Fv_N94MMKDPXutOf1k6DftTkjJjZ2w.cache +1 -0
  292. data/test/dummy/tmp/cache/assets/sprockets/v3.0/z0/z0glTNN5nzAijFifhE3UBctiXy3VU4PfLzlxFXzg9Z8.cache +2 -0
  293. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zV/zVVfKj8DgJNloMWP4Hu3tw3_fhwB0dMt7bGVZ3HP7ko.cache +6 -0
  294. data/test/dummy/tmp/cache/assets/sprockets/v3.0/zt/ZT3VjgaG95xiVCIbCzYzRtgUDJd5CMBOZsyLU2NgJ5I.cache +0 -0
  295. data/test/fixtures/guts/navigation_items.yml +3 -3
  296. metadata +539 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ebd28095fc97a22a4de4b78ea0f91540ca8ad41
4
- data.tar.gz: f1d6f6126e1b67fe3777f24b27a7da0ba3679d53
3
+ metadata.gz: b7b4c7de67e67a75f5f5426d6b239163120d8e9e
4
+ data.tar.gz: 6e385290b8d461987e65f287d4cfa358f9dde625
5
5
  SHA512:
6
- metadata.gz: fb94a7714a4d0b3d8c1cfddbfaa9fda072cd4e9a9cef7405f34b0c5b61bf5b3108c5fb618b26994b9746d1d8737723f50fccf735eec6217cc8c1839e72998a91
7
- data.tar.gz: 77d6c306916992e32d71b6cb284a1527a7831276105a4dce2e055e4ecbbb6f05b882aaa30e2266dfc60faa58099d8002274187c9c7ce09e507c255d060a08a6f
6
+ metadata.gz: a5cb35511239bd243e9ee8b900a1bb854692bb004dd701adfad09f8d94941297968f80104558128246820c905f498b59dd9af013977db65f0eec681c96a54bee
7
+ data.tar.gz: 44cf2b8af0889687c6746cb6347ed37fdf71b4f1f862180c2ca85e4dc301ebc2ef4950c78c794c040b9f7237b9868f00c39a1b8683f8db88a36a0eb8f05e7da0
@@ -1,3 +1,8 @@
1
+ # Version 1.3.5
2
+
3
+ + Added ENV var for TravisCI to surpress unneeded Ruby warnings
4
+ + Sortable navigation items is now in place (drag and drop to reorder)
5
+
1
6
  # Version 1.3.4
2
7
 
3
8
  + Fix for issue #3 where navigation items were showing wrong results
@@ -2,40 +2,53 @@
2
2
  //= require ./vendor/foundation
3
3
  //= require ./vendor/handlebars
4
4
  //= require ./vendor/sweetalert
5
+ //= require ./vendor/sortable
5
6
  //= require tinymce-jquery
6
7
  //= require_directory .
7
8
 
9
+ (function() {
10
+ var token = $('meta[name="csrf-token"]').attr('content');
11
+
12
+ $.ajaxSetup({
13
+ beforeSend: function(xhr) {
14
+ xhr.setRequestHeader('X-CSRF-Token', token);
15
+ }
16
+ });
17
+
18
+ return token;
19
+ })();
20
+
8
21
  jQuery(document).foundation();
9
22
 
10
23
  jQuery(document).ready(function($) {
11
- $("#menu-toggle").click(function(e) {
24
+ $('#menu-toggle').click(function(e) {
12
25
  e.preventDefault();
13
- $("#wrapper").toggleClass("toggled");
26
+ $('#wrapper').toggleClass('toggled');
14
27
 
15
- if ($("#wrapper").hasClass("toggled")) {
16
- $(this).find("i").removeClass("fa-angle-left");
17
- $(this).find("i").addClass("fa-angle-right");
28
+ if ($('#wrapper').hasClass('toggled')) {
29
+ $(this).find('i').removeClass('fa-angle-left');
30
+ $(this).find('i').addClass('fa-angle-right');
18
31
  } else {
19
- $(this).find("i").removeClass("fa-angle-right");
20
- $(this).find("i").addClass("fa-angle-left");
32
+ $(this).find('i').removeClass('fa-angle-right');
33
+ $(this).find('i').addClass('fa-angle-left');
21
34
  }
22
35
  });
23
-
24
- $(".destroy_resource").on("click", function(e) {
36
+
37
+ $('.destroy_resource').on('click', function(e) {
25
38
  e.preventDefault();
26
-
39
+
27
40
  $that = $(this);
28
-
41
+
29
42
  swal({
30
- title: "Are you sure?",
31
- text: "You will not be able to recover this after deleting...",
32
- type: "warning",
43
+ title: 'Are you sure?',
44
+ text: 'You will not be able to recover this after deleting...',
45
+ type: 'warning',
33
46
  showCancelButton: true,
34
- confirmButtonColor: "#DD6B55",
35
- confirmButtonText: "Yes, delete it!",
47
+ confirmButtonColor: '#DD6B55',
48
+ confirmButtonText: 'Yes, delete it!',
36
49
  closeOnConfirm: true
37
50
  }, function() {
38
- $that.parent().find("form").trigger("submit");
51
+ $that.parent().find('form').trigger('submit');
39
52
  });
40
53
  });
41
54
  });
@@ -1,53 +1,53 @@
1
1
  jQuery(document).ready(function($) {
2
- $(".media_add").on("click", function() {
2
+ $('.media_add').on('click', function() {
3
3
  $(this).remove();
4
- $(".media_add_new").show();
4
+ $('.media_add_new').show();
5
5
  });
6
-
7
- $(".media_destroy").on("click", function(e) {
6
+
7
+ $('.media_destroy').on('click', function(e) {
8
8
  e.preventDefault();
9
-
9
+
10
10
  var $that = $(this);
11
-
11
+
12
12
  swal({
13
- title: "Are you sure?",
14
- text: "You will not be able to recover this attachment after deletion.",
15
- type: "warning",
13
+ title: 'Are you sure?',
14
+ text: 'You will not be able to recover this attachment after deletion.',
15
+ type: 'warning',
16
16
  showCancelButton: true,
17
- confirmButtonColor: "#DD6B55",
18
- confirmButtonText: "Yes, delete it!",
17
+ confirmButtonColor: '#DD6B55',
18
+ confirmButtonText: 'Yes, delete it!',
19
19
  closeOnConfirm: false
20
20
  }, function() {
21
21
  swal.close();
22
-
23
- $that.parents(".media_block").find("input[type=checkbox]").trigger("click");
24
- $that.parents(".media_block").fadeOut("slow");
22
+
23
+ $that.parents('.media_block').find('input[type=checkbox]').trigger('click');
24
+ $that.parents('.media_block').fadeOut('slow');
25
25
  });
26
26
  });
27
-
27
+
28
28
  if (window.top.tinymce && window.top != window) {
29
- $(".media_insert").css("display", "inline");
30
-
31
- $(document).on("click", "#media_insert_size", function() {
32
- var size = $(this).parent().find("select").val();
33
- var file = $(this).parent().find("#media_insert_file_link");
34
-
29
+ $('.media_insert').css('display', 'inline');
30
+
31
+ $(document).on('click', '#media_insert_size', function() {
32
+ var size = $(this).parent().find('select').val();
33
+ var file = $(this).parent().find('#media_insert_file_link');
34
+
35
35
  var editor = window.top.tinymce.editors[0];
36
- editor.insertContent('<img src="'+file.val().replace("original", size)+'" alt="Image">');
36
+ editor.insertContent('<img src="'+file.val().replace('original', size)+'" alt="Image">');
37
37
  editor.windowManager.close();
38
38
  });
39
-
40
- $(".media_insert").on("click", function(e) {
39
+
40
+ $('.media_insert').on('click', function(e) {
41
41
  e.preventDefault();
42
42
 
43
- if ($(this).data("type").indexOf("image") != -1) {
44
- var modal = $("#media_insert_modal");
45
- $.get($(this).attr("href"), function(resp) { modal.html(resp).foundation("open"); });
43
+ if ($(this).data('type').indexOf('image') != -1) {
44
+ var modal = $('#media_insert_modal');
45
+ $.get($(this).attr('href'), function(resp) { modal.html(resp).foundation('open'); });
46
46
  } else {
47
47
  var editor = window.top.tinymce.editors[0];
48
- editor.insertContent('<a href="'+$(this).data("url")+'" target="_blank">'+$(this).data("title")+'</a>');
48
+ editor.insertContent('<a href="'+$(this).data('url')+'" target="_blank">'+$(this).data('title')+'</a>');
49
49
  editor.windowManager.close();
50
50
  }
51
51
  })
52
52
  }
53
- });
53
+ });
@@ -1,44 +1,59 @@
1
1
  jQuery(document).ready(function($) {
2
- if ($("body").attr("id").indexOf("guts_navigation_items") == -1) { return; }
3
-
4
- $(window).on("load", function() {
5
- if ($("body").attr("id").indexOf("guts_navigation_items_edit") == -1) { return; }
6
-
2
+ if ($('body').attr('id').indexOf('guts_navigation') == -1) { return; }
3
+
4
+ $(window).on('load', function() {
5
+ if ($('body').attr('id').indexOf('guts_navigation_items_edit') == -1) { return; }
6
+
7
7
  // Trigger change for edit to run
8
- $("#navigation_item_navigatable_type").trigger("change");
8
+ $('#navigation_item_navigatable_type').trigger('change');
9
9
  });
10
-
11
- $("#navigation_item_navigatable_type").on("change", function() {
10
+
11
+ $('#navigation_item_navigatable_type').on('change', function() {
12
12
  var value = $(this).val();
13
- if (value === "") {
13
+ if (value === '') {
14
14
  // Show custom entry
15
- $("#navigation_item_navigatable_id").html("").hide();
16
- $("#navigation_item_custom").show();
15
+ $('#navigation_item_navigatable_id').html('').hide();
16
+ $('#navigation_item_custom').show();
17
17
  } else {
18
18
  // Show dynamic navigatable entries
19
- $("#navigation_item_navigatable_id").html("").show();
20
- $("#navigation_item_custom").hide();
19
+ $('#navigation_item_navigatable_id').html('').show();
20
+ $('#navigation_item_custom').hide();
21
21
 
22
22
  $.ajax({
23
- url: $(this).data("callback-url"),
23
+ url: $(this).data('callback-url'),
24
24
  data: {model: $(this).val()},
25
- dataType: "json",
25
+ dataType: 'json',
26
26
  }).done(function(data) {
27
27
  $.each(data, function() {
28
28
  // Populate the navigatable objects
29
- $("#navigation_item_navigatable_id").append('<option value="'+this.id+'">'+this.format+'</option>');
29
+ $('#navigation_item_navigatable_id').append('<option value="'+this.id+'">'+this.format+'</option>');
30
30
  });
31
-
32
- var initial = $("#navigation_item_navigatable_id").data("initial");
31
+
32
+ var initial = $('#navigation_item_navigatable_id').data('initial');
33
33
  if (initial) {
34
34
  // Edit screen, re-select the initial after the AJAX call
35
- $("#navigation_item_navigatable_id option").each(function() {
35
+ $('#navigation_item_navigatable_id option').each(function() {
36
36
  if ($(this).val() == initial) {
37
- $("#navigation_item_navigatable_id").val($(this).val()).trigger("change");
37
+ $('#navigation_item_navigatable_id').val($(this).val()).trigger('change');
38
38
  }
39
39
  });
40
40
  }
41
41
  });
42
42
  }
43
43
  });
44
- });
44
+
45
+ $('.sortable').each(function() {
46
+ var url = $(this).data('url');
47
+ var target = this;
48
+
49
+ Sortable.create(target, {
50
+ handle: '.handle',
51
+ onEnd: function() {
52
+ var ids = { };
53
+ $(target).find('.item').each(function() { ids[$(this).index()] = $(this).data('id'); });
54
+
55
+ $.post(url, { order: ids });
56
+ }
57
+ });
58
+ });
59
+ });
@@ -0,0 +1,2 @@
1
+ /*! Sortable 1.4.2 - MIT | git://github.com/rubaxa/Sortable.git */
2
+ !function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=s({},b),a[M]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var d in c)!(d in b)&&(b[d]=c[d]);W(b);for(var f in this)"_"===f.charAt(0)&&(this[f]=this[f].bind(this));this.nativeDraggable=b.forceFallback?!1:Q,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),U.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){w&&w.state!==a&&(h(w,"display",a?"none":""),!a&&w.state&&x.insertBefore(w,t),w.state=a)}function c(a,b,c){if(a){c=c||O;do if(">*"===b&&a.parentNode===c||q(a,b))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(L," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(L," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return O.defaultView&&O.defaultView.getComputedStyle?c=O.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;f>e;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){var h=O.createEvent("Event"),i=(a||b[M]).options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=w,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f){var g,h,i=a[M],j=i.options.onMove;return g=O.createEvent("Event"),g.initEvent("move",!0,!0),g.to=b,g.from=a,g.dragged=c,g.draggedRect=d,g.related=e||b,g.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(g),j&&(h=j.call(i,g)),h}function l(a){a.draggable=!1}function m(){S=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a,b){var c=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"!==a.nodeName.toUpperCase()&&q(a,b)&&c++;return c}function q(a,b){if(a){b=b.split(".");var c=b.shift().toUpperCase(),d=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");return!(""!==c&&a.nodeName.toUpperCase()!=c||b.length&&((" "+a.className+" ").match(d)||[]).length!=b.length)}return!1}function r(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function s(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}if("undefined"==typeof window||"undefined"==typeof window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K={},L=/\s+/g,M="Sortable"+(new Date).getTime(),N=window,O=N.document,P=N.parseInt,Q=!!("draggable"in O.createElement("div")),R=function(a){return a=O.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),S=!1,T=Math.abs,U=([].slice,[]),V=r(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h=b.scrollSensitivity,i=b.scrollSpeed,j=a.clientX,k=a.clientY,l=window.innerWidth,m=window.innerHeight;if(A!==c&&(z=b.scroll,A=c,z===!0)){z=c;do if(z.offsetWidth<z.scrollWidth||z.offsetHeight<z.scrollHeight)break;while(z=z.parentNode)}z&&(d=z,e=z.getBoundingClientRect(),f=(T(e.right-j)<=h)-(T(e.left-j)<=h),g=(T(e.bottom-k)<=h)-(T(e.top-k)<=h)),f||g||(f=(h>=l-j)-(h>=j),g=(h>=m-k)-(h>=k),(f||g)&&(d=N)),(K.vx!==f||K.vy!==g||K.el!==d)&&(K.el=d,K.vx=f,K.vy=g,clearInterval(K.pid),d&&(K.pid=setInterval(function(){d===N?N.scrollTo(N.pageXOffset+f*i,N.pageYOffset+g*i):(g&&(d.scrollTop+=g*i),f&&(d.scrollLeft+=f*i))},24)))}},30),W=function(a){var b=a.group;b&&"object"==typeof b||(b=a.group={name:b}),["pull","put"].forEach(function(a){a in b||(b[a]=!0)}),a.groups=" "+b.name+(b.put.join?" "+b.put.join(" "):"")+" "};return a.prototype={constructor:a,_onTapStart:function(a){var b=this,d=this.el,e=this.options,f=a.type,g=a.touches&&a.touches[0],h=(g||a).target,i=h,k=e.filter;if(!("mousedown"===f&&0!==a.button||e.disabled)&&(h=c(h,e.draggable,d))){if(E=p(h,e.draggable),"function"==typeof k){if(k.call(this,a,h,this))return j(b,i,"filter",h,d,E),void a.preventDefault()}else if(k&&(k=k.split(",").some(function(a){return a=c(i,a.trim(),d),a?(j(b,a,"filter",h,d,E),!0):void 0})))return void a.preventDefault();(!e.handle||c(i,e.handle,d))&&this._prepareDragStart(a,g,h)}},_prepareDragStart:function(a,b,c){var d,f=this,h=f.el,j=f.options,k=h.ownerDocument;c&&!t&&c.parentNode===h&&(H=a,x=h,t=c,u=t.parentNode,y=t.nextSibling,G=j.group,d=function(){f._disableDelayedDrag(),t.draggable=!0,g(t,f.options.chosenClass,!0),f._triggerDragStart(b)},j.ignore.split(",").forEach(function(a){i(t,a.trim(),l)}),e(k,"mouseup",f._onDrop),e(k,"touchend",f._onDrop),e(k,"touchcancel",f._onDrop),j.delay?(e(k,"mouseup",f._disableDelayedDrag),e(k,"touchend",f._disableDelayedDrag),e(k,"touchcancel",f._disableDelayedDrag),e(k,"mousemove",f._disableDelayedDrag),e(k,"touchmove",f._disableDelayedDrag),f._dragStartTimer=setTimeout(d,j.delay)):d())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(H={target:t,clientX:a.clientX,clientY:a.clientY},this._onDragStart(H,"touch")):this.nativeDraggable?(e(t,"dragend",this),e(x,"dragstart",this._onDragStart)):this._onDragStart(H,!0);try{O.selection?setTimeout(function(){O.selection.empty()}):window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){x&&t&&(g(t,this.options.ghostClass,!0),a.active=this,j(this,x,"start",t,x,E))},_emulateDragOver:function(){if(I){if(this._lastX===I.clientX&&this._lastY===I.clientY)return;this._lastX=I.clientX,this._lastY=I.clientY,R||h(v,"display","none");var a=O.elementFromPoint(I.clientX,I.clientY),b=a,c=" "+this.options.group.name,d=U.length;if(b)do{if(b[M]&&b[M].options.groups.indexOf(c)>-1){for(;d--;)U[d]({clientX:I.clientX,clientY:I.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);R||h(v,"display","")}},_onTouchMove:function(b){if(H){a.active||this._dragStarted(),this._appendGhost();var c=b.touches?b.touches[0]:b,d=c.clientX-H.clientX,e=c.clientY-H.clientY,f=b.touches?"translate3d("+d+"px,"+e+"px,0)":"translate("+d+"px,"+e+"px)";J=!0,I=c,h(v,"webkitTransform",f),h(v,"mozTransform",f),h(v,"msTransform",f),h(v,"transform",f),b.preventDefault()}},_appendGhost:function(){if(!v){var a,b=t.getBoundingClientRect(),c=h(t),d=this.options;v=t.cloneNode(!0),g(v,d.ghostClass,!1),g(v,d.fallbackClass,!0),h(v,"top",b.top-P(c.marginTop,10)),h(v,"left",b.left-P(c.marginLeft,10)),h(v,"width",b.width),h(v,"height",b.height),h(v,"opacity","0.8"),h(v,"position","fixed"),h(v,"zIndex","100000"),h(v,"pointerEvents","none"),d.fallbackOnBody&&O.body.appendChild(v)||x.appendChild(v),a=v.getBoundingClientRect(),h(v,"width",2*b.width-a.width),h(v,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==G.pull&&(w=t.cloneNode(!0),h(w,"display","none"),x.insertBefore(w,t)),b?("touch"===b?(e(O,"touchmove",this._onTouchMove),e(O,"touchend",this._onDrop),e(O,"touchcancel",this._onDrop)):(e(O,"mousemove",this._onTouchMove),e(O,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,t)),e(O,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(a){var d,e,f,g=this.el,i=this.options,j=i.group,l=j.put,o=G===j,p=i.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!i.dragoverBubble&&a.stopPropagation()),J=!0,G&&!i.disabled&&(o?p||(f=!x.contains(t)):G.pull&&l&&(G.name===j.name||l.indexOf&&~l.indexOf(G.name)))&&(void 0===a.rootEl||a.rootEl===this.el)){if(V(a,i,this.el),S)return;if(d=c(a.target,i.draggable,g),e=t.getBoundingClientRect(),f)return b(!0),void(w||y?x.insertBefore(t,w||y):p||x.appendChild(t));if(0===g.children.length||g.children[0]===v||g===a.target&&(d=n(g,a))){if(d){if(d.animated)return;r=d.getBoundingClientRect()}b(o),k(x,g,t,e,d,r)!==!1&&(t.contains(g)||(g.appendChild(t),u=g),this._animate(e,t),d&&this._animate(r,d))}else if(d&&!d.animated&&d!==t&&void 0!==d.parentNode[M]){B!==d&&(B=d,C=h(d),D=h(d.parentNode));var q,r=d.getBoundingClientRect(),s=r.right-r.left,z=r.bottom-r.top,A=/left|right|inline/.test(C.cssFloat+C.display)||"flex"==D.display&&0===D["flex-direction"].indexOf("row"),E=d.offsetWidth>t.offsetWidth,F=d.offsetHeight>t.offsetHeight,H=(A?(a.clientX-r.left)/s:(a.clientY-r.top)/z)>.5,I=d.nextElementSibling,K=k(x,g,t,e,d,r);if(K!==!1){if(S=!0,setTimeout(m,30),b(o),1===K||-1===K)q=1===K;else if(A){var L=t.offsetTop,N=d.offsetTop;q=L===N?d.previousElementSibling===t&&!E||H&&E:N>L}else q=I!==t&&!F||H&&F;t.contains(g)||(q&&!I?g.appendChild(t):d.parentNode.insertBefore(t,q?I:d)),u=t.parentNode,this._animate(e,t),this._animate(r,d)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(O,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(K.pid),clearTimeout(this._dragStartTimer),f(O,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(O,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(J&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),v&&v.parentNode.removeChild(v),t&&(this.nativeDraggable&&f(t,"dragend",this),l(t),g(t,this.options.ghostClass,!1),g(t,this.options.chosenClass,!1),x!==u?(F=p(t,d.draggable),F>=0&&(j(null,u,"sort",t,x,E,F),j(this,x,"sort",t,x,E,F),j(null,u,"add",t,x,E,F),j(this,x,"remove",t,x,E,F))):(w&&w.parentNode.removeChild(w),t.nextSibling!==y&&(F=p(t,d.draggable),F>=0&&(j(this,x,"update",t,x,E,F),j(this,x,"sort",t,x,E,F)))),a.active&&((null==F||-1===F)&&(F=E),j(this,x,"end",t,x,E,F),this.save()))),this._nulling()},_nulling:function(){a.active===this&&(x=t=u=v=y=w=z=A=H=I=J=F=B=C=G=a.active=null)},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?t&&(this._onDragOver(a),d(a)):("drop"===b||"dragend"===b)&&this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;f>e;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&W(c)))},destroy:function(){var a=this.el;a[M]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),U.splice(U.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:s,throttle:r,closest:c,toggleClass:g,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.4.2",a});
@@ -241,11 +241,29 @@ textarea.tinymce {
241
241
  }
242
242
 
243
243
  /* Navigation */
244
- .nav_block .callout ul {
245
- list-style: none;
244
+ .nav_block {
245
+ .callout ul {
246
+ list-style: none;
246
247
 
247
- li {
248
- padding: 0.3rem 0;
248
+ li {
249
+ padding: 0.3rem 0;
250
+ }
251
+ }
252
+
253
+ .action_links {
254
+ float: right;
255
+ }
256
+ }
257
+
258
+ .sortable {
259
+ .handle {
260
+ margin-right: 5px;
261
+ cursor: move;
262
+ }
263
+
264
+ .sortable-ghost,
265
+ .sortable-chosen {
266
+ opacity: 0.4;
249
267
  }
250
268
  }
251
269
 
@@ -3,7 +3,7 @@ require_dependency 'guts/application_controller'
3
3
  module Guts
4
4
  # Navigations ontroller
5
5
  class NavigationsController < ApplicationController
6
- before_action :set_navigation, only: [:show, :edit, :update, :destroy]
6
+ before_action :set_navigation, only: [:show, :edit, :update, :destroy, :reorder]
7
7
 
8
8
  # Displays a list of navigations
9
9
  def index
@@ -51,13 +51,26 @@ module Guts
51
51
  # @note Redirects to #index on success
52
52
  def destroy
53
53
  @navigation.destroy
54
-
54
+
55
55
  flash[:notice] = 'Navigation was successfully destroyed.'
56
56
  redirect_to navigations_path
57
57
  end
58
58
 
59
+ # Updates sorting for a navigation
60
+ # @note This is an AJAX call
61
+ def reorder
62
+ ActiveRecord::Base.transaction do
63
+ @navigation.navigation_items.each do |item|
64
+ find = params[:order].find { |k, v| v == item.id.to_s }
65
+ item.update_attribute(:position, find[0].to_i)
66
+ end
67
+ end
68
+
69
+ render nothing: true, status: :ok
70
+ end
71
+
59
72
  private
60
-
73
+
61
74
  # Sets a navigation from the database using `id` param
62
75
  # @note This is a `before_action` callback
63
76
  # @private
@@ -2,19 +2,32 @@ module Guts
2
2
  # Navigation item model
3
3
  class NavigationItem < ActiveRecord::Base
4
4
  include MultisiteScopeConcern
5
-
5
+
6
+ before_create :set_position
7
+
6
8
  validates :title, presence: true
7
-
9
+
8
10
  belongs_to :site
9
11
  belongs_to :navigation
10
12
  belongs_to :navigatable, polymorphic: true, required: false
11
13
  has_many :media, as: :filable, dependent: :destroy
12
14
  has_many :metafields, as: :fieldable, dependent: :destroy
13
-
15
+
16
+ default_scope { order(position: :asc) }
17
+
14
18
  # Determines if the navigation item has a custom link
15
19
  # @return [Boolean]
16
20
  def custom?
17
21
  self[:navigatable_type].nil? || self[:navigatable_type].empty?
18
22
  end
23
+
24
+ private
25
+
26
+ # Sets the position (ordering) for a navigation item before creation
27
+ def set_position
28
+ max_position = Navigation.find(self[:navigation_id]).navigation_items.maximum(:position) || -1
29
+
30
+ self[:position] = max_position + 1
31
+ end
19
32
  end
20
33
  end
@@ -20,10 +20,10 @@
20
20
  <div class="small-12 columns">
21
21
  <% if @navigation_items.size > 0 %>
22
22
  <table>
23
- <tbody>
23
+ <tbody class="sortable" data-url="<%= reorder_navigation_path @navigation %>">
24
24
  <% @navigation_items.each do |navigation_item| %>
25
- <tr>
26
- <td><%= navigation_item.title %></td>
25
+ <tr class="item" data-id="<%= navigation_item.id %>">
26
+ <td><i class="handle fa fa-reorder"></i> <%= navigation_item.title %></td>
27
27
  <td>
28
28
  <small>
29
29
  to: <%= navigation_item.custom? ? 'Custom' : navigation_item.navigatable.navigatable_format %> <%= "(#{navigation_item.custom})" if navigation_item.custom? %>
@@ -26,10 +26,11 @@
26
26
  <%= link_to 'Edit', edit_navigation_path(navigation), { class: 'warning button' } %>
27
27
  <%= link_to_destroy 'Destroy', navigation, { class: 'alert button' } %>
28
28
  </div>
29
- <ul>
29
+ <ul class="sortable" data-url="<%= reorder_navigation_path navigation %>">
30
30
  <% if navigation.navigation_items.size > 0 %>
31
31
  <% navigation.navigation_items.each do |item| %>
32
- <li>
32
+ <li class="item" data-id="<%= item.id %>">
33
+ <i class="handle fa fa-reorder"></i>
33
34
  <%= item.title %>&nbsp;&nbsp;&mdash;&gt;&nbsp;&nbsp;<%= item.custom? ? 'Custom' : item.navigatable.navigatable_format %> <%= "to: #{item.custom}" if item.custom? %>
34
35
  <div class="action_links">
35
36
  <%= link_to 'Edit', edit_navigation_navigation_item_path(navigation, item) %>
@@ -2,85 +2,87 @@ Guts::Engine.routes.draw do
2
2
  # Master concerns... everything can have a metafield and file attached to it
3
3
  concern(:fieldable) {|opts| resources :metafields, opts}
4
4
  concern(:filable) {|opts| resources :media, opts}
5
-
5
+
6
6
  # Resources and routes
7
- get "/", to: "users#index"
8
-
7
+ get '/', to: 'users#index'
8
+
9
9
  # Sites
10
10
  resources :sites do
11
11
  get :set_default, on: :member
12
12
  get :remove_default, on: :member
13
13
  end
14
-
14
+
15
15
  # Media
16
16
  resources :media do
17
17
  get :editor_insert, on: :member
18
18
  end
19
-
19
+
20
20
  # Users
21
21
  resources :users do
22
- concerns :fieldable, fieldable_type: "Guts::User"
23
- concerns :filable, filable_type: "Guts::User"
24
-
22
+ concerns :fieldable, fieldable_type: 'Guts::User'
23
+ concerns :filable, filable_type: 'Guts::User'
24
+
25
25
  match :switch_user, on: :collection, via: [:get, :post]
26
26
  end
27
-
27
+
28
28
  # Groups
29
29
  resources :groups do
30
- concerns :fieldable, fieldable_type: "Guts::Group"
31
- concerns :filable, filable_type: "Guts::Group"
30
+ concerns :fieldable, fieldable_type: 'Guts::Group'
31
+ concerns :filable, filable_type: 'Guts::Group'
32
32
  end
33
-
33
+
34
34
  # Categories
35
35
  resources :categories do
36
- concerns :fieldable, fieldable_type: "Guts::Category"
37
- concerns :filable, filable_type: "Guts::Category"
36
+ concerns :fieldable, fieldable_type: 'Guts::Category'
37
+ concerns :filable, filable_type: 'Guts::Category'
38
38
  end
39
-
39
+
40
40
  # Types
41
41
  resources :types do
42
- concerns :fieldable, fieldable_type: "Guts::Type"
43
- concerns :filable, filable_type: "Guts::Type"
42
+ concerns :fieldable, fieldable_type: 'Guts::Type'
43
+ concerns :filable, filable_type: 'Guts::Type'
44
44
  end
45
-
45
+
46
46
  # Contents
47
47
  resources :contents do
48
- concerns :fieldable, fieldable_type: "Guts::Content"
49
- concerns :filable, filable_type: "Guts::Content"
48
+ concerns :fieldable, fieldable_type: 'Guts::Content'
49
+ concerns :filable, filable_type: 'Guts::Content'
50
50
  end
51
-
51
+
52
52
  # Navigations
53
53
  resources :navigations do
54
- concerns :fieldable, fieldable_type: "Guts::Navigation"
55
- concerns :filable, filable_type: "Guts::Navigation"
56
-
54
+ concerns :fieldable, fieldable_type: 'Guts::Navigation'
55
+ concerns :filable, filable_type: 'Guts::Navigation'
56
+
57
57
  resources :navigation_items, path: :items do
58
- concerns :fieldable, fieldable_type: "Guts::NavigationItem"
59
- concerns :filable, filable_type: "Guts::NavigationItem"
58
+ concerns :fieldable, fieldable_type: 'Guts::NavigationItem'
59
+ concerns :filable, filable_type: 'Guts::NavigationItem'
60
60
  end
61
+
62
+ post '/reorder', to: 'navigations#reorder', on: :member
61
63
  end
62
-
64
+
63
65
  # Navigation Items
64
66
  resources :navigation_items do
65
- concerns :fieldable, fieldable_type: "Guts::NavigationItem"
66
- concerns :filable, filable_type: "Guts::NavigationItem"
67
-
67
+ concerns :fieldable, fieldable_type: 'Guts::NavigationItem'
68
+ concerns :filable, filable_type: 'Guts::NavigationItem'
69
+
68
70
  get :navigatable_objects, on: :collection
69
71
  end
70
-
72
+
71
73
  # Options
72
74
  resources :options
73
-
75
+
74
76
  # Session
75
77
  scope :session do
76
- get :login, to: "sessions#new", as: :new_session
77
- post :login, to: "sessions#create", as: :create_session
78
- get :logout, to: "sessions#destroy", as: :destroy_session
79
- get :forgot, to: "sessions#forgot", as: :forgot_session
80
- post :forgot_token, to: "sessions#forgot_token", as: :forgot_token_session
81
- get "/reset_password/:token", to: "sessions#reset_password", as: :reset_password_session
78
+ get :login, to: 'sessions#new', as: :new_session
79
+ post :login, to: 'sessions#create', as: :create_session
80
+ get :logout, to: 'sessions#destroy', as: :destroy_session
81
+ get :forgot, to: 'sessions#forgot', as: :forgot_session
82
+ post :forgot_token, to: 'sessions#forgot_token', as: :forgot_token_session
83
+ get '/reset_password/:token', to: 'sessions#reset_password', as: :reset_password_session
82
84
  end
83
-
85
+
84
86
  # Tracker/Log
85
- get :trackers, to: "trackers#index"
87
+ get :trackers, to: 'trackers#index'
86
88
  end