boxroom 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +50 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/config/boxroom_manifest.js +2 -0
  6. data/app/assets/images/boxroom/clipboard.png +0 -0
  7. data/app/assets/images/boxroom/clipboard_add.png +0 -0
  8. data/app/assets/images/boxroom/copy.png +0 -0
  9. data/app/assets/images/boxroom/delete.png +0 -0
  10. data/app/assets/images/boxroom/edit.png +0 -0
  11. data/app/assets/images/boxroom/exclamation.png +0 -0
  12. data/app/assets/images/boxroom/extend.png +0 -0
  13. data/app/assets/images/boxroom/failed.png +0 -0
  14. data/app/assets/images/boxroom/file.png +0 -0
  15. data/app/assets/images/boxroom/file_add.png +0 -0
  16. data/app/assets/images/boxroom/fileicons/7z.png +0 -0
  17. data/app/assets/images/boxroom/fileicons/ai.png +0 -0
  18. data/app/assets/images/boxroom/fileicons/aif.png +0 -0
  19. data/app/assets/images/boxroom/fileicons/aiff.png +0 -0
  20. data/app/assets/images/boxroom/fileicons/audio.png +0 -0
  21. data/app/assets/images/boxroom/fileicons/bz2.png +0 -0
  22. data/app/assets/images/boxroom/fileicons/c.png +0 -0
  23. data/app/assets/images/boxroom/fileicons/conf.png +0 -0
  24. data/app/assets/images/boxroom/fileicons/cpp.png +0 -0
  25. data/app/assets/images/boxroom/fileicons/cs.png +0 -0
  26. data/app/assets/images/boxroom/fileicons/css.png +0 -0
  27. data/app/assets/images/boxroom/fileicons/csv.png +0 -0
  28. data/app/assets/images/boxroom/fileicons/divx.png +0 -0
  29. data/app/assets/images/boxroom/fileicons/doc.png +0 -0
  30. data/app/assets/images/boxroom/fileicons/docx.png +0 -0
  31. data/app/assets/images/boxroom/fileicons/dot.png +0 -0
  32. data/app/assets/images/boxroom/fileicons/fla.png +0 -0
  33. data/app/assets/images/boxroom/fileicons/gif.png +0 -0
  34. data/app/assets/images/boxroom/fileicons/gz.png +0 -0
  35. data/app/assets/images/boxroom/fileicons/htm.png +0 -0
  36. data/app/assets/images/boxroom/fileicons/html.png +0 -0
  37. data/app/assets/images/boxroom/fileicons/image.png +0 -0
  38. data/app/assets/images/boxroom/fileicons/java.png +0 -0
  39. data/app/assets/images/boxroom/fileicons/jpeg.png +0 -0
  40. data/app/assets/images/boxroom/fileicons/jpg.png +0 -0
  41. data/app/assets/images/boxroom/fileicons/js.png +0 -0
  42. data/app/assets/images/boxroom/fileicons/mdb.png +0 -0
  43. data/app/assets/images/boxroom/fileicons/mdbx.png +0 -0
  44. data/app/assets/images/boxroom/fileicons/mov.png +0 -0
  45. data/app/assets/images/boxroom/fileicons/mp3.png +0 -0
  46. data/app/assets/images/boxroom/fileicons/mpg.png +0 -0
  47. data/app/assets/images/boxroom/fileicons/ogg.png +0 -0
  48. data/app/assets/images/boxroom/fileicons/pdf.png +0 -0
  49. data/app/assets/images/boxroom/fileicons/php.png +0 -0
  50. data/app/assets/images/boxroom/fileicons/pl.png +0 -0
  51. data/app/assets/images/boxroom/fileicons/png.png +0 -0
  52. data/app/assets/images/boxroom/fileicons/ppt.png +0 -0
  53. data/app/assets/images/boxroom/fileicons/pptx.png +0 -0
  54. data/app/assets/images/boxroom/fileicons/ps.png +0 -0
  55. data/app/assets/images/boxroom/fileicons/py.png +0 -0
  56. data/app/assets/images/boxroom/fileicons/ram.png +0 -0
  57. data/app/assets/images/boxroom/fileicons/rar.png +0 -0
  58. data/app/assets/images/boxroom/fileicons/rb.png +0 -0
  59. data/app/assets/images/boxroom/fileicons/rm.png +0 -0
  60. data/app/assets/images/boxroom/fileicons/rtf.png +0 -0
  61. data/app/assets/images/boxroom/fileicons/sql.png +0 -0
  62. data/app/assets/images/boxroom/fileicons/swf.png +0 -0
  63. data/app/assets/images/boxroom/fileicons/tar.png +0 -0
  64. data/app/assets/images/boxroom/fileicons/tgz.png +0 -0
  65. data/app/assets/images/boxroom/fileicons/txt.png +0 -0
  66. data/app/assets/images/boxroom/fileicons/video.png +0 -0
  67. data/app/assets/images/boxroom/fileicons/wav.png +0 -0
  68. data/app/assets/images/boxroom/fileicons/wma.png +0 -0
  69. data/app/assets/images/boxroom/fileicons/wmv.png +0 -0
  70. data/app/assets/images/boxroom/fileicons/xls.png +0 -0
  71. data/app/assets/images/boxroom/fileicons/xlsx.png +0 -0
  72. data/app/assets/images/boxroom/fileicons/xml.png +0 -0
  73. data/app/assets/images/boxroom/fileicons/xvid.png +0 -0
  74. data/app/assets/images/boxroom/fileicons/zip.png +0 -0
  75. data/app/assets/images/boxroom/folder.png +0 -0
  76. data/app/assets/images/boxroom/folder_add.png +0 -0
  77. data/app/assets/images/boxroom/group.png +0 -0
  78. data/app/assets/images/boxroom/group_add.png +0 -0
  79. data/app/assets/images/boxroom/group_grey.png +0 -0
  80. data/app/assets/images/boxroom/information.png +0 -0
  81. data/app/assets/images/boxroom/logo.png +0 -0
  82. data/app/assets/images/boxroom/move.png +0 -0
  83. data/app/assets/images/boxroom/permissions.png +0 -0
  84. data/app/assets/images/boxroom/share.png +0 -0
  85. data/app/assets/images/boxroom/spinner.gif +0 -0
  86. data/app/assets/images/boxroom/tick.png +0 -0
  87. data/app/assets/images/boxroom/user.png +0 -0
  88. data/app/assets/images/boxroom/user_add.png +0 -0
  89. data/app/assets/javascripts/boxroom/application.js.coffee +51 -0
  90. data/app/assets/javascripts/boxroom/files.js.coffee +33 -0
  91. data/app/assets/stylesheets/boxroom/application.scss +7 -0
  92. data/app/concepts/boxroom/base_cell.rb +7 -0
  93. data/app/concepts/boxroom/folder/cell/show.rb +25 -0
  94. data/app/concepts/boxroom/folder/view/show.erb +69 -0
  95. data/app/concepts/boxroom/search/contract/files_and_folders.rb +9 -0
  96. data/app/concepts/boxroom/search/operations/files_and_folders.rb +21 -0
  97. data/app/controllers/boxroom/admins_controller.rb +30 -0
  98. data/app/controllers/boxroom/application_controller.rb +5 -0
  99. data/app/controllers/boxroom/clipboard_controller.rb +87 -0
  100. data/app/controllers/boxroom/files_controller.rb +78 -0
  101. data/app/controllers/boxroom/folders_controller.rb +91 -0
  102. data/app/controllers/boxroom/groups_controller.rb +60 -0
  103. data/app/controllers/boxroom/permissions_controller.rb +19 -0
  104. data/app/controllers/boxroom/reset_password_controller.rb +45 -0
  105. data/app/controllers/boxroom/search_controller.rb +21 -0
  106. data/app/controllers/boxroom/sessions_controller.rb +48 -0
  107. data/app/controllers/boxroom/share_links_controller.rb +67 -0
  108. data/app/controllers/boxroom/signup_controller.rb +31 -0
  109. data/app/controllers/boxroom/users_controller.rb +75 -0
  110. data/app/controllers/concerns/boxroom/base_controller.rb +92 -0
  111. data/app/helpers/boxroom/application_helper.rb +4 -0
  112. data/app/helpers/boxroom/folders_helper.rb +17 -0
  113. data/app/jobs/boxroom/application_job.rb +4 -0
  114. data/app/mailers/boxroom/application_mailer.rb +6 -0
  115. data/app/mailers/boxroom/user_mailer.rb +18 -0
  116. data/app/models/boxroom/application_record.rb +5 -0
  117. data/app/models/boxroom/clipboard.rb +45 -0
  118. data/app/models/boxroom/folder.rb +113 -0
  119. data/app/models/boxroom/group.rb +57 -0
  120. data/app/models/boxroom/permission.rb +6 -0
  121. data/app/models/boxroom/permitted_params.rb +33 -0
  122. data/app/models/boxroom/share_link.rb +40 -0
  123. data/app/models/boxroom/user.rb +113 -0
  124. data/app/models/boxroom/user_file.rb +35 -0
  125. data/app/views/boxroom/admins/new.html.erb +42 -0
  126. data/app/views/boxroom/clipboard/_clipboard_empty.de.html.erb +2 -0
  127. data/app/views/boxroom/clipboard/_clipboard_empty.en.html.erb +2 -0
  128. data/app/views/boxroom/clipboard/_clipboard_empty.es.html.erb +2 -0
  129. data/app/views/boxroom/clipboard/_clipboard_empty.fr.html.erb +2 -0
  130. data/app/views/boxroom/clipboard/_clipboard_empty.it.html.erb +2 -0
  131. data/app/views/boxroom/clipboard/_clipboard_empty.nl.html.erb +2 -0
  132. data/app/views/boxroom/clipboard/_clipboard_empty.zh-CN.html.erb +2 -0
  133. data/app/views/boxroom/clipboard/_show.html.erb +72 -0
  134. data/app/views/boxroom/files/edit.html.erb +24 -0
  135. data/app/views/boxroom/files/new.html.erb +45 -0
  136. data/app/views/boxroom/folders/_form.html.erb +19 -0
  137. data/app/views/boxroom/folders/edit.html.erb +6 -0
  138. data/app/views/boxroom/folders/new.html.erb +6 -0
  139. data/app/views/boxroom/folders/show.html.erb +69 -0
  140. data/app/views/boxroom/groups/_form.html.erb +21 -0
  141. data/app/views/boxroom/groups/edit.html.erb +4 -0
  142. data/app/views/boxroom/groups/index.html.erb +42 -0
  143. data/app/views/boxroom/groups/new.html.erb +4 -0
  144. data/app/views/boxroom/permissions/_form.html.erb +46 -0
  145. data/app/views/boxroom/reset_password/_message.de.html.erb +2 -0
  146. data/app/views/boxroom/reset_password/_message.en.html.erb +2 -0
  147. data/app/views/boxroom/reset_password/_message.es.html.erb +2 -0
  148. data/app/views/boxroom/reset_password/_message.fr.html.erb +2 -0
  149. data/app/views/boxroom/reset_password/_message.it.html.erb +2 -0
  150. data/app/views/boxroom/reset_password/_message.nl.html.erb +2 -0
  151. data/app/views/boxroom/reset_password/_message.zh-CN.html.erb +2 -0
  152. data/app/views/boxroom/reset_password/edit.html.erb +30 -0
  153. data/app/views/boxroom/reset_password/new.html.erb +22 -0
  154. data/app/views/boxroom/search/show.html.erb +15 -0
  155. data/app/views/boxroom/sessions/new.html.erb +31 -0
  156. data/app/views/boxroom/share_links/index.html.erb +24 -0
  157. data/app/views/boxroom/share_links/new.html.erb +49 -0
  158. data/app/views/boxroom/shared/_footer.html.erb +9 -0
  159. data/app/views/boxroom/shared/_header.html.erb +45 -0
  160. data/app/views/boxroom/signup/edit.html.erb +42 -0
  161. data/app/views/boxroom/user_mailer/reset_password_email.de.text.erb +18 -0
  162. data/app/views/boxroom/user_mailer/reset_password_email.en.text.erb +17 -0
  163. data/app/views/boxroom/user_mailer/reset_password_email.es.text.erb +17 -0
  164. data/app/views/boxroom/user_mailer/reset_password_email.fr.text.erb +17 -0
  165. data/app/views/boxroom/user_mailer/reset_password_email.it.text.erb +17 -0
  166. data/app/views/boxroom/user_mailer/reset_password_email.nl.text.erb +17 -0
  167. data/app/views/boxroom/user_mailer/reset_password_email.zh-CN.text.erb +16 -0
  168. data/app/views/boxroom/user_mailer/share_link_email.de.text.erb +20 -0
  169. data/app/views/boxroom/user_mailer/share_link_email.en.text.erb +20 -0
  170. data/app/views/boxroom/user_mailer/share_link_email.es.text.erb +20 -0
  171. data/app/views/boxroom/user_mailer/share_link_email.fr.text.erb +20 -0
  172. data/app/views/boxroom/user_mailer/share_link_email.it.text.erb +20 -0
  173. data/app/views/boxroom/user_mailer/share_link_email.nl.text.erb +20 -0
  174. data/app/views/boxroom/user_mailer/share_link_email.zh-CN.text.erb +20 -0
  175. data/app/views/boxroom/user_mailer/signup_email.de.text.erb +9 -0
  176. data/app/views/boxroom/user_mailer/signup_email.en.text.erb +9 -0
  177. data/app/views/boxroom/user_mailer/signup_email.es.text.erb +9 -0
  178. data/app/views/boxroom/user_mailer/signup_email.fr.text.erb +9 -0
  179. data/app/views/boxroom/user_mailer/signup_email.it.text.erb +9 -0
  180. data/app/views/boxroom/user_mailer/signup_email.nl.text.erb +10 -0
  181. data/app/views/boxroom/user_mailer/signup_email.zh-CN.text.erb +8 -0
  182. data/app/views/boxroom/users/_form.html.erb +63 -0
  183. data/app/views/boxroom/users/edit.html.erb +4 -0
  184. data/app/views/boxroom/users/index.html.erb +68 -0
  185. data/app/views/boxroom/users/new.html.erb +4 -0
  186. data/app/views/layouts/boxroom/application.html.erb +37 -0
  187. data/config/locales/de.yml +414 -0
  188. data/config/locales/en.yml +407 -0
  189. data/config/locales/es.yml +403 -0
  190. data/config/locales/fr.yml +403 -0
  191. data/config/locales/it.yml +414 -0
  192. data/config/locales/nl.yml +408 -0
  193. data/config/locales/zh-CN.yml +406 -0
  194. data/config/routes.rb +44 -0
  195. data/db/migrate/20100930062939_boxroom_create_users.rb +20 -0
  196. data/db/migrate/20100930091426_boxroom_create_folders.rb +14 -0
  197. data/db/migrate/20100930091451_boxroom_create_groups.rb +12 -0
  198. data/db/migrate/20101002122244_boxroom_create_user_files.rb +17 -0
  199. data/db/migrate/20101005071402_boxroom_create_permissions.rb +16 -0
  200. data/db/migrate/20101005071508_boxroom_create_groups_users.rb +12 -0
  201. data/db/migrate/20110106045148_boxroom_drop_column_user_id_from_folders.rb +9 -0
  202. data/db/migrate/20110106045414_boxroom_drop_column_user_id_from_user_files.rb +9 -0
  203. data/db/migrate/20110529123402_boxroom_drop_column_access_key_from_users.rb +9 -0
  204. data/db/migrate/20110616215033_boxroom_create_share_links.rb +15 -0
  205. data/db/migrate/20120411075110_boxroom_add_column_signup_token_to_users.rb +8 -0
  206. data/db/migrate/20120411081345_boxroom_add_column_signup_token_expires_at_to_users.rb +7 -0
  207. data/db/migrate/20130626210927_boxroom_add_columns_message_user_id_to_share_links.rb +6 -0
  208. data/db/migrate/20130628082245_boxroom_populate_user_id_in_share_links.rb +9 -0
  209. data/lib/boxroom.rb +35 -0
  210. data/lib/boxroom/configuration.rb +18 -0
  211. data/lib/boxroom/engine.rb +9 -0
  212. data/lib/boxroom/version.rb +3 -0
  213. data/lib/paperclip/spoof_detector.rb +7 -0
  214. data/lib/tasks/boxroom_tasks.rake +4 -0
  215. metadata +481 -0
