acts_as_talented 0.0.4.2 → 0.0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/acts_as_talented/application.js +0 -30
  3. data/app/assets/stylesheets/acts_as_talented/application.css +0 -8
  4. data/app/controllers/acts_as_talented/api/v1/employers_controller.rb +5 -4
  5. data/app/models/acts_as_talented/employer.rb +3 -1
  6. data/app/views/acts_as_talented/dashboard/index.html.erb +8 -5
  7. data/app/views/layouts/acts_as_talented/application.html.erb +1 -0
  8. data/config/routes.rb +2 -1
  9. data/db/migrate/20141107062154_add_columns_to_employers.rb +9 -0
  10. data/lib/acts_as_talented.rb +1 -0
  11. data/lib/acts_as_talented/version.rb +1 -1
  12. data/spec/dummy/db/schema.rb +6 -1
  13. data/spec/dummy/log/development.log +51760 -0
  14. data/spec/dummy/log/test.log +11 -0
  15. data/spec/dummy/spec/javascripts/support/jasmine.yml +53 -0
  16. data/spec/dummy/tmp/cache/assets/development/sprockets/068a932f5302f087d18f796a34b688c7 +0 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/07c4b0cfd96049f24135e9f6dff29f46 +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/08de8559763f49a4e08211e2320631d8 +0 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/09e6dd0ca61308cab2f5c8ec8356428e +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/0edb4e13d90cd2916110d008a4aed4e2 +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/0f62369234882ebed9e3c611a8f0df1f +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/106595e9b0ab07ac7c1f2002522503f6 +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/1111c6a1f164a68a794109047889caea +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/111e99492298cd12e854ae3ff07ced0a +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/12335341702dcc2d2fbd12e3ac90a38c +0 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/1258604b33f0f01fa2d26819e35b5e0a +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/135a17dc943d9e39cc59e6031c3d0455 +0 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/140cd948f5bdb4864803398ee3f3aca7 +0 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/1454ee3b944f31b9c2cc84f38e162dd1 +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/1a8c448606b78273ad328d1899c33ae9 +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/1b3350da8a329c6c0c758fafb0aff5e4 +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/1cb8e7dfe8907ddb98fa45d12f8eff25 +0 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/1d8a9e15103e24daea804ca7410ae4af +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/1dd00aa981c4b38e57814be892fdfb89 +0 -0
  35. data/spec/dummy/tmp/cache/assets/development/sprockets/1e5ad5c32d9c712d7eeaccb80ece0d10 +0 -0
  36. data/spec/dummy/tmp/cache/assets/development/sprockets/21c55eefdc2e081bf9f8b7d31214f967 +0 -0
  37. data/spec/dummy/tmp/cache/assets/development/sprockets/22a89e8ea96c6fda993bd522c7aa6320 +0 -0
  38. data/spec/dummy/tmp/cache/assets/development/sprockets/243c4cdd16d11a250e710ceeebc9074c +0 -0
  39. data/spec/dummy/tmp/cache/assets/development/sprockets/25ba9f10af6fdf34cb2a3c91a340afb1 +0 -0
  40. data/spec/dummy/tmp/cache/assets/development/sprockets/270b82cb0784a4a646b86dc12923d85d +0 -0
  41. data/spec/dummy/tmp/cache/assets/development/sprockets/280ea9aac357f4b47b53987c4e1269f7 +0 -0
  42. data/spec/dummy/tmp/cache/assets/development/sprockets/29b2743b9c2f222de8a071b428d98338 +0 -0
  43. data/spec/dummy/tmp/cache/assets/development/sprockets/2c436e162c59dea18e241905eff96be9 +0 -0
  44. data/spec/dummy/tmp/cache/assets/development/sprockets/2efdb24c7e7bcdc6c37bf134fcf4acae +0 -0
  45. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  46. data/spec/dummy/tmp/cache/assets/development/sprockets/2f8f7aed987e676b70895409c974a775 +0 -0
  47. data/spec/dummy/tmp/cache/assets/development/sprockets/32ee5249d6e3673753a4b1b0428f4c2a +0 -0
  48. data/spec/dummy/tmp/cache/assets/development/sprockets/3515de67328463ac00a6f0d79ae7d3f3 +0 -0
  49. data/spec/dummy/tmp/cache/assets/development/sprockets/35a1a70a8742b40481bcf753cf29445a +0 -0
  50. data/spec/dummy/tmp/cache/assets/development/sprockets/382cdf6ef682a94f702d2d6bb9164f35 +0 -0
  51. data/spec/dummy/tmp/cache/assets/development/sprockets/3849b7859912da6dc6cea6ec621070e8 +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/3894bee54a69437b80e0d3707a87465b +0 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/38d83aa3769d6e5cb2a074dd30ddef12 +0 -0
  54. data/spec/dummy/tmp/cache/assets/development/sprockets/3b2b5f340f5d7286c9bee9964060e1f6 +0 -0
  55. data/spec/dummy/tmp/cache/assets/development/sprockets/3c62008bf4308e9af085429fff83fc00 +0 -0
  56. data/spec/dummy/tmp/cache/assets/development/sprockets/3dee8335808f1c6f1f41c4a062fd2893 +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/3ed3b32bff297382862ca2d7d7c39e28 +0 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/3fb16efb3154ef8aea161c35593913e6 +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/401ddf90867ef5074576afa4bd5b6105 +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/416d386f5c6c2219233e0ecd73a10573 +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/4229f430b1c716e1b548f2daf7a73d7b +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/4271f88835b9b1a3e4f0a89d9f4ad17c +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/4281f783ccd5631a8e75aa528e1ca03e +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/429ae732164c86a2567db0cadb5118d4 +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/42be90232b1ba9aa530b6f7de7d44840 +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/4318cebf3d40508e35ab4c83c1faadfd +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/4896a189db347d12a025edd8f4ac61d4 +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/4cfe78ec9abaf310f87efae7ff8b08da +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/4d18a664cabb7cd431cacc5dab9cd609 +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/4de8f3e3bcc91021014e0a25834917df +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/5184cf03fb5346d99935831fba273cc5 +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/51df7b544e3c24024c7f55da549d778d +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/53a085a34c4ff8a781407d480e98f35b +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/54848ffa7353654770cf0824f749048b +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/57980001cb2fe96b33589733cb56a44a +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/59ea2f24fcbe0f1b2fb47885b3428b08 +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/60da6586f86fa2537088f9de46e2af88 +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/63b611fa060b8a62687b9b1bf363df5b +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/6400a757d5f934c431a7ac03d19d44f2 +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/65c65c9e8b4742bbb37200ef6b056660 +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/690dcaaee023c7cc813a8e381e063c9c +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/69a9239f07e29a69e9abf35d92e46083 +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/6be375336df70a4db401200ecffe8a1a +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/7080ade46013f79cd9c9976d654dc897 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/71fe0e8b6466b8fdc100b418e3bf1b38 +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/771fc4d2b579ceb3ce9241275f41f6bc +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/7a822d2428380817e0f208dde1aec962 +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/7d2aac3be06ad92cbce0ac6a3b041063 +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/7d4bf0f7a6d67ade27f05b9bbdfaa13f +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/7d8e16eddc3729672315ea1ab82be61d +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sprockets/7e66828c22f30fc1741d69fa8b3f6556 +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sprockets/7f20d45abac2485c9b018e2ad7c9faea +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sprockets/7ff9ce522b469bb87d23470a17024893 +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sprockets/817b43e6477d4059b9006261356b7147 +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sprockets/825acebdffb6b264e044e8b211cde192 +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sprockets/82b9ad47a3e7ae516ef89d9511a81d54 +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sprockets/836a12260a7c62df85ad882997cc815d +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sprockets/83ad805e11126265f2c22bfa3150eaed +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sprockets/83f8794a0c8cd319c676b73d15735623 +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/85f1fdfeecab670348e9b57eff9920f9 +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/87408cf15f3b659a33cab73cabacc84e +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/8a6d3701895f56be223b757e9f44de12 +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/8aeef1d17937c78d1d7d7e8ce21e38dd +0 -0
  104. data/{app/assets/javascripts/acts_as_talented/angularjs/app.js → spec/dummy/tmp/cache/assets/development/sprockets/8f08e01c4687f22edceb16964fcee66d} +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sprockets/925444a895104668e64e409620d6fcd3 +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sprockets/93524ff627c12ad3347e01c8d3d294b6 +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sprockets/95bd8d3689c20ee5e6ded9c431e28ce2 +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sprockets/95bdc1f939f0d1604c8330ec9a8688e2 +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sprockets/9e9c8f0a01d68ade2f7958d968f9abd6 +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sprockets/9fa37e6bff76d95137f2e46db0ca4098 +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sprockets/a2accc6e20b89df101da89b1ef78a04f +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sprockets/a58d74de9f875daa152852fbbab64b81 +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sprockets/a6a917ba010394dc974efe539184649e +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sprockets/a771dd993b7eb73009ac8d1edd71660d +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sprockets/a913deae61640b1f8b505b3c4907cc94 +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sprockets/ade0135413d8f6843be147a7841b4519 +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sprockets/b2dd2cfdaf0b21b95688517121a9b7a1 +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sprockets/b5f68769cb36830e2bd42665a2a74b97 +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sprockets/b66da00a955bb048048db40392e7a97a +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sprockets/ba4f52243e81d4b466a973120da52119 +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sprockets/bb701e160a8465a28b3b85ba9e599b21 +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sprockets/becec3b59d209c76a253454e3d3fb053 +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sprockets/c042bc3a5d1bd3c3ee61c4778feedf07 +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sprockets/c0b64cfb45fb412e5ee7e425cd8dc0b2 +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sprockets/c3dbe303660d299b488648fc157fd32b +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sprockets/c9d8484f89bc0fca9922168c391929e2 +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sprockets/cafcd69348bda42403f5d5acd4ac950f +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sprockets/cb787b099238d91e432df432c99ad46e +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sprockets/cbc787d0c777d8681d4c9f8078053e44 +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sprockets/cc516e66819560451451ab51537c1ea1 +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sprockets/cc82889dedb606c7867469211ee96223 +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sprockets/cd01129cc4d93ff7d72b7a677e816423 +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sprockets/cd0ff9cfbb94a0ecf415350872d7ff6b +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sprockets/cd842178f0a9c7ee768134341074fd4b +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sprockets/ce22c0a7eda0ab5038f461a08b169b86 +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sprockets/d38b66175797bd7fe8ab09187e56a1e8 +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sprockets/d4e086abb1947074f19411de8392820f +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sprockets/d631c673f84014e0c398a01ab54a79a2 +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sprockets/d78f24659a478aae098120e942cf1b82 +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sprockets/dbc8f597dbe58aa313710af6dcd1cd3a +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sprockets/dc1e084c9152ca75bd4a0e533aa17ebd +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sprockets/deb4504ad9c345edbeb8048290b3952e +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sprockets/df332112f06bb78df5714a5e42c0f847 +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sprockets/df6e31e4fa1810193d4e956a6fdcb705 +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sprockets/e2417725aa1a5dffba0b25a77f645b10 +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sprockets/ea43ea2fdfda6d80c8ac7b1f0c81d774 +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sprockets/ee99a9b373bb8f3a5d725312a8a3d47c +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sprockets/ef1d9c82f2305adc65883a5e3d470c3b +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sprockets/f0fecf6c6edec41b2960e2ab9a7de198 +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sprockets/f16339076b1f9851e26fc051a0aa4980 +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sprockets/f16478c650667b6b0f582581c124ac0b +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sprockets/f2eb0a6488e487eb96ae21630fde22d3 +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sprockets/f64bdc87923358b41b5f34486fa32164 +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sprockets/f6e072be6b03e18692014988cd8d396a +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sprockets/f72fd791624cb0c15b0aa6812cc3858c +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sprockets/fca9304b97dbef77a06b8e3623120e13 +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sprockets/fd00a88ad414caae47cbda231a563e85 +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sprockets/fe446829070b6b5b5ff20dc7c1cbffef +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sprockets/ff68cc0069ed9f6602f1665b3afcc486 +0 -0
  162. data/spec/javascripts/angularjs/ProfileController_spec.js +23 -0
  163. data/spec/javascripts/angularjs/TabsController_spec.js +25 -0
  164. data/spec/javascripts/angularjs/applicant/ApplicantsContontroller_spec.js +56 -0
  165. data/spec/javascripts/angularjs/applicant/ApplicantsFactory_spec.js +13 -0
  166. data/spec/javascripts/angularjs/user/UserSearchController_spec.js +154 -0
  167. data/spec/javascripts/angularjs/user/UsersController_spec.js +25 -0
  168. data/spec/javascripts/support/jasmine.yml +53 -0
  169. metadata +303 -30
  170. data/app/assets/javascripts/acts_as_talented/angularjs/NotificationFactory.js +0 -24
  171. data/app/assets/javascripts/acts_as_talented/angularjs/ProfileController.js +0 -15
  172. data/app/assets/javascripts/acts_as_talented/angularjs/TabsController.js +0 -24
  173. data/app/assets/javascripts/acts_as_talented/angularjs/applicant/ApplicantsController.js +0 -50
  174. data/app/assets/javascripts/acts_as_talented/angularjs/applicant/ApplicantsFactory.js +0 -30
  175. data/app/assets/javascripts/acts_as_talented/angularjs/employer/EmployersController.js +0 -84
  176. data/app/assets/javascripts/acts_as_talented/angularjs/employer/EmployersFactory.js.erb +0 -12
  177. data/app/assets/javascripts/acts_as_talented/angularjs/user/UserSearchController.js +0 -120
  178. data/app/assets/javascripts/acts_as_talented/angularjs/user/UserSearchFactory.js +0 -45
  179. data/app/assets/javascripts/acts_as_talented/angularjs/user/UsersController.js +0 -44
  180. data/app/assets/javascripts/acts_as_talented/angularjs/user/UsersFactory.js +0 -45
  181. data/app/assets/javascripts/acts_as_talented/dependancies/angular-ui-router.min.js +0 -7
  182. data/app/assets/javascripts/acts_as_talented/dependancies/toastr.min.js +0 -1
  183. data/app/assets/javascripts/acts_as_talented/templates/MyApplicants/my_applicants.detail.html +0 -20
  184. data/app/assets/javascripts/acts_as_talented/templates/MyApplicants/my_applicants.html +0 -35
  185. data/app/assets/javascripts/acts_as_talented/templates/MyApplicants/my_applicants.list.html +0 -1
  186. data/app/assets/javascripts/acts_as_talented/templates/employers.html.erb +0 -77
  187. data/app/assets/javascripts/acts_as_talented/templates/my_jobs.html +0 -22
  188. data/app/assets/javascripts/acts_as_talented/templates/my_profile.html +0 -45
  189. data/app/assets/javascripts/acts_as_talented/templates/search_candidate.html +0 -413
  190. data/app/assets/stylesheets/acts_as_talented/applicants.css +0 -99
  191. data/app/assets/stylesheets/acts_as_talented/banner.css.scss +0 -40
  192. data/app/assets/stylesheets/acts_as_talented/fonts.css.scss +0 -13
  193. data/app/assets/stylesheets/acts_as_talented/login.css.scss +0 -18
  194. data/app/assets/stylesheets/acts_as_talented/main.css.scss +0 -13
  195. data/app/assets/stylesheets/acts_as_talented/toastr.min.css +0 -1
  196. data/app/assets/stylesheets/acts_as_talented/typography.css.scss +0 -77
