typus 3.0.2 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. data/Gemfile +20 -9
  2. data/Gemfile.lock +93 -65
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +61 -0
  5. data/Rakefile +5 -0
  6. data/app/controllers/admin/account_controller.rb +7 -10
  7. data/app/controllers/admin/base_controller.rb +16 -1
  8. data/app/controllers/admin/resources_controller.rb +270 -159
  9. data/app/controllers/admin/session_controller.rb +8 -9
  10. data/app/helpers/admin/base_helper.rb +13 -28
  11. data/app/helpers/admin/dashboard_helper.rb +4 -10
  12. data/app/helpers/admin/file_preview_helper.rb +70 -0
  13. data/app/helpers/admin/filters_helper.rb +64 -45
  14. data/app/helpers/admin/form_helper.rb +37 -62
  15. data/app/helpers/admin/relationships_helper.rb +63 -78
  16. data/app/helpers/admin/resources_helper.rb +10 -31
  17. data/app/helpers/admin/search_helper.rb +6 -9
  18. data/app/helpers/admin/sidebar_helper.rb +15 -20
  19. data/app/helpers/admin/table_helper.rb +79 -170
  20. data/app/mailers/admin/mailer.rb +1 -1
  21. data/app/views/admin/account/forgot_password.html.erb +2 -2
  22. data/app/views/admin/account/new.html.erb +8 -4
  23. data/app/views/admin/base/user_guide.html.erb +85 -0
  24. data/app/views/admin/dashboard/_sidebar.html.erb +3 -1
  25. data/app/views/admin/dashboard/show.html.erb +2 -2
  26. data/app/views/admin/dashboard/styles.html.erb +2 -2
  27. data/app/views/admin/helpers/_apps.html.erb +5 -4
  28. data/app/views/admin/helpers/_file_preview.html.erb +3 -0
  29. data/app/views/admin/helpers/_header.html.erb +3 -3
  30. data/app/views/admin/helpers/_login_info.html.erb +2 -2
  31. data/app/views/admin/helpers/dashboard/_applications.html.erb +6 -9
  32. data/app/views/admin/helpers/dashboard/_resources.html.erb +2 -3
  33. data/app/views/admin/helpers/filters/_filters.html.erb +1 -1
  34. data/app/views/admin/helpers/resources/_display_link_to_previous.html.erb +1 -1
  35. data/app/views/admin/helpers/resources/_errors.html.erb +10 -0
  36. data/app/views/admin/helpers/search/_search.html.erb +1 -1
  37. data/app/views/admin/helpers/sidebar/_sidebar.html.erb +6 -3
  38. data/app/views/admin/helpers/table/_table.html.erb +17 -5
  39. data/app/views/admin/mailer/reset_password_link.text.erb +2 -2
  40. data/app/views/admin/resources/_form.html.erb +3 -12
  41. data/app/views/admin/resources/edit.html.erb +7 -5
  42. data/app/views/admin/resources/index.html.erb +13 -18
  43. data/app/views/admin/resources/new.html.erb +4 -4
  44. data/app/views/admin/resources/show.html.erb +9 -13
  45. data/app/views/admin/session/new.html.erb +8 -4
  46. data/app/views/admin/templates/_belongs_to.html.erb +1 -1
  47. data/app/views/admin/templates/_boolean.html.erb +2 -2
  48. data/app/views/admin/templates/_date.html.erb +2 -2
  49. data/app/views/admin/templates/_datetime.html.erb +2 -2
  50. data/app/views/admin/templates/_file.html.erb +3 -19
  51. data/app/views/admin/templates/_has_n.html.erb +4 -4
  52. data/app/views/admin/templates/_has_one.html.erb +14 -0
  53. data/app/views/admin/templates/_password.html.erb +2 -2
  54. data/app/views/admin/templates/_profile_sidebar.html.erb +3 -0
  55. data/app/views/admin/templates/_relate_form.html.erb +2 -1
  56. data/app/views/admin/templates/_selector.html.erb +1 -1
  57. data/app/views/admin/templates/_string.html.erb +6 -6
  58. data/app/views/admin/templates/_text.html.erb +11 -4
  59. data/app/views/admin/templates/_time.html.erb +2 -2
  60. data/app/views/admin/templates/_tree.html.erb +1 -1
  61. data/app/views/layouts/admin/base.html.erb +7 -6
  62. data/app/views/layouts/admin/session.html.erb +4 -14
  63. data/config/{available_locales/ca_models.yml → locales/typus.ca.models.yml} +5 -4
  64. data/config/locales/typus.ca.yml +81 -0
  65. data/config/{available_locales/de_models.yml → locales/typus.de.models.yml} +6 -2
  66. data/config/locales/typus.de.yml +80 -0
  67. data/config/locales/typus.el.models.yml +17 -0
  68. data/config/locales/typus.el.yml +82 -0
  69. data/config/{available_locales/es_models.yml → locales/typus.es.models.yml} +9 -4
  70. data/config/locales/typus.es.yml +82 -0
  71. data/config/{available_locales/fr_models.yml → locales/typus.fr.models.yml} +8 -3
  72. data/config/locales/typus.fr.yml +87 -0
  73. data/config/{available_locales/hu_models.yml → locales/typus.hu.models.yml} +6 -2
  74. data/config/locales/typus.hu.yml +80 -0
  75. data/config/{available_locales/it_models.yml → locales/typus.it.models.yml} +7 -4
  76. data/config/locales/typus.it.yml +89 -0
  77. data/config/{available_locales/language_models.yml.template → locales/typus.locale.models.yml.template} +8 -4
  78. data/config/locales/typus.locale.yml.template +81 -0
  79. data/config/{available_locales/pt-BR_models.yml → locales/typus.pt-BR.models.yml} +6 -2
  80. data/config/locales/typus.pt-BR.yml +80 -0
  81. data/config/{available_locales/ru_models.yml → locales/typus.ru.models.yml} +6 -2
  82. data/config/locales/typus.ru.yml +80 -0
  83. data/config/locales/typus.zh-CN.models.yml +17 -0
  84. data/config/locales/typus.zh-CN.yml +79 -0
  85. data/config/routes.rb +11 -7
  86. data/lib/generators/templates/config/initializers/typus.rb +8 -5
  87. data/lib/generators/templates/config/initializers/typus_resources.rb +0 -3
  88. data/lib/generators/templates/config/typus/README +6 -6
  89. data/lib/generators/templates/config/typus/typus.yml +5 -5
  90. data/lib/generators/templates/controller.rb +1 -1
  91. data/lib/generators/templates/migration.rb +1 -0
  92. data/lib/generators/templates/public/admin/javascripts/application.js +0 -4
  93. data/lib/generators/templates/public/admin/javascripts/jquery-1.4.4.min.js +167 -0
  94. data/lib/generators/templates/public/admin/javascripts/jquery.application.js +16 -0
  95. data/lib/generators/templates/public/admin/javascripts/jquery.rails.js +50 -22
  96. data/lib/generators/templates/public/admin/stylesheets/screen.css +43 -34
  97. data/lib/generators/templates/public/admin/vendor/fancybox/fancy_loading.png +0 -0
  98. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.easing-1.3.pack.js +32 -32
  99. data/lib/generators/templates/public/admin/vendor/fancybox/{jquery.fancybox-1.3.1.css → jquery.fancybox-1.3.4.css} +359 -363
  100. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.js +1156 -0
  101. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  102. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
  103. data/lib/generators/typus/assets_generator.rb +23 -0
  104. data/lib/generators/typus/controller_generator.rb +29 -0
  105. data/lib/generators/typus/migration_generator.rb +39 -20
  106. data/lib/generators/typus/typus_generator.rb +17 -57
  107. data/lib/generators/typus/views_generator.rb +2 -6
  108. data/lib/support/active_record.rb +8 -20
  109. data/lib/support/fake_user.rb +6 -1
  110. data/lib/support/hash.rb +1 -2
  111. data/lib/support/object.rb +4 -17
  112. data/lib/support/string.rb +34 -3
  113. data/lib/tasks/typus.rake +1 -1
  114. data/lib/typus.rb +60 -48
  115. data/lib/typus/actions.rb +27 -0
  116. data/lib/typus/authentication/base.rb +3 -4
  117. data/lib/typus/authentication/http_basic.rb +1 -1
  118. data/lib/typus/authentication/none.rb +1 -1
  119. data/lib/typus/authentication/session.rb +53 -108
  120. data/lib/typus/configuration.rb +13 -11
  121. data/lib/typus/filters.rb +12 -0
  122. data/lib/typus/format.rb +9 -13
  123. data/lib/typus/i18n.rb +30 -0
  124. data/lib/typus/orm/active_record.rb +97 -194
  125. data/lib/typus/orm/active_record/search.rb +91 -0
  126. data/lib/typus/resources.rb +6 -10
  127. data/lib/typus/user.rb +20 -40
  128. data/lib/typus/version.rb +1 -1
  129. metadata +77 -231
  130. data/CHANGELOG +0 -102
  131. data/README.rdoc +0 -48
  132. data/app/helpers/admin/preview_helper.rb +0 -46
  133. data/app/views/admin/helpers/_preview.html.erb +0 -13
  134. data/app/views/admin/templates/_has_many.html.erb +0 -22
  135. data/config/available_locales/ca.yml +0 -122
  136. data/config/available_locales/de.yml +0 -122
  137. data/config/available_locales/es.yml +0 -122
  138. data/config/available_locales/fr.yml +0 -127
  139. data/config/available_locales/hu.yml +0 -122
  140. data/config/available_locales/it.yml +0 -132
  141. data/config/available_locales/language.yml.template +0 -120
  142. data/config/available_locales/pt-BR.yml +0 -122
  143. data/config/available_locales/ru.yml +0 -122
  144. data/lib/generators/templates/functional_test.rb +0 -10
  145. data/lib/generators/templates/model.rb +0 -8
  146. data/lib/generators/templates/public/admin/images/ui-icons.png +0 -0
  147. data/lib/generators/templates/public/admin/javascripts/jquery-1.4.2.min.js +0 -154
  148. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.js +0 -1077
  149. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.fancybox-1.3.1.pack.js +0 -44
  150. data/lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js +0 -13
  151. data/lib/typus/pagination.rb +0 -18
  152. data/test/factories.rb +0 -43
  153. data/test/fixtures/config/broken/application.yml +0 -68
  154. data/test/fixtures/config/broken/application_roles.yml +0 -20
  155. data/test/fixtures/config/broken/empty.yml +0 -0
  156. data/test/fixtures/config/broken/empty_roles.yml +0 -0
  157. data/test/fixtures/config/broken/undefined.yml +0 -3
  158. data/test/fixtures/config/broken/undefined_roles.yml +0 -6
  159. data/test/fixtures/config/default/typus.yml +0 -13
  160. data/test/fixtures/config/default/typus_roles.yml +0 -2
  161. data/test/fixtures/config/empty/empty_01.yml +0 -0
  162. data/test/fixtures/config/empty/empty_01_roles.yml +0 -0
  163. data/test/fixtures/config/empty/empty_02.yml +0 -0
  164. data/test/fixtures/config/empty/empty_02_roles.yml +0 -0
  165. data/test/fixtures/config/locales/es.yml +0 -10
  166. data/test/fixtures/config/namespaced/application.yml +0 -5
  167. data/test/fixtures/config/namespaced/application_roles.yml +0 -2
  168. data/test/fixtures/config/ordered/001_roles.yml +0 -2
  169. data/test/fixtures/config/ordered/002_roles.yml +0 -2
  170. data/test/fixtures/config/unordered/app_one_roles.yml +0 -2
  171. data/test/fixtures/config/unordered/app_two_roles.yml +0 -2
  172. data/test/fixtures/config/working/application.yml +0 -73
  173. data/test/fixtures/config/working/application_roles.yml +0 -24
  174. data/test/fixtures/config/working/typus.yml +0 -13
  175. data/test/fixtures/config/working/typus_roles.yml +0 -2
  176. data/test/fixtures/rails_app/Rakefile +0 -7
  177. data/test/fixtures/rails_app/app/controllers/admin/assets_controller.rb +0 -2
  178. data/test/fixtures/rails_app/app/controllers/admin/categories_controller.rb +0 -2
  179. data/test/fixtures/rails_app/app/controllers/admin/comments_controller.rb +0 -2
  180. data/test/fixtures/rails_app/app/controllers/admin/pages_controller.rb +0 -2
  181. data/test/fixtures/rails_app/app/controllers/admin/pictures_controller.rb +0 -2
  182. data/test/fixtures/rails_app/app/controllers/admin/posts_controller.rb +0 -2
  183. data/test/fixtures/rails_app/app/controllers/admin/status_controller.rb +0 -2
  184. data/test/fixtures/rails_app/app/controllers/admin/typus_users_controller.rb +0 -2
  185. data/test/fixtures/rails_app/app/controllers/admin/watch_dog_controller.rb +0 -2
  186. data/test/fixtures/rails_app/app/controllers/application_controller.rb +0 -3
  187. data/test/fixtures/rails_app/app/models/asset.rb +0 -5
  188. data/test/fixtures/rails_app/app/models/category.rb +0 -11
  189. data/test/fixtures/rails_app/app/models/comment.rb +0 -6
  190. data/test/fixtures/rails_app/app/models/custom_user.rb +0 -2
  191. data/test/fixtures/rails_app/app/models/delayed/task.rb +0 -5
  192. data/test/fixtures/rails_app/app/models/page.rb +0 -5
  193. data/test/fixtures/rails_app/app/models/picture.rb +0 -6
  194. data/test/fixtures/rails_app/app/models/post.rb +0 -21
  195. data/test/fixtures/rails_app/app/models/typus_user.rb +0 -8
  196. data/test/fixtures/rails_app/app/models/view.rb +0 -5
  197. data/test/fixtures/rails_app/app/views/admin/categories/_form.html.erb +0 -1
  198. data/test/fixtures/rails_app/app/views/admin/dashboard/_sidebar.html.erb +0 -1
  199. data/test/fixtures/rails_app/app/views/admin/mailer/reset_password_link.text.erb +0 -6
  200. data/test/fixtures/rails_app/app/views/admin/posts/_edit.html.erb +0 -1
  201. data/test/fixtures/rails_app/app/views/admin/posts/_index.html.erb +0 -1
  202. data/test/fixtures/rails_app/app/views/admin/posts/_new.html.erb +0 -1
  203. data/test/fixtures/rails_app/app/views/admin/posts/_show.html.erb +0 -1
  204. data/test/fixtures/rails_app/app/views/admin/posts/_sidebar.html.erb +0 -1
  205. data/test/fixtures/rails_app/app/views/admin/resources/_sidebar.html.erb +0 -1
  206. data/test/fixtures/rails_app/app/views/admin/status/index.html.erb +0 -1
  207. data/test/fixtures/rails_app/app/views/admin/templates/_datepicker.html.erb +0 -1
  208. data/test/fixtures/rails_app/config.ru +0 -4
  209. data/test/fixtures/rails_app/config/application.rb +0 -53
  210. data/test/fixtures/rails_app/config/boot.rb +0 -13
  211. data/test/fixtures/rails_app/config/database.yml +0 -14
  212. data/test/fixtures/rails_app/config/environment.rb +0 -5
  213. data/test/fixtures/rails_app/config/environments/test.rb +0 -34
  214. data/test/fixtures/rails_app/config/initializers/secret_token.rb +0 -7
  215. data/test/fixtures/rails_app/config/initializers/session_store.rb +0 -8
  216. data/test/fixtures/rails_app/config/initializers/typus.rb +0 -6
  217. data/test/fixtures/rails_app/config/routes.rb +0 -5
  218. data/test/fixtures/rails_app/config/typus/application.yml +0 -79
  219. data/test/fixtures/rails_app/config/typus/application_roles.yml +0 -25
  220. data/test/fixtures/rails_app/config/typus/typus.yml +0 -12
  221. data/test/fixtures/rails_app/config/typus/typus_roles.yml +0 -2
  222. data/test/fixtures/rails_app/db/test.sqlite3 +0 -0
  223. data/test/fixtures/rails_app/tmp/export-posts-20101012213057.csv +0 -2
  224. data/test/fixtures/rails_app/tmp/export-posts-20101012213132.csv +0 -2
  225. data/test/fixtures/rails_app/tmp/export-posts-20101012213234.csv +0 -2
  226. data/test/fixtures/rails_app/tmp/export-posts-20101012213506.csv +0 -2
  227. data/test/fixtures/rails_app/tmp/export-posts-20101012215057.csv +0 -2
  228. data/test/fixtures/rails_app/tmp/export-posts-20101012215217.csv +0 -2
  229. data/test/fixtures/rails_app/tmp/export-posts-20101012215415.csv +0 -2
  230. data/test/fixtures/rails_app/tmp/export-posts-20101012215443.csv +0 -2
  231. data/test/fixtures/rails_app/tmp/export-posts-20101012215509.csv +0 -2
  232. data/test/fixtures/rails_app/tmp/export-posts-20101012215528.csv +0 -2
  233. data/test/fixtures/rails_app/tmp/export-posts-20101012215551.csv +0 -2
  234. data/test/fixtures/rails_app/tmp/export-posts-20101012215615.csv +0 -2
  235. data/test/fixtures/rails_app/tmp/export-posts-20101012215640.csv +0 -2
  236. data/test/fixtures/rails_app/tmp/export-posts-20101012215714.csv +0 -2
  237. data/test/fixtures/rails_app/tmp/export-posts-20101012215744.csv +0 -2
  238. data/test/fixtures/rails_app/tmp/export-posts-20101012215814.csv +0 -2
  239. data/test/fixtures/rails_app/tmp/export-posts-20101012215836.csv +0 -2
  240. data/test/fixtures/rails_app/tmp/export-posts-20101012215906.csv +0 -2
  241. data/test/fixtures/rails_app/tmp/export-posts-20101012220659.csv +0 -2
  242. data/test/fixtures/rails_app/tmp/export-posts-20101012221043.csv +0 -2
  243. data/test/fixtures/rails_app/tmp/export-posts-20101012221258.csv +0 -2
  244. data/test/fixtures/rails_app/tmp/export-posts-20101012222558.csv +0 -2
  245. data/test/fixtures/rails_app/tmp/export-posts-20101012222752.csv +0 -2
  246. data/test/fixtures/rails_app/tmp/export-posts-20101012222848.csv +0 -2
  247. data/test/fixtures/rails_app/tmp/export-posts-20101012223433.csv +0 -2
  248. data/test/fixtures/rails_app/tmp/export-posts-20101012223535.csv +0 -2
  249. data/test/fixtures/rails_app/tmp/export-posts-20101012224003.csv +0 -2
  250. data/test/fixtures/rails_app/tmp/export-posts-20101012224052.csv +0 -2
  251. data/test/fixtures/rails_app/tmp/export-posts-20101012224109.csv +0 -2
  252. data/test/fixtures/rails_app/tmp/export-posts-20101012224139.csv +0 -2
  253. data/test/fixtures/rails_app/tmp/export-posts-20101012224205.csv +0 -2
  254. data/test/fixtures/rails_app/tmp/export-posts-20101012224243.csv +0 -2
  255. data/test/fixtures/rails_app/tmp/export-posts-20101012225119.csv +0 -2
  256. data/test/fixtures/rails_app/tmp/export-posts-20101013063215.csv +0 -2
  257. data/test/fixtures/rails_app/tmp/export-posts-20101013063300.csv +0 -2
  258. data/test/fixtures/rails_app/tmp/export-posts-20101013063352.csv +0 -2
  259. data/test/fixtures/rails_app/tmp/export-posts-20101013063427.csv +0 -2
  260. data/test/fixtures/rails_app/tmp/export-posts-20101013063448.csv +0 -2
  261. data/test/fixtures/rails_app/tmp/export-posts-20101013063530.csv +0 -2
  262. data/test/fixtures/rails_app/tmp/export-posts-20101013063559.csv +0 -2
  263. data/test/fixtures/rails_app/tmp/export-posts-20101013063646.csv +0 -2
  264. data/test/fixtures/rails_app/tmp/export-posts-20101013063737.csv +0 -2
  265. data/test/fixtures/rails_app/tmp/export-posts-20101013063822.csv +0 -2
  266. data/test/fixtures/rails_app/tmp/export-posts-20101013063837.csv +0 -2
  267. data/test/fixtures/rails_app/tmp/export-posts-20101013063919.csv +0 -2
  268. data/test/fixtures/rails_app/tmp/export-posts-20101013063939.csv +0 -2
  269. data/test/fixtures/rails_app/tmp/export-posts-20101013063952.csv +0 -2
  270. data/test/fixtures/rails_app/tmp/export-posts-20101013064220.csv +0 -2
  271. data/test/fixtures/rails_app/tmp/export-posts-20101013064253.csv +0 -2
  272. data/test/fixtures/rails_app/tmp/export-posts-20101013064318.csv +0 -2
  273. data/test/fixtures/rails_app/tmp/export-posts-20101013064404.csv +0 -2
  274. data/test/fixtures/rails_app/tmp/export-posts-20101013064452.csv +0 -2
  275. data/test/fixtures/rails_app/tmp/export-posts-20101013064536.csv +0 -2
  276. data/test/fixtures/rails_app/tmp/export-posts-20101013064652.csv +0 -2
  277. data/test/fixtures/rails_app/tmp/export-posts-20101013064845.csv +0 -2
  278. data/test/fixtures/rails_app/tmp/export-posts-20101013065023.csv +0 -2
  279. data/test/fixtures/rails_app/tmp/export-posts-20101013065137.csv +0 -2
  280. data/test/fixtures/rails_app/tmp/export-posts-20101013065713.csv +0 -2
  281. data/test/fixtures/rails_app/tmp/export-posts-20101013065954.csv +0 -2
  282. data/test/fixtures/rails_app/tmp/export-posts-20101013070057.csv +0 -2
  283. data/test/fixtures/rails_app/tmp/export-posts-20101013070116.csv +0 -2
  284. data/test/fixtures/rails_app/tmp/export-posts-20101013070156.csv +0 -2
  285. data/test/fixtures/rails_app/tmp/export-posts-20101013070349.csv +0 -2
  286. data/test/fixtures/rails_app/tmp/export-posts-20101013070429.csv +0 -2
  287. data/test/fixtures/rails_app/tmp/export-posts-20101013070448.csv +0 -2
  288. data/test/fixtures/rails_app/tmp/export-posts-20101013070514.csv +0 -2
  289. data/test/fixtures/rails_app/tmp/export-posts-20101013070709.csv +0 -2
  290. data/test/fixtures/rails_app/tmp/export-posts-20101013070745.csv +0 -2
  291. data/test/fixtures/rails_app/tmp/export-posts-20101013070809.csv +0 -2
  292. data/test/fixtures/rails_app/tmp/export-posts-20101013070905.csv +0 -2
  293. data/test/fixtures/rails_app/tmp/export-posts-20101013070955.csv +0 -2
  294. data/test/fixtures/rails_app/tmp/export-posts-20101013071116.csv +0 -2
  295. data/test/fixtures/rails_app/tmp/export-posts-20101013071209.csv +0 -2
  296. data/test/fixtures/rails_app/tmp/export-posts-20101013071335.csv +0 -2
  297. data/test/fixtures/rails_app/tmp/export-posts-20101013071632.csv +0 -2
  298. data/test/fixtures/rails_app/tmp/export-posts-20101013071643.csv +0 -2
  299. data/test/fixtures/rails_app/tmp/export-posts-20101013071735.csv +0 -2
  300. data/test/fixtures/rails_app/tmp/export-posts-20101013071749.csv +0 -2
  301. data/test/fixtures/rails_app/tmp/export-posts-20101013072030.csv +0 -2
  302. data/test/fixtures/rails_app/tmp/export-posts-20101013072050.csv +0 -2
  303. data/test/fixtures/rails_app/tmp/export-posts-20101013072108.csv +0 -2
  304. data/test/fixtures/rails_app/tmp/export-posts-20101013072713.csv +0 -2
  305. data/test/fixtures/rails_app/tmp/export-posts-20101013072751.csv +0 -2
  306. data/test/fixtures/rails_app/tmp/export-posts-20101013072912.csv +0 -2
  307. data/test/fixtures/rails_app/tmp/export-posts-20101013074546.csv +0 -2
  308. data/test/fixtures/rails_app/tmp/export-posts-20101018180512.csv +0 -2
  309. data/test/fixtures/rails_app/tmp/export-posts-20101018183359.csv +0 -2
  310. data/test/fixtures/rails_app/tmp/export-posts-20101018183608.csv +0 -2
  311. data/test/fixtures/rails_app/tmp/export-posts-20101018183759.csv +0 -2
  312. data/test/functional/admin/account_controller_test.rb +0 -90
  313. data/test/functional/admin/assets_controller_test.rb +0 -55
  314. data/test/functional/admin/categories_controller_test.rb +0 -62
  315. data/test/functional/admin/comments_controller_test.rb +0 -21
  316. data/test/functional/admin/dashboard_controller_test.rb +0 -138
  317. data/test/functional/admin/posts_controller_test.rb +0 -548
  318. data/test/functional/admin/session_controller_test.rb +0 -85
  319. data/test/functional/admin/status_controller_test.rb +0 -46
  320. data/test/functional/admin/typus_users_controller_test.rb +0 -159
  321. data/test/helpers/admin/base_helper_test.rb +0 -67
  322. data/test/helpers/admin/dashboard_helper_test.rb +0 -19
  323. data/test/helpers/admin/form_helper_test.rb +0 -117
  324. data/test/helpers/admin/resources_helper_test.rb +0 -64
  325. data/test/helpers/admin/sidebar_helper_test.rb +0 -274
  326. data/test/helpers/admin/table_helper_test.rb +0 -219
  327. data/test/integration/login_test.rb +0 -13
  328. data/test/integration_test_helper.rb +0 -21
  329. data/test/lib/support/active_record_test.rb +0 -86
  330. data/test/lib/support/array_test.rb +0 -11
  331. data/test/lib/support/hash_test.rb +0 -11
  332. data/test/lib/support/string_test.rb +0 -39
  333. data/test/lib/typus/active_record_test.rb +0 -451
  334. data/test/lib/typus/configuration_test.rb +0 -52
  335. data/test/lib/typus/resource_test.rb +0 -17
  336. data/test/lib/typus/routes_test.rb +0 -29
  337. data/test/lib/typus_test.rb +0 -107
  338. data/test/schema.rb +0 -100
  339. data/test/test_helper.rb +0 -16
  340. data/test/unit/admin/mailer_test.rb +0 -32
  341. data/test/unit/typus_user_roles_test.rb +0 -105
  342. data/test/unit/typus_user_test.rb +0 -142
  343. data/typus.gemspec +0 -25