@@ -0,0 +1,2 @@
1
+ <h3>Die Zwischenablage ist leer</h3>
2
+ Gehen Sie <%= link_to 'zurück', '#', :class => 'back_link' %> und benutzen Sie die Funktion Zwischenablage, um Ordner oder Dateien in die Zwischenablage zu kopieren.
@@ -0,0 +1,2 @@
1
+ <h3>The clipboard is empty</h3>
2
+ Go <%= link_to 'back', '#', :class => 'back_link' %> and use the clipboard button to add files or folders to the clipboard.
@@ -0,0 +1,2 @@
1
+ <h3>El portapapeles esta vacío</h3>
2
+ Volver <%= link_to 'back', '#', :class => 'back_link' %> para usar el boton de portapapeles y agregar archivos o carpetas al portapapeles.
@@ -0,0 +1,2 @@
1
+ <h3>Le presse-papier est vide !</h3>
2
+ Revenir <%= link_to 'en arrière', '#', :class => 'back_link' %> et utilisez le bouton "presse-papier" pour y ajouter des fichiers ou dossiers.
@@ -0,0 +1,2 @@
1
+ <h3>Nessun file presente negli appunti</h3>
2
+ Vai <%= link_to 'indietro', '#', :class => 'back_link' %> e usa il pulsante appunti per aggiungere file o cartelle agli appunti.
@@ -0,0 +1,2 @@
1
+ <h3>Het klembord is leeg</h3>
2
+ Ga <%= link_to 'terug', '#', :class => 'back_link' %> en gebruik de klembord knop om bestanden en mappen toe te voegen aan het klembord.
@@ -0,0 +1,2 @@
1
+ <h3>剪贴板是空的</h3>
2
+ <%= link_to '回去', '#', :class => 'back_link' %>用剪贴板按钮将文件或文件夹加到剪贴板。
@@ -0,0 +1,72 @@
1
+ <% if clipboard.empty? -%>
2
+ <div class="notification is-info">
3
+ <%= render 'boxroom/clipboard/clipboard_empty' %>
4
+ </div>
5
+ <% else -%>
6
+ <table id="clipboard_table" class="table">
7
+ <tr>
8
+ <th></th>
9
+ <th><%= t :name %></th>
10
+ <th></th>
11
+ </tr>
12
+ <% reset_cycle -%>
13
+ <% clipboard.folders.each do |item| -%>
14
+ <tr class="<%= cycle('even', 'odd') %>">
15
+ <td><%= image_tag('boxroom/folder.png') %></td>
16
+ <td class="clipboard_item"><%= item.name %></td>
17
+ <td>
18
+ <% if current_user.can_create(@folder) -%>
19
+ <%= link_to image_tag('boxroom/copy.png', :alt => t(:copy)),
20
+ {:controller => :clipboard, :action => :copy, :id => item.id, :type => 'folder', :folder_id => @folder, :authenticity_token => form_authenticity_token},
21
+ :method => :post, :title => t(:copy_folder)
22
+ %>&nbsp;
23
+ <% end -%>
24
+ <% if current_user.can_create(@folder) && current_user.can_delete(item) -%>
25
+ <%= link_to image_tag('boxroom/move.png', :alt => t(:move)),
26
+ {:controller => :clipboard, :action => :move, :id => item.id, :type => 'folder', :folder_id => @folder, :authenticity_token => form_authenticity_token},
27
+ :method => :post, :title => t(:move_folder), :data => {:confirm => t(:are_you_sure)}
28
+ %>&nbsp;
29
+ <% end -%>
30
+ <%= link_to image_tag('boxroom/delete.png', :alt => t(:delete_item)),
31
+ {:controller => :clipboard, :action => :destroy, :id => item.id, :type => 'folder', :folder_id => @folder, :authenticity_token => form_authenticity_token},
32
+ :method => :delete, :title => t(:remove_from_clipboard)
33
+ %>
34
+ </td>
35
+ </tr>
36
+ <% end -%>
37
+ <% clipboard.files.each do |item| -%>
38
+ <tr class="<%= cycle('even', 'odd') %>">
39
+ <td><%= image_tag(file_icon(item.extension)) %></td>
40
+ <td class="clipboard_item"><%= item.attachment_file_name %></td>
41
+ <td>
42
+ <% if current_user.can_create(@folder) -%>
43
+ <%= link_to '<span class="icon is-small"><i class="fa fa-copy"></i></span>'.html_safe,
44
+ {:controller => :clipboard, :action => :copy, :id => item.id, :type => 'file', :folder_id => @folder, :authenticity_token => form_authenticity_token},
45
+ :method => :post, :title => t(:copy_file)
46
+ %>&nbsp;
47
+ <% end -%>
48
+ <% if current_user.can_create(@folder) && current_user.can_delete(item.folder) -%>
49
+ <%= link_to '<span class="icon is-small"><i class="fa fa-cut"></i></span>'.html_safe,
50
+ {:controller => :clipboard, :action => :move, :id => item.id, :type => 'file', :folder_id => @folder, :authenticity_token => form_authenticity_token},
51
+ :method => :post, :title => t(:move_file), :data => {:confirm => t(:are_you_sure)}
52
+ %>&nbsp;
53
+ <% end -%>
54
+ <%= link_to '<span class="icon is-small"><i class="fa fa-remove"></i></span>'.html_safe,
55
+ {:controller => :clipboard, :action => :destroy, :id => item.id, :type => 'file', :folder_id => @folder, :authenticity_token => form_authenticity_token},
56
+ :method => :delete, :title => t(:remove_from_clipboard)
57
+ %>
58
+ </td>
59
+ </tr>
60
+ <% end -%>
61
+ </table>
62
+ <div class="field is-grouped">
63
+ <div class="control">
64
+ <%= button_to t(:clear_clipboard),
65
+ {:controller => :clipboard, :action => :reset, :folder_id => @folder, :authenticity_token => form_authenticity_token}, :method => :put, class: 'button is-link'
66
+ %>
67
+ </div>
68
+ <div class="control">
69
+ <%= link_to t(:back), '#', class: 'back_link button is-text' %>
70
+ </div>
71
+ </div>
72
+ <% end -%>
@@ -0,0 +1,24 @@
1
+ <% content_for :title, t(:rename_file) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= form_for @file, :url => {:action => 'update'} do |f| %>
5
+ <% if f.error_messages.size > 0 %>
6
+ <div class="notification is-danger">
7
+ <%= f.error_messages %>
8
+ </div>
9
+ <% end %>
10
+ <div class="field">
11
+ <%= f.label :name, class: 'label' %>
12
+ <div class="control">
13
+ <%= f.text_field :attachment_file_name, class: 'input' %>
14
+ </div>
15
+ </div>
16
+ <div class="field is-grouped">
17
+ <div class="control">
18
+ <%= f.submit t(:save), class: 'button is-link' %>
19
+ </div>
20
+ <div class="control">
21
+ <%= link_to t(:back), @folder, class: 'button is-text' %>
22
+ </div>
23
+ </div>
24
+ <% end %>
@@ -0,0 +1,45 @@
1
+ <% content_for :title, t(:upload_file) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= form_for [@target_folder, @file], :url => {:action => 'create'} do |f| %>
5
+ <%= hidden_field_tag :target_folder_id, @target_folder.id %>
6
+ <div class="file">
7
+ <label class="file-label">
8
+ <%= file_field_tag :attachment, multiple: true, name: 'user_file[attachment]', class: 'file-input' %>
9
+ <span class="file-cta">
10
+ <span class="file-icon">
11
+ <i class="fa fa-upload"></i>
12
+ </span>
13
+ <span class="file-label">
14
+ Choose a file…
15
+ </span>
16
+ </span>
17
+ </label>
18
+ </div>
19
+
20
+ <div class="notification is-warning" id="server_wait" style="display:none;">
21
+ <%= t(:server_wait) %>
22
+ </div>
23
+
24
+ <table id="progress" class="table">
25
+ </table>
26
+
27
+ <div class="field">
28
+ <div class="control">
29
+ <%= link_to t(:back), @target_folder, class: 'button is-text' %>
30
+ </div>
31
+ </div>
32
+ <% end %>
33
+
34
+ <script id="template-upload" type="text/x-tmpl">
35
+ <tr>
36
+ <td>
37
+ <%= image_tag 'boxroom/spinner.gif', :class => 'spinner' %>
38
+ <%= image_tag 'boxroom/failed.png', :class => 'failed', :style => 'display:none;' %>
39
+ <%= image_tag 'boxroom/tick.png', :class => 'tick', :style => 'display:none;' %>
40
+ </td>
41
+ <td class="status">Uploading <strong>{%= o.name %}</strong>...</td>
42
+ <td class="percentage">0%</td>
43
+ <td class="exists_message is-danger" style="display:none;"><strong><%= t(:exists_already) %></strong></td>
44
+ </tr>
45
+ </script>
@@ -0,0 +1,19 @@
1
+ <% if f.error_messages.size > 0 %>
2
+ <div class="notification is-danger">
3
+ <%= f.error_messages %>
4
+ </div>
5
+ <% end %>
6
+ <div class="field">
7
+ <%= f.label :name, class: 'label' %>
8
+ <div class="control">
9
+ <%= f.text_field :name, class: 'input' %>
10
+ </div>
11
+ </div>
12
+ <div class="field is-grouped">
13
+ <div class="control">
14
+ <%= f.submit t(:save), class: 'button is-link' %>
15
+ </div>
16
+ <div class="control">
17
+ <%= link_to t(:back), @folder.parent, class: 'button is-text' %>
18
+ </div>
19
+ </div>
@@ -0,0 +1,6 @@
1
+ <% content_for :title, t(:rename_folder) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= form_for @folder do |f| %>
5
+ <%= render :partial => 'form', :locals => { :f => f } %>
6
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <% content_for :title, t(:new_folder) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= form_for [@target_folder, @folder] do |f| %>
5
+ <%= render :partial => 'form', :locals => { :f => f } %>
6
+ <% end %>
@@ -0,0 +1,69 @@
1
+ <% content_for :title, @folder.name -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <% unless @folder.is_root? -%>
5
+ <nav class="breadcrumb" aria-label="breadcrumbs">
6
+ <ul>
7
+ <%= breadcrumbs(@folder) %>
8
+ <li class="is-active"><a href="#" aria-current="page"><%= @folder.name %></a></li>
9
+ </ul>
10
+ </nav>
11
+ <% end -%>
12
+
13
+ <div class="tabs">
14
+ <ul>
15
+ <% if current_user.can_create(@folder) -%>
16
+ <li>
17
+ <a href="<%= new_folder_folder_path(@folder) %>">
18
+ <span class="icon is-small"><i class="fa fa-folder"></i></span>
19
+ <span><%= t(:create_a_new_folder) %></span>
20
+ </a>
21
+ </li>
22
+ <li>
23
+ <a href="<%= new_folder_file_path(@folder) %>">
24
+ <span class="icon is-small"><i class="fa fa-upload"></i></span>
25
+ <span><%= t(:upload_a_file) %></span>
26
+ </a>
27
+ </li>
28
+ <% end -%>
29
+ <% if current_user.member_of_admins? -%>
30
+ <li>
31
+ <a href="#" id="permissions_link" class="permissions_link">
32
+ <span class="icon is-small"><i class="fa fa-lock"></i></span>
33
+ <span><%= t(:permissions) %></span>
34
+ </a>
35
+ </li>
36
+ <% end -%>
37
+ <li>
38
+ <a href="#" id="clipboard_link" class="clipboard_link">
39
+ <span class="icon is-small"><i class="fa fa-clipboard"></i></span>
40
+ <span><%= t(:clipboard) %></span>
41
+ </a>
42
+ </li>
43
+ </ul>
44
+ </div>
45
+
46
+ <%= form_tag(search_path, method: :get) do %>
47
+ <div class="field">
48
+ <div class="control">
49
+ <%= text_field_tag 'term', nil, placeholder: t(:search), size: 71, class: 'input' %>
50
+ </div>
51
+ </div>
52
+ <%= hidden_field_tag 'folder_id', @folder.id %>
53
+ <% end %>
54
+
55
+ <div id="files_and_folders">
56
+ <%= concept(Boxroom::Folder::Cell::Show, @folder,
57
+ folders: @folder.children,
58
+ files: @folder.user_files,
59
+ current_user: current_user) %>
60
+ </div>
61
+
62
+ <% if current_user.member_of_admins? -%>
63
+ <div id="permissions" style="display:none;">
64
+ <%= render 'boxroom/permissions/form' %>
65
+ </div>
66
+ <% end -%>
67
+ <div id="clipboard" style="display:none;">
68
+ <%= render 'boxroom/clipboard/show' %>
69
+ </div>
@@ -0,0 +1,21 @@
1
+ <%= form_for @group do |f| %>
2
+ <% if f.error_messages.size > 0 %>
3
+ <div class="notification is-danger">
4
+ <%= f.error_messages %>
5
+ </div>
6
+ <% end %>
7
+ <div class="field">
8
+ <%= f.label :name, class: 'label' %>
9
+ <div class="control">
10
+ <%= f.text_field :name, class: 'input' %>
11
+ </div>
12
+ </div>
13
+ <div class="field is-grouped">
14
+ <div class="control">
15
+ <%= f.submit t(:save), class: 'button is-link' %>
16
+ </div>
17
+ <div class="control">
18
+ <%= link_to t(:back), groups_url, class: 'button is-text' %>
19
+ </div>
20
+ </div>
21
+ <% end %>
@@ -0,0 +1,4 @@
1
+ <% content_for :title, t(:rename_group) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= render 'form' %>
@@ -0,0 +1,42 @@
1
+ <% content_for :title, t(:groups) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+
5
+ <a class="button is-primary" href="<%= new_group_path %>">
6
+ <span class="icon">
7
+ <i class="fa fa-group"></i>
8
+ </span>
9
+ <span><%= t(:create_a_new_group) %></span>
10
+ </a>
11
+
12
+ <table class="table">
13
+ <tr>
14
+ <th></th>
15
+ <th><%= t :name %></th>
16
+ <th></th>
17
+ </tr>
18
+ <% @groups.each do |group| -%>
19
+ <tr class="<%= cycle('even', 'odd') %>">
20
+ <% if group.admins_group? -%>
21
+ <td>
22
+ <span class="icon is-small">
23
+ <i class="fa fa-group"></i>
24
+ </span>
25
+ </td>
26
+ <td class="group_name disabled"><%= group.name %></td>
27
+ <td></td>
28
+ <% else -%>
29
+ <td>
30
+ <span class="icon is-small">
31
+ <i class="fa fa-group"></i>
32
+ </span>
33
+ </td>
34
+ <td class="group_name"><%= group.name %></td>
35
+ <td>
36
+ <%= link_to '<span class="icon is-small"><i class="fa fa-edit"></i></span>'.html_safe, edit_group_path(group), :title => t(:edit) %>&nbsp;
37
+ <%= link_to '<span class="icon is-small"><i class="fa fa-remove"></i></span>'.html_safe, group_path(group), :method => :delete, :data => {:confirm => t(:are_you_sure)}, :title => t(:delete_item) %>
38
+ </td>
39
+ <% end -%>
40
+ </tr>
41
+ <% end -%>
42
+ </table>
@@ -0,0 +1,4 @@
1
+ <% content_for :title, t(:new_group) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= render 'form' %>
@@ -0,0 +1,46 @@
1
+ <%= form_tag update_multiple_permissions_path do %>
2
+ <%= hidden_field_tag '_method', 'put' %>
3
+ <table class="table">
4
+ <tr>
5
+ <th></th>
6
+ <th></th>
7
+ <th class="permission_column"><%= t :create_permission %></th>
8
+ <th class="permission_column"><%= t :read_permission %></th>
9
+ <th class="permission_column"><%= t :update_permission %></th>
10
+ <th class="permission_column"><%= t :delete_permission %></th>
11
+ </tr>
12
+ <% reset_cycle -%>
13
+ <% @folder.permissions.each do |permission| -%>
14
+ <%= fields_for "permissions[]", permission do |f| %>
15
+ <tr class="<%= cycle('even', 'odd') %>">
16
+ <% if permission.group.admins_group? -%>
17
+ <td><%= image_tag('boxroom/group_grey.png') %></td>
18
+ <td class="disabled"><%= permission.group.name %></td>
19
+ <td class="permission_column"><input type="checkbox" checked="checked" disabled="disabled"/></td>
20
+ <td class="permission_column"><input type="checkbox" checked="checked" disabled="disabled"/></td>
21
+ <td class="permission_column"><input type="checkbox" checked="checked" disabled="disabled"/></td>
22
+ <td class="permission_column"><input type="checkbox" checked="checked" disabled="disabled"/></td>
23
+ <% else -%>
24
+ <td><%= image_tag('boxroom/group.png') %></td>
25
+ <td><%= permission.group.name %></td>
26
+ <td class="permission_column"><%= f.check_box :can_create %></td>
27
+ <td class="permission_column"><%= f.check_box :can_read %></td>
28
+ <td class="permission_column"><%= f.check_box :can_update %></td>
29
+ <td class="permission_column"><%= f.check_box :can_delete %></td>
30
+ <% end -%>
31
+ </tr>
32
+ <% end -%>
33
+ <% end -%>
34
+ </table>
35
+ <div class="field is-grouped">
36
+ <div class="control">
37
+ <%= submit_tag t(:save), class: 'button is-link' %>
38
+ </div>
39
+ <div class="control">
40
+ <%= check_box_tag :recursive, true %> <%= t :apply_changes_to_subfolders %>
41
+ </div>
42
+ <div class="control">
43
+ <%= link_to t(:back), '#', class: 'button is-text back_link' %>
44
+ </div>
45
+ </div>
46
+ <% end -%>
@@ -0,0 +1,2 @@
1
+ Geben Sie ihre E-Mail Adresse ein um eine Anleitung zur<br>
2
+ Rücksetzung Ihres Kennworts zu erhalten.
@@ -0,0 +1,2 @@
1
+ Submit your email address and we will send you an email<br>
2
+ with instructions on how to reset your password.
@@ -0,0 +1,2 @@
1
+ Ingrese su cuenta de correo donde recibirá un correo<br>
2
+ con instrucciones de como reiniciar sus credenciales.
@@ -0,0 +1,2 @@
1
+ Saisissez votre adresse email et vous recevrez un message<br>
2
+ contentant les instructions pour réinitialiser votre mot de passe.
@@ -0,0 +1,2 @@
1
+ Inserisci il tuo indirizzo email e riceverai una email<br>
2
+ con le istruzioni su come reimpostare la password.
@@ -0,0 +1,2 @@
1
+ Vul uw e-mailadres in en we zullen u een e-mail toesturen<br>
2
+ met instructies om uw wachtwoord te resetten.
@@ -0,0 +1,2 @@
1
+ 请提供您的电子邮箱地址,<br>
2
+ 我们将给您发邮件告诉您如何重设密码。
@@ -0,0 +1,30 @@
1
+ <% content_for :title, t(:reset_password) -%>
2
+
3
+ <h1 class="title"><%= content_for :title %></h1>
4
+ <%= form_for @user, :url => {:action => 'update'} do |f| %>
5
+ <% if f.error_messages.size > 0 %>
6
+ <div class="notification is-danger">
7
+ <%= f.error_messages %>
8
+ </div>
9
+ <% end %>
10
+ <div class="field">
11
+ <%= label_tag :password, t(:password), class: 'label' %>
12
+ <div class="control">
13
+ <%= f.password_field :password, class: 'input' %>
14
+ </div>
15
+ </div>
16
+ <div class="field">
17
+ <%= label_tag :confirm_password, t(:confirm_password), class: 'label' %>
18
+ <div class="control">
19
+ <%= f.password_field :password_confirmation, class: 'input' %>
20
+ </div>
21
+ </div>
22
+ <div class="field is-grouped">
23
+ <div class="control">
24
+ <%= f.submit t(:reset_password), class: 'button is-link' %>
25
+ </div>
26
+ <div class="control">
27
+ <%= link_to t(:back), new_session_path, class: 'button is-text' %>
28
+ </div>
29
+ </div>
30
+ <% end %>