@@ -1,24 +0,0 @@
1
- ActsAsTalentedModule.factory('notificationFactory', function () {
2
- toastr.options = {
3
- "showDuration": "100",
4
- "hideDuration": "100",
5
- "timeOut": "2000",
6
- "extendedTimeOut": "5000",
7
- }
8
-
9
- return {
10
- success: function (text) {
11
- if (text === undefined) {
12
- text = '';
13
- }
14
- toastr.success("Success. " + text);
15
- },
16
- error: function (text) {
17
- if (text === undefined) {
18
- text = '';
19
- }
20
- toastr.error("Error. " + text);
21
- },
22
- };
23
-
24
- });
@@ -1,15 +0,0 @@
1
- ActsAsTalentedModule.controller('ProfileController', ["$scope", function($scope) {
2
- $scope.save = function() {
3
- $scope.$broadcast('show-errors-check-validity');
4
-
5
- if ($scope.userForm.$valid) {
6
- alert('User saved');
7
- $scope.reset();
8
- }
9
- };
10
-
11
- $scope.reset = function() {
12
- $scope.$broadcast('show-errors-reset');
13
- $scope.user = { name: '', email: '' };
14
- }
15
- }]);
@@ -1,24 +0,0 @@
1
- ActsAsTalentedModule.controller("TabsController", ["$scope", "$state", function ($scope, $state) {
2
-
3
- $scope.tabClass = { myJobs: 'inactive',
4
- myJobs: 'inactive',
5
- searchCandidate: 'inactive',
6
- myProfile: 'inactive',
7
- 'myApplicants.list': 'inactive'
8
- }
9
-
10
- $scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
11
- $scope.tabClass[toState.name] = 'active';
12
- });
13
-
14
- $scope.makeActiveTab = function(tab) {
15
-
16
- angular.forEach($scope.tabClass, function(value, key) {
17
- if(key != tab)
18
- $scope.tabClass[key] = 'inactive';
19
- else
20
- $scope.tabClass[key] = 'active';
21
- });
22
-
23
- }
24
- }]);
@@ -1,50 +0,0 @@
1
- ActsAsTalentedModule.controller("ApplicantsController", ["$scope", "ApplicantsFactory", function ($scope, ApplicantsFactory) {
2
-
3
- // init variables
4
- $scope.no_messages=true;
5
- $scope.focusedMsg = null ;
6
-
7
- $scope.filter_position = [
8
- {name: "Vigilante"},
9
- {name: "Coder"},
10
- {name: "Gamer"}
11
- ];
12
-
13
- // PRIVATE FUNCTIONS
14
- var requestSuccess = function () {
15
- // notificationFactory.success();
16
- }
17
-
18
- var requestError = function () {
19
- // notificationFactory.error();
20
- }
21
-
22
- // Get all items from the server
23
- $scope.getAllItems = function () {
24
- $scope.loading = true;
25
- // $scope.applicantsList = ApplicantsFactory.fac(function (success) {
26
- // $scope.loading = false;
27
- // }, requestError);
28
- $scope.applicantsList = ApplicantsFactory.messages();
29
-
30
- $scope.loading = false;
31
- if($scope.applicantsList.length > 0){
32
- $scope.no_messages = false;
33
- $scope.msgInit();
34
- }
35
- }
36
-
37
- // LOADS ALL ITEMS
38
- // $scope.getAllItems();
39
-
40
- $scope.msgInit = function(){
41
- $scope.focusedMsg = $scope.applicantsList[0];
42
- $scope.no_messages = false;
43
- }
44
-
45
- $scope.getMsg = function(msg){
46
- $scope.focusedMsg = msg;
47
- $scope.no_messages = false;
48
- }
49
-
50
- }]);
@@ -1,30 +0,0 @@
1
- ActsAsTalentedModule.factory("ApplicantsFactory", ["$resource", function ($resource) {
2
- return {
3
- messages: function(){
4
- var msgs = [
5
- {
6
- name: "Batman",
7
- job_position: "Vigilante",
8
- message: "I consider myself a worthy candidate, Dark Knight",
9
- id: 0,
10
- resume: "Cool file/link here"
11
- },
12
- {
13
- name: "Superman",
14
- job_position: "Gamer",
15
- message: "I consider myself a worthy candidate, Man of Steel",
16
- id: 1,
17
- resume: "Cool file/link here"
18
- },
19
- {
20
- name: "Flash",
21
- job_position: "Coder",
22
- message: "I consider myself a worthy candidate, Fastest man!",
23
- id: 2,
24
- resume: "Cool file/link here"
25
- }
26
- ];
27
- return msgs;
28
- }
29
- }
30
- }]);
@@ -1,84 +0,0 @@
1
- ActsAsTalentedModule.controller("EmployersController", ["$scope", "EmployersFactory", "notificationFactory", function ($scope, EmployersFactory, notificationFactory) {
2
-
3
- // PRIVATE FUNCTIONS
4
- var requestSuccess = function () {
5
- // notificationFactory.success();
6
- }
7
-
8
- var requestError = function () {
9
- // notificationFactory.error();
10
- console.log("error");
11
- }
12
-
13
- var isNameDuplicated = function (itemName) {
14
- return $scope.employersList.some(function (entry) {
15
- return entry.name.toUpperCase() == itemName.toUpperCase();
16
- });
17
- };
18
-
19
- var isDirty = function(item) {
20
- return item.name != item.serverName;
21
- }
22
-
23
- // PUBLIC PROPERTIES
24
-
25
- // the item being added
26
- $scope.newItem = { name: '' };
27
- // indicates if the view is being loaded
28
- $scope.loading = false;
29
- // indicates if the view is in add mode
30
- $scope.addMode = false;
31
- // All the items
32
- $scope.employersList = [];
33
-
34
- // Get all items from the server
35
- $scope.getAllItems = function () {
36
- $scope.loading = true;
37
- $scope.employersList = EmployersFactory.query(function (success) {
38
- $scope.loading = false;
39
- }, requestError);
40
- }
41
-
42
- // PUBLIC FUNCTIONS
43
-
44
- // Toggle the grid between add and normal mode
45
- $scope.toggleAddMode = function () {
46
- $scope.addMode = !$scope.addMode;
47
-
48
- // Default new item name is empty
49
- $scope.newItem.name = '';
50
- };
51
-
52
- // Switch to edit mode on selected row
53
- $scope.toggleEditMode = function (item) {
54
- // Toggle
55
- item.editMode = !item.editMode;
56
-
57
- // if item is not in edit mode anymore
58
- if (!item.editMode) {
59
- // Restore name
60
- item.name = item.serverName;
61
- } else {
62
- // save server name to restore it if the user cancel edition
63
- item.serverName = item.name;
64
-
65
- // Set edit mode = false and restore the name for the rest of items in edit mode
66
- // (there should be only one)
67
- $scope.employersList.forEach(function (i) {
68
- // item is not the item being edited now and it is in edit mode
69
- if (item.id != i.id && i.editMode) {
70
- // Restore name
71
- i.name = i.serverName;
72
- i.editMode = false;
73
- }
74
- });
75
-
76
- }
77
-
78
- notificationFactory.error("The item already exists.");
79
- }
80
-
81
- // LOADS ALL ITEMS
82
- $scope.getAllItems();
83
-
84
- }]);
@@ -1,12 +0,0 @@
1
- ActsAsTalentedModule.factory("EmployersFactory", ["$resource", function ($resource) {
2
- return $resource('/<%= ActsAsTalented.engine_mount_path %>api/v1/employers/:id',
3
- {
4
- // default URL params
5
- // @ Indicates that the value should be obtained from a data property
6
- id: '@Id'
7
- },
8
- {
9
- // add update to actions (is not defined by default)
10
- 'update': { method: 'PUT' }
11
- });
12
- }]);
@@ -1,120 +0,0 @@
1
- ActsAsTalentedModule.controller("UserSearchController", ["$scope", "UserSearchFactory", function ($scope, UserSearchFactory) {
2
-
3
- // init variables
4
- $scope.no_results=true;
5
- $scope.focusedUser = null ;
6
-
7
- // PRIVATE FUNCTIONS
8
- var requestSuccess = function () {
9
- // notificationFactory.success();
10
- }
11
-
12
- var requestError = function () {
13
- // notificationFactory.error();
14
- }
15
-
16
- // Get all items from the server
17
- $scope.getAllItems = function () {
18
- $scope.loading = true;
19
- // $scope.candidateList = ApplicantsFactory.fac(function (success) {
20
- // $scope.loading = false;
21
- // }, requestError);
22
- $scope.candidateList = UserSearchFactory.users();
23
-
24
- $scope.loading = false;
25
- if($scope.candidateList.length > 0){
26
- $scope.no_results = false;
27
- $scope.userInit();
28
- }
29
- }
30
-
31
- // LOADS ALL ITEMS
32
- // $scope.getAllItems();
33
-
34
- $scope.userInit = function(){
35
- $scope.focusedUser = $scope.candidateList[0];
36
- $scope.no_results = false;
37
- }
38
-
39
- $scope.getUser = function(user){
40
- $scope.focusedUser = user;
41
- $scope.no_results = false;
42
- }
43
-
44
- /*
45
- * This is for the Jobs page
46
- */
47
-
48
-
49
- $scope.totalResults = 0;
50
- $scope.currentPage = 1;
51
- $scope.no_search_term = true;
52
- $scope.end_of_results=false;
53
- $scope.show_landing_page = true;
54
- $scope.search_term = "qwer";
55
- $scope.reset = false;
56
-
57
- $scope.searchUsers = function(reset) {
58
- if(reset==true){
59
- $scope.currentPage = 1;
60
- }
61
-
62
- if($scope.search_term.length>0){
63
- $scope.no_search_term = false;
64
- $scope.end_of_results=false;
65
- $scope.show_landing_page = false;
66
-
67
-
68
- $scope.users = [{
69
- "name": "Batman",
70
- "course": "Computers",
71
- "location": "Bangalore",
72
- "graduation_year": "2014",
73
- "skills": "Web, vigilante, technology",
74
- "about": "I am batman I am batman I am batman I am batman I am batman I am batman I am batman I am batman I am batman ",
75
- "interests": "rails, ruby",
76
- "age": "24",
77
- "experience": "3 yr",
78
- "status": "Alumni",
79
- "photo": "http://media.edge-online.com/wp-content/uploads/edgeonline/2013/08/Batman-Arkham-Origins-610x343.jpg"
80
- },
81
- {
82
- "name": "Superman",
83
- "course": "Electronics",
84
- "location": "Bangalore",
85
- "graduation_year": "2015",
86
- "skills": "Web, vigilante, strength",
87
- "about": "I am superman I am superman I am superman I am superman I am superman I am superman I am superman I am superman I am superman ",
88
- "interests": "java, python",
89
- "age": "24",
90
- "experience": "2 yr",
91
- "status": "Working",
92
- "photo": "http://static.squarespace.com/static/51b3dc8ee4b051b96ceb10de/t/5285267ee4b048ecbebd1ce9/1384457859598/big-batman-vs-superman-movie-rumors-possible-spoilers.jpg"
93
- },
94
- {
95
- "name": "Flash",
96
- "course": "Biotechnology",
97
- "location": "Bangalore",
98
- "graduation_year": "2016",
99
- "skills": "Web, vigilante, speed",
100
- "about": "I am flash I am flash I am flash I am flash I am flash I am flash I am flash I am flash ",
101
- "interests": "rails, python",
102
- "age": "24",
103
- "experience": "1 yr",
104
- "status": "Student",
105
- "photo": "http://t0.gstatic.com/images?q=tbn:ANd9GcR8iEXTneF6nW_3ZgQkgpL4eFUoXDsltOclt0BMyM6lA65VXfTv"
106
- }]
107
-
108
- } else {
109
- $scope.no_search_term = true;
110
- }
111
- }
112
-
113
- $scope.reset_form = function(){
114
- $scope.search_term = '';
115
- $scope.reset = true;
116
- $scope.searchUsers(true);
117
- }
118
-
119
-
120
- }]);
@@ -1,45 +0,0 @@
1
- ActsAsTalentedModule.factory("UserSearchFactory", ["$resource", function ($resource) {
2
- return {
3
- users: function(){
4
- var users = [
5
- {
6
- name: "Batman",
7
- seeking_job: true,
8
- graduation_year: "I consider myself a worthy candidate, Dark Knight",
9
- course: "Superheroes 101",
10
- id: 1,
11
- photo: "http://google.com/logo.jpg",
12
- age: 24,
13
- location: "Metropolis",
14
- skills: "stealth, technology, tech toys",
15
- interests: "gadgets, technology"
16
- },
17
- {
18
- name: "Superman",
19
- seeking_job: true,
20
- graduation_year: "I consider myself a worthy candidate, Man of Steel",
21
- course: "Superheroes 102",
22
- id: 2,
23
- photo: "http://google.com/logo.jpg",
24
- age: 24,
25
- location: "Metropolis",
26
- skills: "strength, laser beam eyes, bullerproof",
27
- interests: "kryptonite, krypton, lois lane"
28
- },
29
- {
30
- name: "Flash",
31
- seeking_job: true,
32
- graduation_year: "I consider myself a worthy candidate, Fastest man!",
33
- course: "Superheroes 103",
34
- id: 3,
35
- photo: "http://google.com/logo.jpg",
36
- age: 24,
37
- location: "Metropolis",
38
- skills: "super speed, time travel",
39
- interests: "justice league"
40
- }
41
- ];
42
- return users;
43
- }
44
- }
45
- }]);
@@ -1,44 +0,0 @@
1
- ActsAsTalentedModule.controller("UsersController", ["$scope", "UsersFactory", function ($scope, UsersFactory) {
2
-
3
- // init variables
4
- $scope.no_results=true;
5
- $scope.focusedUser = null ;
6
-
7
- // PRIVATE FUNCTIONS
8
- var requestSuccess = function () {
9
- // notificationFactory.success();
10
- }
11
-
12
- var requestError = function () {
13
- // notificationFactory.error();
14
- }
15
-
16
- // Get all items from the server
17
- $scope.getAllItems = function () {
18
- $scope.loading = true;
19
- // $scope.candidateList = ApplicantsFactory.fac(function (success) {
20
- // $scope.loading = false;
21
- // }, requestError);
22
- $scope.candidateList = UsersFactory.users();
23
-
24
- $scope.loading = false;
25
- if($scope.candidateList.length > 0){
26
- $scope.no_results = false;
27
- $scope.userInit();
28
- }
29
- }
30
-
31
- // LOADS ALL ITEMS
32
- // $scope.getAllItems();
33
-
34
- $scope.userInit = function(){
35
- $scope.focusedUser = $scope.candidateList[0];
36
- $scope.no_results = false;
37
- }
38
-
39
- $scope.getUser = function(user){
40
- $scope.focusedUser = user;
41
- $scope.no_results = false;
42
- }
43
-
44
- }]);