@@ -1,9 +1,12 @@
1
+ # Hungarian (hu) translations for Typus by:
2
+ # - Tompa Gábor <http://github.com/tompagabor>
3
+
1
4
  hu:
2
5
  activerecord:
3
6
  models:
4
- typus_user: "Typus felhasználó"
7
+ admin_user:
5
8
  attributes:
6
- typus_user:
9
+ admin_user:
7
10
  email:
8
11
  first_name: "Vezetéknév"
9
12
  last_name: "Keresznév"
@@ -11,3 +14,4 @@ hu:
11
14
  password_confirmation: "Jelszó megerősítés"
12
15
  status: "Státusz"
13
16
  role: "Jogosultsági szint"
17
+ locale:
@@ -0,0 +1,80 @@
1
+ # Hungarian (hu) translations for Typus by:
2
+ # - Tompa Gábor <http://github.com/tompagabor>
3
+
4
+ hu:
5
+
6
+ "Actions": "Akciók"
7
+ "Active": "Aktív"
8
+ "Add": "Hozzáad"
9
+ "Add new": "Új hozzáadása"
10
+ "Are you sure?": "Biztos vagy benne?"
11
+ "Are you sure you want to sign out and end your session?": "Biztosan ki akarsz lépni?"
12
+
13
+ "Change %{attribute}?": "Megváltoztatod ezt: %{attribute}?"
14
+ "Create %{resource}": "%{resource} létrehozása"
15
+
16
+ "Dashboard": "Admin nyitólap"
17
+ "Down": "Le"
18
+
19
+ "Edit": "Szerkesztés"
20
+ "Edit %{resource}": "Szerkesztés %{resource}"
21
+ "Enter your email below to create the first user": "Írd be az e-mail címed az első felhasználó létrehozásához"
22
+
23
+ "False": "Hamis"
24
+ "Filter":
25
+
26
+ "I remember my password": "Emlékszem a jelszavamra"
27
+ "If you didn't request a password update, you can ignore this message": "Hogyha nem kértél jelszó emlékesztetőt, nyugodtan töröld ki ezt a levelet."
28
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Ha a módosítások után nem kattintassz a Mentés/Firssítés gombra, el fognak veszni a változtatások."
29
+ "Inactive": "Inaktív"
30
+
31
+ "Last few days": "Utóbbi néhány nap"
32
+ "Last 30 days": "Az elmúlt 30 nap"
33
+ "Last 7 days": "Az elmúlt 7 nap"
34
+ "List":
35
+ "Logged as": "Bejelentkezve"
36
+ "Login": "Belépés"
37
+
38
+ "New": "Új"
39
+ "New %{resource}": "Új %{resource}"
40
+ "Next": "Következő"
41
+ "No %{resources} found":
42
+
43
+ "Password recovery link sent to your email": "A jelszó helyreállító linket elküldtük az email címedre."
44
+ "Previous": "Előző"
45
+
46
+ "Record moved %{to}": "A bejegyzés áthelyezve: %{to}"
47
+ "Recover password": "Jelszó helyreállítás"
48
+ "Remove": "Eltávolítás"
49
+ "Remove %{resource}?": "Eltávolítod %{resource}?"
50
+ "Reset password": "Jelszó módosítása"
51
+ "Resources": "Források"
52
+
53
+ "Save %{resource}": "%{resource} mentése"
54
+ "Search": "Keresés"
55
+ "Show": "Mutatás"
56
+ "Show all dates":
57
+ "Show by %{attribute}":
58
+ "Show %{resource}": "%{resource} mutatása"
59
+ "Sign in": "Bejelentkezés"
60
+ "Sign out": "Kijelentkezés"
61
+ "Sign up": "Regisztráció"
62
+ "System Users Administration": "Rendszeradminisztrátorok kezelése"
63
+
64
+ "Today": "Ma"
65
+ "True": "Igaz"
66
+
67
+ "Unrelate":
68
+ "Up": "Fel"
69
+
70
+ "View all %{attribute}":
71
+ "View site": "A weboldal megtekintése"
72
+
73
+ "You can update your password at": "Frissítheted a jelszavad"
74
+ "You can't change your role": "Nincsen jogod megváltoztatni a jogosultsági szintedet"
75
+ "You can't toggle your status": "Nincs jogod változtatni a státuszodat"
76
+
77
+ "%{errors} prohibited this page from being saved:":
78
+ "%{model} successfully created": "%{model} sikeresen létrehozva"
79
+ "%{model} successfully removed": "%{model} sikeresen törölve"
80
+ "%{model} successfully updated": "%{model} sikereseb frissítve"
@@ -1,15 +1,18 @@
1
+ # Hungarian (hu) translations for Typus by:
2
+ # - Tompa Gábor <http://github.com/tompagabor>
3
+
1
4
  it:
2
5
  activerecord:
3
6
  models:
4
- typus_user: "Utente"
7
+ admin_user:
5
8
  attributes:
6
- typus_user:
9
+ admin_user:
10
+ email:
7
11
  first_name: "Nome"
8
12
  last_name: "Cognome"
9
- email: "E-mail"
10
13
  role: "Ruolo"
11
14
  status: "Stato"
12
15
  preferences: "Preferenze"
13
- language: "Lingua"
16
+ locale: "Lingua"
14
17
  password: "Password"
15
18
  password_confirmation: "Ripeti la password"
@@ -0,0 +1,89 @@
1
+ # Italian (it) translations for Typus by:
2
+ # - matteo <wonsys.net>
3
+
4
+ it:
5
+
6
+ "Actions": "Azioni"
7
+ "Active": "Attivo"
8
+ "Add": "Inserisci"
9
+ "Add new": "Inserisci nuovo"
10
+ "Are you sure?": "Sei sicuro?"
11
+ "Are you sure you want to sign out and end your session?": "Sei sicuro che vuoi disconnetterti dal sistema?"
12
+
13
+ "Change %{attribute}?": "Vuoi cambiare %{attribute}?"
14
+ "Create %{resource}": "Inserisci %{resource}"
15
+
16
+ "Dashboard": "Panoramica"
17
+ "Developed by": "Realizzato da"
18
+ "Down": "Giù"
19
+
20
+ "Edit": "Modifica"
21
+ "Edit %{resource}": "Modifica %{resource}"
22
+ "Enter your email below to create the first user": "Inserisci un'email qui sotto per creare il primo utente"
23
+ "Error": "Errore"
24
+ "Errors": "Errori"
25
+
26
+ "False": "Falso"
27
+ "Filter": "Filtra"
28
+
29
+ "I remember my password": "Mi ricordo la password"
30
+ "If you didn't request a password update, you can ignore this message": "Se non hai richiesto l'aggiornamento della password, puoi ignorare questo messaggio"
31
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Sei hai fatto dei cambiamenti ai vari campi senza avere cliccato su Salva/Aggiorna, i tuoi cambiamenti verranno persi"
32
+ "Inactive": "Inattivo"
33
+
34
+ "Last few days": "Ultimi giorni"
35
+ "Last 30 days": "Ultimi 30 giorni"
36
+ "Last 7 days": "Ultimi 7 giorni"
37
+ "List": "Lista"
38
+ "Loading": "Caricamento"
39
+ "Logged as": "Loggato come"
40
+ "Login": "Login"
41
+
42
+ "New": "Nuovo"
43
+ "New %{resource}": "Nuovo %{resource}"
44
+ "Next": "Successivo"
45
+ "No %{resources} found":
46
+
47
+ "Or": "Oppure"
48
+
49
+ "Password recovery link sent to your email": "È stata inviata un'email contenente un link per il recupero della password"
50
+ "Please set a new password.": "Inserisci una nuova password"
51
+ "Previous": "Precedente"
52
+
53
+ "Record moved %{to}": "Record spostato %{to}"
54
+ "Recover password": "Recupera la password"
55
+ "Remove": "Elimina"
56
+ "Remove %{resource}?": "Elimina %{resource}"
57
+ "Reset password": "Resetta la password"
58
+ "Resources": "Risorse"
59
+
60
+ "Save %{resource}": "Salva %{resource}"
61
+ "Search": "Cerca"
62
+ "Show": "Mostra"
63
+ "Show all dates": "Filtra per data"
64
+ "Show by %{attribute}": "Filtra per %{attribute}"
65
+ "Show %{resource}": "Mostra %{resource}"
66
+ "Sign in": "Accedi"
67
+ "Sign out": "Esci"
68
+ "Sign up": "Registrazione"
69
+ "Submit": "Invia"
70
+ "System Users Administration": "Amministrazione utenti del sistema"
71
+
72
+ "Today": "Oggi"
73
+ "Trash": "Elimina"
74
+ "True": "Vero"
75
+
76
+ "Unrelate":
77
+ "Up": "Su"
78
+
79
+ "View all %{attribute}": "Filtra per %{attribute}"
80
+ "View site": "Visita il sito"
81
+
82
+ "You can update your password at": "Puoi aggiornare la tua password qui"
83
+ "You can't change your role": "Non puoi cambiare il tuo ruolo"
84
+ "You can't toggle your status": "Non puoi modificare il tuo stato"
85
+ "Your new password is %{password}": "La tua nuova password è %{password}"
86
+
87
+ "%{model} successfully created": "Creazione avvenuta con successo"
88
+ "%{model} successfully removed": "Eliminazione avvenuta con successo"
89
+ "%{model} successfully updated": "Aggiornamento avvenuto con successo"
@@ -1,13 +1,17 @@
1
- ru:
1
+ # <locale> translations for Typus
2
+ # - <your_name> <contact_form>
3
+
4
+ <locale>:
2
5
  activerecord:
3
6
  models:
4
- typus_user:
7
+ admin_user:
5
8
  attributes:
6
- typus_user:
9
+ admin_user:
7
10
  email:
8
11
  first_name:
9
12
  last_name:
13
+ locale:
10
14
  password:
11
15
  password_confirmation:
12
- status:
13
16
  role:
17
+ status:
@@ -0,0 +1,81 @@
1
+ # <locale> translations for Typus
2
+ # - <your_name> <contact_form>
3
+
4
+ <locale>:
5
+
6
+ "Actions":
7
+ "Active":
8
+ "Add":
9
+ "Add new":
10
+ "All":
11
+ "Are you sure?":
12
+ "Are you sure you want to sign out and end your session?":
13
+
14
+ "Change %{attribute}?":
15
+ "Create %{resource}":
16
+
17
+ "Dashboard":
18
+ "Down":
19
+
20
+ "Edit":
21
+ "Enter your email below to create the first user":
22
+
23
+ "False":
24
+ "Filter":
25
+
26
+ "I remember my password":
27
+ "If you didn't request a password update, you can ignore this message":
28
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost":
29
+ "Inactive":
30
+
31
+ "Last few days":
32
+ "Last 30 days":
33
+ "Last 7 days":
34
+ "List":
35
+ "Logged as":
36
+ "Login":
37
+
38
+ "New":
39
+ "New %{resource}":
40
+ "Next":
41
+ "No %{resources} found":
42
+
43
+ "Password recovery link sent to your email":
44
+ "Previous":
45
+
46
+ "Record moved %{to}":
47
+ "Recover password":
48
+ "Remove":
49
+ "Remove %{resource}?":
50
+ "Reset password":
51
+ "Resources":
52
+
53
+ "Save %{resource}":
54
+ "Search":
55
+ "Show":
56
+ "Show all dates":
57
+ "Show by %{attribute}":
58
+ "Show %{resource}":
59
+ "Sign in":
60
+ "Sign out":
61
+ "Sign up":
62
+ "System Users Administration":
63
+
64
+ "Today":
65
+ "Trash":
66
+ "True":
67
+
68
+ "Unrelate":
69
+ "Up":
70
+
71
+ "View all %{attribute}":
72
+ "View site":
73
+
74
+ "You can update your password at":
75
+ "You can't change your role":
76
+ "You can't toggle your status":
77
+
78
+ "%{errors} prohibited this page from being saved:":
79
+ "%{model} successfully created":
80
+ "%{model} successfully removed":
81
+ "%{model} successfully updated":
@@ -1,9 +1,12 @@
1
+ # Portuguese (pt-BR) translations for Typus by:
2
+ # - George Guimarães <http://github.com/georgeguimaraes>
3
+
1
4
  pt-BR:
2
5
  activerecord:
3
6
  models:
4
- typus_user: "Usuário do sistema"
7
+ admin_user: "Usuário do sistema"
5
8
  attributes:
6
- typus_user:
9
+ admin_user:
7
10
  email:
8
11
  first_name: "Primeiro nome"
9
12
  last_name: "Sobrenome"
@@ -11,3 +14,4 @@ pt-BR:
11
14
  password_confirmation: "Senha confirmação"
12
15
  status:
13
16
  role:
17
+ locale:
@@ -0,0 +1,80 @@
1
+ # Portuguese (pt-BR) translations for Typus by:
2
+ # - George Guimarães <http://github.com/georgeguimaraes>
3
+
4
+ pt-BR:
5
+
6
+ "Actions": "Ações"
7
+ "Active":
8
+ "Add": "Adicionar"
9
+ "Add new": "Adicionar novo"
10
+ "Are you sure?":
11
+ "Are you sure you want to sign out and end your session?": "Tem certeza que quer sair e encerrar sua sessão?"
12
+
13
+ "Change %{attribute}?": "Mudar %{attribute}?"
14
+ "Create %{resource}": "Criar %{resource}"
15
+
16
+ "Dashboard": "Painel"
17
+ "Down": "Descer"
18
+
19
+ "Edit": "Editar"
20
+ "Edit %{resource}": "Editar %{resource}"
21
+ "Enter your email below to create the first user": "Escreva seu email para criar o primeiro usuário"
22
+
23
+ "False": "Falso"
24
+ "Filter": "Filtrar"
25
+
26
+ "I remember my password": "Lembro minha senha"
27
+ "If you didn't request a password update, you can ignore this message": "Se você não pediu uma renovação de senha, por favor ignore esta mensagem."
28
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Se você fez alterações nos campos e não clicou no botão de Salvar/Atualizar, suas alterações serão perdidas"
29
+ "Inactive":
30
+
31
+ "Last few days": "Últimos dias"
32
+ "Last 30 days": "Últimos 30 dias"
33
+ "Last 7 days": "Últimos 7 dias"
34
+ "List":
35
+ "Logged as": "Logado como"
36
+ "Login": "Login"
37
+
38
+ "New": "Novo"
39
+ "New %{resource}": "Novo %{resource}"
40
+ "Next": "Próximo"
41
+ "No %{resources} found":
42
+
43
+ "Password recovery link sent to your email": "Link para recuperar senha enviado para seu email."
44
+ "Previous": "Anterior"
45
+
46
+ "Record moved %{to}": "Registro movido %{to}."
47
+ "Recover password": "Recuperar senha"
48
+ "Remove": "Remover"
49
+ "Remove %{resource}?": "Remover %{resource}?"
50
+ "Reset password": "Trocar senha"
51
+ "Resources": "Recursos"
52
+
53
+ "Save %{resource}":
54
+ "Search": "Busca"
55
+ "Show": "Mostrar"
56
+ "Show all dates":
57
+ "Show by %{attribute}":
58
+ "Show %{resource}": "Mostrar %{resource}"
59
+ "Sign in": "Entrar"
60
+ "Sign out": "Sair"
61
+ "Sign up": "Criar conta"
62
+ "System Users Administration": "Administrar usuários do sistema"
63
+
64
+ "Today": "Hoje"
65
+ "True": "Verdadeiro"
66
+
67
+ "Unrelate": "Desvincular"
68
+ "Up": "Subir"
69
+
70
+ "View all %{attribute}":
71
+ "View site": "Ver site"
72
+
73
+ "You can't toggle your status": "Você não pode mudar seu status."
74
+ "You can update your password at": "Você pode atualizar sua senha em"
75
+ "You can't change your role": "Você não pode mudar sua própria função no sistema."
76
+
77
+ "%{errors} prohibited this page from being saved:":
78
+ "%{model} successfully created": "%{model} criado com sucesso."
79
+ "%{model} successfully removed": "%{model} removido com sucesso."
80
+ "%{model} successfully updated": "%{model} atualizado com sucesso."
@@ -1,9 +1,12 @@
1
+ # Russian (ru) translations for Typus by:
2
+ # - Alexey Noskov <http://github.com/alno>
3
+
1
4
  ru:
2
5
  activerecord:
3
6
  models:
4
- typus_user: "Системный пользователь"
7
+ admin_user:
5
8
  attributes:
6
- typus_user:
9
+ admin_user:
7
10
  email:
8
11
  first_name: "Имя"
9
12
  last_name: "Фамлия"
@@ -11,3 +14,4 @@ ru:
11
14
  password_confirmation: "Подтверждение пароля"
12
15
  status: "Статус"
13
16
  role:
17
+ locale:
@@ -0,0 +1,80 @@
1
+ # Russian (ru) translations for Typus by:
2
+ # - Alexey Noskov <http://github.com/alno>
3
+
4
+ ru:
5
+
6
+ "Actions": "Действия"
7
+ "Active":
8
+ "Add": "Добавить"
9
+ "Add new": "Добавить новый"
10
+ "Are you sure?":
11
+ "Are you sure you want to sign out and end your session?":
12
+
13
+ "Change %{attribute}?": "Изменить %{attribute}?"
14
+ "Create %{resource}": "Создать %{resource}"
15
+
16
+ "Dashboard": "Обзор"
17
+ "Down": "Вниз"
18
+
19
+ "Edit": "Изменить"
20
+ "Edit %{resource}": "Изменить %{resource}"
21
+ "Enter your email below to create the first user":
22
+
23
+ "False":
24
+ "Filter": "фильтр"
25
+
26
+ "I remember my password": "Запомнить пароль"
27
+ "If you didn't request a password update, you can ignore this message": "Если Вы не запрашивали обновление пароля, Вы можете проигнорировать это сообщение."
28
+ "If you have made any changes to the fields without clicking the Save/Update entry button, your changes will be lost": "Если вы сделали какие-то изменения, не кликая на Обновить/Сохранить, то они будут утеряны."
29
+ "Inactive":
30
+
31
+ "Last few days": "Последние дней"
32
+ "Last 7 days": "Последние 7 дней"
33
+ "Last 30 days": "Последние 30 дней"
34
+ "List":
35
+ "Logged as": "Вы вошли как"
36
+ "Login": "Редактировать"
37
+
38
+ "New": "Новый"
39
+ "New %{resource}": "Новый %{resource}"
40
+ "Next": "Следующий"
41
+ "No %{resources} found":
42
+
43
+ "Password recovery link sent to your email": "Ссылка для восставновления пароля выслана по указанному E-Mail"
44
+ "Previous": "Предыдующий"
45
+
46
+ "Record moved %{to}": "Запись перемещена в %{to}."
47
+ "Recover password": "Восстановить пароль"
48
+ "Remove": "Удалить"
49
+ "Remove %{resource}?": "Удалить %{resource}?"
50
+ "Reset password": "Сбросить пароль"
51
+ "Resources": "Ресурсы"
52
+
53
+ "Save %{resource}":
54
+ "Search": "Поиск"
55
+ "Show": "Показать"
56
+ "Show all dates":
57
+ "Show by %{attribute}":
58
+ "Show %{resource}": "Показать %{resource}"
59
+ "Sign in": "Войти"
60
+ "Sign out": "Выйти"
61
+ "Sign up": "Зарегистрироваться"
62
+ "System Users Administration": "Администрирование системных пользователей"
63
+
64
+ "Today": "Сегодня"
65
+ "True": "ВЕРНО"
66
+
67
+ "Unrelate":
68
+ "Up": "Вверх"
69
+
70
+ "View all %{attribute}":
71
+ "View site": "Перейти к сайту"
72
+
73
+ "You can update your password at": "Вы можете установить свой пароль на"
74
+ "You can't change your role": "Вы не можете менять свою собственную роль"
75
+ "You can't toggle your status": "Вы не можете менять свой статус"
76
+
77
+ "%{errors} prohibited this page from being saved:":
78
+ "%{model} successfully created": "%{model} создан"
79
+ "%{model} successfully removed": "%{model} удален"
80
+ "%{model} successfully updated": "%{model} успешно обновлен"