droom 0.2.1 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/images/droom/Untitled-1.png +0 -0
- data/app/assets/images/droom/asterisk.png +0 -0
- data/app/assets/images/droom/dropbox_small.png +0 -0
- data/app/assets/images/droom/handle.png +0 -0
- data/app/assets/images/droom/minisymbols.png +0 -0
- data/app/assets/images/droom/revoke_small.png +0 -0
- data/app/assets/images/droom/toggle.png +0 -0
- data/app/assets/javascripts/droom.js.coffee +4 -4
- data/app/assets/javascripts/droom/actions.js.coffee +16 -5
- data/app/assets/javascripts/droom/lib/wysihtml5.js +18 -0
- data/app/assets/javascripts/droom/widgets.js.coffee +72 -111
- data/app/assets/stylesheets/droom.css.sass +195 -119
- data/app/assets/stylesheets/{_definitions.css.sass → droom/_mixins.css.sass} +28 -43
- data/app/assets/stylesheets/{lib → droom}/_popups.css.sass +0 -0
- data/app/assets/stylesheets/{lib → droom}/_toolbar.css.sass +2 -4
- data/app/assets/stylesheets/droom/_variables.css.sass +46 -0
- data/app/assets/stylesheets/lib/_kalendae.css.sass +2 -2
- data/app/controllers/droom/engine_controller.rb +5 -1
- data/app/controllers/droom/events_controller.rb +9 -6
- data/app/controllers/droom/groups_controller.rb +1 -1
- data/app/controllers/droom/organisations_controller.rb +1 -1
- data/app/controllers/droom/people_controller.rb +18 -18
- data/app/controllers/droom/suggestions_controller.rb +0 -1
- data/app/controllers/droom/user_confirmations_controller.rb +55 -0
- data/app/controllers/droom/users_controller.rb +1 -2
- data/app/controllers/droom/youtube_controller.rb +4 -1
- data/app/helpers/droom/droom_helper.rb +3 -3
- data/app/models/droom/document.rb +3 -27
- data/app/models/droom/event.rb +0 -12
- data/app/models/droom/folder.rb +9 -10
- data/app/models/droom/group.rb +0 -7
- data/app/models/droom/person.rb +13 -20
- data/app/models/droom/scrap.rb +2 -12
- data/app/models/droom/user.rb +29 -5
- data/app/models/droom/venue.rb +0 -17
- data/app/views/{droom/users/unwelcome.en.html.haml → devise/confirmations/failure.en.html.haml} +5 -2
- data/app/views/devise/confirmations/new.html.haml +25 -0
- data/app/views/devise/confirmations/show.html.haml +32 -0
- data/app/views/droom/dashboard/_documents.html.haml +9 -0
- data/app/views/droom/dashboard/_folders.html.haml +1 -1
- data/app/views/droom/dashboard/_groups.html.haml +9 -0
- data/app/views/droom/documents/_document.html.haml +1 -1
- data/app/views/droom/documents/_table_document.html.haml +1 -1
- data/app/views/droom/events/_event.html.haml +0 -1
- data/app/views/droom/events/edit.html.haml +1 -1
- data/app/views/droom/events/index.html.haml +6 -4
- data/app/views/droom/events/new.html.haml +1 -1
- data/app/views/droom/events/show.html.haml +1 -1
- data/app/views/droom/folders/_folder.html.haml +2 -2
- data/app/views/droom/folders/edit.html.haml +1 -1
- data/app/views/droom/folders/index.html.haml +3 -1
- data/app/views/droom/folders/new.html.haml +1 -1
- data/app/views/droom/groups/_group.html.haml +6 -3
- data/app/views/droom/groups/edit.html.haml +1 -1
- data/app/views/droom/groups/index.html.haml +20 -1
- data/app/views/droom/groups/new.html.haml +1 -1
- data/app/views/droom/organisations/_action_menu.html.haml +3 -1
- data/app/views/droom/organisations/_organisation.html.haml +0 -1
- data/app/views/droom/organisations/edit.html.haml +1 -1
- data/app/views/droom/organisations/new.html.haml +1 -1
- data/app/views/droom/panels/_dropbox.html.haml +1 -1
- data/app/views/droom/panels/{_search.html.haml → _suggestions.html.haml} +3 -4
- data/app/views/droom/people/_form.html.haml +15 -19
- data/app/views/droom/people/_listing.html.haml +1 -1
- data/app/views/droom/people/_person.html.haml +3 -3
- data/app/views/droom/people/_suggested.html.haml +1 -1
- data/app/views/droom/people/edit.html.haml +1 -1
- data/app/views/droom/people/new.html.haml +1 -1
- data/app/views/droom/people/show.html.haml +31 -1
- data/app/views/droom/scraps/full/_document.html.haml +1 -1
- data/app/views/droom/scraps/thumbs/_document.html.haml +2 -2
- data/app/views/droom/shared/{_search_form.html.haml → _suggestion_form.html.haml} +1 -1
- data/app/views/droom/users/_extra_columns.html.haml +0 -0
- data/app/views/droom/users/_extra_columns_header.html.haml +0 -0
- data/app/views/droom/users/_extra_columns_note.html.haml +0 -0
- data/app/views/droom/users/_form.html.haml +5 -12
- data/app/views/droom/users/_user_or_person.html.haml +24 -15
- data/app/views/droom/users/_users_table.html.haml +24 -6
- data/app/views/droom/users/edit.html.haml +1 -1
- data/app/views/droom/users/index.html.haml +2 -5
- data/config/locales/devise.en.yml +1 -1
- data/config/locales/en.yml +22 -7
- data/config/routes.rb +4 -3
- data/lib/droom.rb +28 -14
- data/lib/droom/engine.rb +2 -0
- data/lib/droom/version.rb +1 -1
- data/spec/dummy/log/dav.log +1 -0
- data/spec/dummy/log/development.log +2 -0
- data/spec/dummy/log/test.log +1 -0
- metadata +29 -33
- data/app/controllers/droom/confirmations_controller.rb +0 -38
- data/app/controllers/droom/search_controller.rb +0 -66
- data/app/views/cropper/uploads/_crop.html.haml +0 -46
- data/app/views/devise/mailer/confirmation_instructions.en.html.haml +0 -24
- data/app/views/devise/mailer/reset_password_instructions.en.html.haml +0 -21
- data/app/views/droom/shared/_search_results.html.haml +0 -9
- data/app/views/droom/shared/search.html.haml +0 -18
@@ -16,11 +16,15 @@
|
|
16
16
|
%td.name
|
17
17
|
- if person
|
18
18
|
= link_to person.full_name, person_url(person)
|
19
|
+
= action_menulink(person)
|
20
|
+
= action_menu(person)
|
19
21
|
- else
|
20
22
|
= user_or_person.full_name
|
23
|
+
|
21
24
|
%td.email
|
22
25
|
= mail_to user_or_person.email
|
23
|
-
|
26
|
+
|
27
|
+
%td.invited{:data => {:hoverable => true}}
|
24
28
|
- if user
|
25
29
|
%span.yes
|
26
30
|
- else
|
@@ -28,7 +32,8 @@
|
|
28
32
|
= link_to t(:invite), invite_person_url(person), :class => "no", :data => {:action => "replace", :replaced => "##{rowid}"}
|
29
33
|
- else
|
30
34
|
%span.not_applicable
|
31
|
-
|
35
|
+
|
36
|
+
%td.confirmed{:data => {:hoverable => true}}
|
32
37
|
- if user
|
33
38
|
- if user.confirmed?
|
34
39
|
%span.yes
|
@@ -36,18 +41,8 @@
|
|
36
41
|
= link_to " ", user_url(user, :user => { :confirm => true }, :format => :js, :response_partial => "user_or_person"), :class => "no", :method => :put, :remote => true, :data => { :action => "replace", :replaced => "##{rowid}" }
|
37
42
|
- else
|
38
43
|
%span.not_applicable
|
39
|
-
|
40
|
-
|
41
|
-
- if user.admin?
|
42
|
-
= link_to " ", user_url(user, :user => { :admin => false }, :format => :js, :response_partial => "user_or_person"), :class => "yes", :method => :put, :remote => true, :data => { :action => "replace", :replaced => "##{rowid}" }
|
43
|
-
- else
|
44
|
-
= link_to " ", user_url(user, :user => { :admin => true }, :format => :js, :response_partial => "user_or_person"), :class => "no", :method => :put, :remote => true, :data => { :action => "replace", :replaced => "##{rowid}" }
|
45
|
-
- else
|
46
|
-
%span.not_applicable
|
47
|
-
%td.settings
|
48
|
-
- if user
|
49
|
-
= link_to " ", edit_user_url(user), :data => {:action => "popup"}
|
50
|
-
%td.directory
|
44
|
+
|
45
|
+
%td.directory{:data => {:hoverable => true}}
|
51
46
|
- if user
|
52
47
|
- if person
|
53
48
|
= link_to " ", person_url(person, :format => :js), :class => "yes", :method => :delete, :remote => true, :confirm => "Really delete person?", :data => { :action => "replace", :replaced => "##{rowid}" }
|
@@ -55,9 +50,23 @@
|
|
55
50
|
= link_to " ", people_url(:person => { :user_id => user.id, :email => user.email, :name => user.name, :forename => user.forename}, :format => :js), :class => "no", :method => :post, :remote => true, :data => { :action => "replace", :replaced => "##{rowid}" }
|
56
51
|
- else
|
57
52
|
%span.yes
|
53
|
+
|
54
|
+
%td.admin{:data => {:hoverable => true}}
|
55
|
+
- if user
|
56
|
+
- if user.admin?
|
57
|
+
= link_to " ", user_url(user, :user => { :admin => false }, :format => :js, :response_partial => "user_or_person"), :class => "yes", :method => :put, :remote => true, :data => { :action => "replace", :replaced => "##{rowid}" }
|
58
|
+
- else
|
59
|
+
= link_to " ", user_url(user, :user => { :admin => true }, :format => :js, :response_partial => "user_or_person"), :class => "no", :method => :put, :remote => true, :data => { :action => "replace", :replaced => "##{rowid}" }
|
60
|
+
- else
|
61
|
+
%span.not_applicable
|
62
|
+
|
63
|
+
%td.spacer
|
64
|
+
|
58
65
|
- Droom::Group.all.each do |group|
|
59
|
-
%td.group
|
66
|
+
%td.group{:class => "group #{group.slug}", :data => {:hoverable => true}}
|
60
67
|
- if person
|
61
68
|
= render :partial => "droom/memberships/membership_toggle", :locals => { :group => group, :person => person}
|
62
69
|
- else
|
63
70
|
%span.not_applicable
|
71
|
+
|
72
|
+
= render :partial => 'extra_columns', :locals => {:person => person, :user => user}
|
@@ -1,17 +1,35 @@
|
|
1
|
+
- groups = Droom::Group.all
|
2
|
+
|
1
3
|
- if @everyone.any?
|
2
4
|
%table.main.users{:data => {:refreshable => true, :url => "#{users_path}.js"}}
|
3
5
|
%thead
|
4
6
|
%tr
|
5
|
-
- %w{name email invited confirmed admin
|
7
|
+
- %w{name email invited confirmed directory admin}.each do |col|
|
6
8
|
%th{:class => col}
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
- unless col == "name" || col == "email"
|
10
|
+
%span.rotated
|
11
|
+
= col
|
12
|
+
%th.spacer
|
13
|
+
- groups.each do |group|
|
14
|
+
%th.group
|
15
|
+
%span.rotated
|
16
|
+
= group.name
|
17
|
+
|
18
|
+
= render :partial => 'extra_columns_header'
|
19
|
+
|
20
|
+
%tr
|
21
|
+
%td{:colspan => 2}
|
22
|
+
%th.note{:colspan => 4}
|
23
|
+
= t(:status)
|
24
|
+
%th.spacer.note
|
25
|
+
%th.note{:colspan => groups.count}
|
26
|
+
= t(:membership)
|
27
|
+
|
28
|
+
= render :partial => 'extra_columns_note'
|
11
29
|
|
12
30
|
= render :partial => 'user_or_person', :collection => @everyone
|
13
31
|
|
14
32
|
- else
|
15
33
|
.everyone
|
16
34
|
%p
|
17
|
-
No users have been created.
|
35
|
+
No users have been created. It is odd that you can see this page.
|
@@ -1,12 +1,9 @@
|
|
1
1
|
#main.users
|
2
2
|
|
3
3
|
%p
|
4
|
-
|
5
|
-
The distinction is needed because a person can appear in the directory without having a login account,
|
6
|
-
and a user can log in to administer the site without being a person in the directory.
|
4
|
+
= t(:users_introduction)
|
7
5
|
%p
|
8
|
-
|
9
|
-
Clicking a green button under 'directory', for example, will entirely delete a person from the system. Please handle with care.
|
6
|
+
= t(:users_warning)
|
10
7
|
|
11
8
|
= render :partial => "droom/users/users_table"
|
12
9
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
en:
|
4
4
|
devise:
|
5
|
-
|
5
|
+
user_confirmations:
|
6
6
|
confirmed: "Your account was successfully confirmed. You are now signed in."
|
7
7
|
send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
|
8
8
|
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
|
data/config/locales/en.yml
CHANGED
@@ -30,7 +30,7 @@ en:
|
|
30
30
|
description: "Mission and description"
|
31
31
|
person:
|
32
32
|
invite_on_creation: "Invite on creation"
|
33
|
-
admin_user: "as admin user"
|
33
|
+
admin_user: "...as admin user"
|
34
34
|
post_line1: "Address"
|
35
35
|
post_line2: ""
|
36
36
|
post_city: "City"
|
@@ -38,6 +38,7 @@ en:
|
|
38
38
|
post_country: "Country"
|
39
39
|
post_code: "Postcode"
|
40
40
|
dob: "Date of birth"
|
41
|
+
organisation_id: "Organisation"
|
41
42
|
scrap:
|
42
43
|
scraptype:
|
43
44
|
image: "Image"
|
@@ -101,6 +102,7 @@ en:
|
|
101
102
|
add_group: "add a group"
|
102
103
|
add_to_stream: "add to stream"
|
103
104
|
add_subfolder: add a sub-folder
|
105
|
+
by: "by"
|
104
106
|
added_to: "has been added to '%{group}'."
|
105
107
|
continue: "Continue"
|
106
108
|
copy: "copy"
|
@@ -126,7 +128,7 @@ en:
|
|
126
128
|
confirm_remove_member: "Are you sure you want to remove '%{name}' from '%{group}'?"
|
127
129
|
confirm_uninvite_group: "Are you sure you want to remove '%{name}' from '%{event_name}'?"
|
128
130
|
confirm_uninvite_person: "Are you sure you want to remove '%{name}' from '%{event_name}'?"
|
129
|
-
contact_information_unavailable: "No contact
|
131
|
+
contact_information_unavailable: "No contact"
|
130
132
|
copy_to_dropbox: "Copy folder to dropbox"
|
131
133
|
delete_event: "remove event"
|
132
134
|
delete_folder: "delete folder"
|
@@ -157,7 +159,7 @@ en:
|
|
157
159
|
dropbox_copy_personal: "Copy only the most useful folders"
|
158
160
|
dropbox_copy_topics: "Copy only selected topics"
|
159
161
|
dropbox_copy_selected: "Copy only when you click"
|
160
|
-
dropbox_introduction: "We can copy document folders to your dropbox either automatically or in response to your selections. They will be placed within a new '
|
162
|
+
dropbox_introduction: "We can copy document folders to your dropbox either automatically or in response to your selections. They will be placed within a new '%{name}' folder. To begin, please click the link below and log into your dropbox."
|
161
163
|
edit: "Edit"
|
162
164
|
edit_event: "edit event"
|
163
165
|
edit_folder: "edit folder"
|
@@ -183,7 +185,7 @@ en:
|
|
183
185
|
folder: "folder"
|
184
186
|
follow_stream: "Follow the stream in an RSS reader"
|
185
187
|
group: "group"
|
186
|
-
group_admin: "
|
188
|
+
group_admin: "Directory"
|
187
189
|
group_created: "Group '%{name}' created"
|
188
190
|
calendar: "Calendar"
|
189
191
|
library: "Library"
|
@@ -200,6 +202,7 @@ en:
|
|
200
202
|
your_preferences_saved: "Thank you. Your preferences have been updated"
|
201
203
|
posted: "Posted"
|
202
204
|
directory: "Directory"
|
205
|
+
hide_empty_folders: "hide empty folders"
|
203
206
|
invite: "Invite"
|
204
207
|
invite_group: "invite a group"
|
205
208
|
invite_group_to: "Invite a group to %{name}"
|
@@ -278,6 +281,7 @@ en:
|
|
278
281
|
save_person: "Save person"
|
279
282
|
save_your_profile: "Save profile"
|
280
283
|
send_reset_instructions: "Send reset instructions"
|
284
|
+
suggestions: "Suggestions"
|
281
285
|
manage_folders: "manage folders"
|
282
286
|
manage_groups: "manage groups"
|
283
287
|
manage_users: "manage users"
|
@@ -286,6 +290,10 @@ en:
|
|
286
290
|
my_future_events: "Your invitations"
|
287
291
|
my_past_events: "Your past events"
|
288
292
|
my_group_documents: "Your documents"
|
293
|
+
no_documents: "No documents to show"
|
294
|
+
no_groups: "You have no group memberships"
|
295
|
+
no_past_events: No past events to show
|
296
|
+
no_person_description: "No biography available."
|
289
297
|
quick_search: "Quick search"
|
290
298
|
future_events: "Events coming up"
|
291
299
|
event_name: "Event name"
|
@@ -295,13 +303,12 @@ en:
|
|
295
303
|
venue_post_code: "Post Code"
|
296
304
|
of_the: "of the"
|
297
305
|
preferred_name_explanation: "This is the name by which we will address you. To change your directory entry, please edit your profile."
|
298
|
-
no_documents: "Sorry: there are no documents accessible by your account."
|
299
306
|
no_people: "Sorry: there are no directory entries accessible by your account."
|
300
307
|
no_stream: "Nothing yet to show here."
|
301
308
|
search_still_dumb: "This is a very basic title search. Full-text coming soon."
|
302
309
|
scrap_title: "Title (optional)"
|
303
310
|
unattached_folder_note: "A folder not attached to anything is visible to everyone and can be used to share documents of general interest."
|
304
|
-
user_admin: "
|
311
|
+
user_admin: "User admin"
|
305
312
|
stream: "Stream"
|
306
313
|
uninvite: "uninvite"
|
307
314
|
more: "more..."
|
@@ -309,8 +316,12 @@ en:
|
|
309
316
|
reject: "reject"
|
310
317
|
phone_unknown: "phone unknown"
|
311
318
|
group_already_invited: "Already invited: select to reissue any missing personal invitations."
|
319
|
+
users_introduction: "Here 'people' are the people listed in the directory, and 'users' are the accounts they use to log in. The distinction is needed because a person can appear in the directory without having a login account and a user can log in to administer the site without being a person in the directory."
|
320
|
+
users_warning: "Most of these columns are now clickable and can be used to make quite large changes quickly. Clicking a green button under 'directory', for example, will delete a person object and all its group memberships. Please handle with care."
|
312
321
|
your_invitations: "Your invitations"
|
313
322
|
invitation_successful: "Success: %{name} has been invited."
|
323
|
+
welcome_preamble: "Welcome to the data room. Before we do anything else, please choose a password for your account."
|
324
|
+
hello_name: "Hello %{name}."
|
314
325
|
future_event_count:
|
315
326
|
zero: "No events coming up"
|
316
327
|
one: "One event coming up"
|
@@ -359,4 +370,8 @@ en:
|
|
359
370
|
personed: "people in the directory"
|
360
371
|
administrative: "administrators"
|
361
372
|
selected: "selected users"
|
362
|
-
droom/user: "users"
|
373
|
+
droom/user: "users"
|
374
|
+
|
375
|
+
apps:
|
376
|
+
data_room: "Data<br />Room"
|
377
|
+
|
data/config/routes.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Droom::Engine.routes.draw do
|
1
|
+
Droom::Engine.routes.draw do
|
2
2
|
|
3
3
|
match '/' => DAV4Rack::Handler.new(
|
4
4
|
:root => Rails.root.to_s,
|
@@ -11,8 +11,10 @@ Droom::Engine.routes.draw do
|
|
11
11
|
|
12
12
|
# intermediate confirmation step to allow invitation without setting a password
|
13
13
|
devise_scope :user do
|
14
|
-
|
14
|
+
get "/users/:id/welcome/:confirmation_token" => "user_confirmations#show", :as => :welcome
|
15
|
+
put "/users/:id/confirm" => "user_confirmations#update", :as => :confirm_password
|
15
16
|
end
|
17
|
+
|
16
18
|
|
17
19
|
resources :users
|
18
20
|
resources :documents
|
@@ -80,7 +82,6 @@ Droom::Engine.routes.draw do
|
|
80
82
|
match '/help/:slug', :to => 'pages#show', :as => 'help_page'
|
81
83
|
match '/help', :to => 'pages#index', :as => 'help'
|
82
84
|
|
83
|
-
match '/search', :to => 'search#index', :as => "search"
|
84
85
|
match '/videos.:format', :to => 'youtube#index', :as => "videos"
|
85
86
|
match '/videos/:yt_id.:format', :to => 'youtube#show', :as => "video"
|
86
87
|
match '/suggestions.:format', :to => 'suggestions#index', :as => "suggestions", :defaults => {:format => 'json'}
|
data/lib/droom.rb
CHANGED
@@ -17,6 +17,7 @@ module Droom
|
|
17
17
|
# Boolean items also offer the interrogative form.
|
18
18
|
|
19
19
|
mattr_accessor :root_path,
|
20
|
+
:home_url,
|
20
21
|
:suggestible_classes,
|
21
22
|
:searchable_classes,
|
22
23
|
:yt_client,
|
@@ -33,8 +34,10 @@ module Droom
|
|
33
34
|
:dav_root,
|
34
35
|
:dav_subdomain,
|
35
36
|
:use_forenames,
|
37
|
+
:use_biogs,
|
36
38
|
:use_separate_mobile_number,
|
37
39
|
:use_titles,
|
40
|
+
:use_organisations,
|
38
41
|
:enable_mailing_lists,
|
39
42
|
:mailman_table_name,
|
40
43
|
:mailing_lists_active_by_default,
|
@@ -44,16 +47,22 @@ module Droom
|
|
44
47
|
:default_event_private,
|
45
48
|
:dropbox_app_key,
|
46
49
|
:dropbox_app_secret,
|
50
|
+
:dropbox_app_name,
|
47
51
|
:user_defaults,
|
48
52
|
:people_sort,
|
49
53
|
:required_calendar_names,
|
50
54
|
:stream_shared,
|
51
|
-
:aws_bucket_name
|
55
|
+
:aws_bucket_name,
|
56
|
+
:calendar_closed
|
52
57
|
|
53
58
|
class DroomError < StandardError; end
|
54
59
|
class PermissionDenied < DroomError; end
|
55
60
|
|
56
61
|
class << self
|
62
|
+
def home_url
|
63
|
+
@@home_url ||= "http://example.com"
|
64
|
+
end
|
65
|
+
|
57
66
|
def layout
|
58
67
|
@@layout ||= "droom/application"
|
59
68
|
end
|
@@ -103,7 +112,7 @@ module Droom
|
|
103
112
|
end
|
104
113
|
|
105
114
|
def panels
|
106
|
-
@@panels ||= %w{dropbox email rss devices readers account
|
115
|
+
@@panels ||= %w{dropbox email rss devices readers account suggestions admin}
|
107
116
|
end
|
108
117
|
|
109
118
|
def scrap_types
|
@@ -127,6 +136,14 @@ module Droom
|
|
127
136
|
def use_titles?
|
128
137
|
!!@@use_titles
|
129
138
|
end
|
139
|
+
|
140
|
+
def use_biogs?
|
141
|
+
!!@@use_biogs
|
142
|
+
end
|
143
|
+
|
144
|
+
def use_organisations?
|
145
|
+
!!@@use_organisations
|
146
|
+
end
|
130
147
|
|
131
148
|
def stream_shared?
|
132
149
|
!!@@stream_shared
|
@@ -140,6 +157,14 @@ module Droom
|
|
140
157
|
!!@@enable_mailing_lists
|
141
158
|
end
|
142
159
|
|
160
|
+
def calendar_closed?
|
161
|
+
!!@@calendar_closed
|
162
|
+
end
|
163
|
+
|
164
|
+
def dropbox_app_name
|
165
|
+
@@dropbox_app_name ||= 'droom'
|
166
|
+
end
|
167
|
+
|
143
168
|
def mailman_table_name
|
144
169
|
@@mailman_table_name ||= 'mailman_mysql'
|
145
170
|
end
|
@@ -166,17 +191,6 @@ module Droom
|
|
166
191
|
}
|
167
192
|
end
|
168
193
|
|
169
|
-
def searchable_classes
|
170
|
-
@@searchable_classes ||= {
|
171
|
-
"event" => "Droom::Event",
|
172
|
-
"document" => "Droom::Document",
|
173
|
-
"person" => "Droom::Person",
|
174
|
-
"group" => "Droom::Group",
|
175
|
-
"scrap" => "Droom::Scrap",
|
176
|
-
"venue" => "Droom::Venue"
|
177
|
-
}
|
178
|
-
end
|
179
|
-
|
180
194
|
def add_suggestible_class(label, klass=nil)
|
181
195
|
klass ||= label.titlecase
|
182
196
|
suggestible_classes[label] = klass.to_s
|
@@ -197,7 +211,7 @@ module Droom
|
|
197
211
|
def required_calendar_names
|
198
212
|
@@required_calendar_names ||= %w{main stream}
|
199
213
|
end
|
200
|
-
|
214
|
+
|
201
215
|
# Droom's preferences are arbitrary and open-ended. You can ask for any preference key: if it
|
202
216
|
# doesn't exist you just get back the default value, or nil if there isn't one. This is where you
|
203
217
|
# set the defaults.
|
data/lib/droom/engine.rb
CHANGED
data/lib/droom/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
# Logfile created on 12:43:24 by logger.rb/31641
|
@@ -0,0 +1 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: droom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -380,23 +380,7 @@ dependencies:
|
|
380
380
|
- !ruby/object:Gem::Version
|
381
381
|
version: '0'
|
382
382
|
- !ruby/object:Gem::Dependency
|
383
|
-
name:
|
384
|
-
requirement: !ruby/object:Gem::Requirement
|
385
|
-
none: false
|
386
|
-
requirements:
|
387
|
-
- - ! '>='
|
388
|
-
- !ruby/object:Gem::Version
|
389
|
-
version: '0'
|
390
|
-
type: :runtime
|
391
|
-
prerelease: false
|
392
|
-
version_requirements: !ruby/object:Gem::Requirement
|
393
|
-
none: false
|
394
|
-
requirements:
|
395
|
-
- - ! '>='
|
396
|
-
- !ruby/object:Gem::Version
|
397
|
-
version: '0'
|
398
|
-
- !ruby/object:Gem::Dependency
|
399
|
-
name: sunspot_solr
|
383
|
+
name: yomu
|
400
384
|
requirement: !ruby/object:Gem::Requirement
|
401
385
|
none: false
|
402
386
|
requirements:
|
@@ -536,11 +520,13 @@ files:
|
|
536
520
|
- app/assets/images/droom/dropbox.png
|
537
521
|
- app/assets/images/droom/dropbox_button.png
|
538
522
|
- app/assets/images/droom/dropbox_button_small.png
|
523
|
+
- app/assets/images/droom/dropbox_small.png
|
539
524
|
- app/assets/images/droom/edit.png
|
540
525
|
- app/assets/images/droom/expand.png
|
541
526
|
- app/assets/images/droom/expander.png
|
542
527
|
- app/assets/images/droom/folder.png
|
543
528
|
- app/assets/images/droom/greyblob.png
|
529
|
+
- app/assets/images/droom/handle.png
|
544
530
|
- app/assets/images/droom/help/goodreader.jpg
|
545
531
|
- app/assets/images/droom/ical.png
|
546
532
|
- app/assets/images/droom/icons.png
|
@@ -560,6 +546,7 @@ files:
|
|
560
546
|
- app/assets/images/droom/playable.png
|
561
547
|
- app/assets/images/droom/plus_bullet.png
|
562
548
|
- app/assets/images/droom/revoke.png
|
549
|
+
- app/assets/images/droom/revoke_small.png
|
563
550
|
- app/assets/images/droom/scrap_icons.png
|
564
551
|
- app/assets/images/droom/search.png
|
565
552
|
- app/assets/images/droom/setup.png
|
@@ -586,6 +573,7 @@ files:
|
|
586
573
|
- app/assets/images/droom/tinyarrows.png
|
587
574
|
- app/assets/images/droom/tinysymbols.png
|
588
575
|
- app/assets/images/droom/to_dropbox.png
|
576
|
+
- app/assets/images/droom/toggle.png
|
589
577
|
- app/assets/images/droom/twister.png
|
590
578
|
- app/assets/images/droom/twisty.png
|
591
579
|
- app/assets/images/droom/Untitled-1.png
|
@@ -612,14 +600,14 @@ files:
|
|
612
600
|
- app/assets/javascripts/droom/utilities.js.coffee
|
613
601
|
- app/assets/javascripts/droom/widgets.js.coffee
|
614
602
|
- app/assets/javascripts/droom.js.coffee
|
615
|
-
- app/assets/stylesheets/
|
603
|
+
- app/assets/stylesheets/droom/_mixins.css.sass
|
604
|
+
- app/assets/stylesheets/droom/_popups.css.sass
|
605
|
+
- app/assets/stylesheets/droom/_toolbar.css.sass
|
606
|
+
- app/assets/stylesheets/droom/_variables.css.sass
|
616
607
|
- app/assets/stylesheets/droom.css.sass
|
617
608
|
- app/assets/stylesheets/lib/_kalendae.css.sass
|
618
|
-
- app/assets/stylesheets/lib/_popups.css.sass
|
619
|
-
- app/assets/stylesheets/lib/_toolbar.css.sass
|
620
609
|
- app/controllers/droom/agenda_categories_controller.rb
|
621
610
|
- app/controllers/droom/calendars_controller.rb
|
622
|
-
- app/controllers/droom/confirmations_controller.rb
|
623
611
|
- app/controllers/droom/dashboard_controller.rb
|
624
612
|
- app/controllers/droom/documents_controller.rb
|
625
613
|
- app/controllers/droom/dropbox_tokens_controller.rb
|
@@ -635,8 +623,8 @@ files:
|
|
635
623
|
- app/controllers/droom/people_controller.rb
|
636
624
|
- app/controllers/droom/preferences_controller.rb
|
637
625
|
- app/controllers/droom/scraps_controller.rb
|
638
|
-
- app/controllers/droom/search_controller.rb
|
639
626
|
- app/controllers/droom/suggestions_controller.rb
|
627
|
+
- app/controllers/droom/user_confirmations_controller.rb
|
640
628
|
- app/controllers/droom/users_controller.rb
|
641
629
|
- app/controllers/droom/venues_controller.rb
|
642
630
|
- app/controllers/droom/youtube_controller.rb
|
@@ -668,9 +656,9 @@ files:
|
|
668
656
|
- app/models/droom/user.rb
|
669
657
|
- app/models/droom/user_action_observer.rb
|
670
658
|
- app/models/droom/venue.rb
|
671
|
-
- app/views/
|
672
|
-
- app/views/devise/
|
673
|
-
- app/views/devise/
|
659
|
+
- app/views/devise/confirmations/failure.en.html.haml
|
660
|
+
- app/views/devise/confirmations/new.html.haml
|
661
|
+
- app/views/devise/confirmations/show.html.haml
|
674
662
|
- app/views/devise/passwords/edit.html.haml
|
675
663
|
- app/views/devise/passwords/new.html.haml
|
676
664
|
- app/views/devise/sessions/new.html.haml
|
@@ -681,8 +669,10 @@ files:
|
|
681
669
|
- app/views/droom/calendars/show.rss.builder
|
682
670
|
- app/views/droom/confirmations/show.html.haml
|
683
671
|
- app/views/droom/dashboard/_calendar.html.haml
|
672
|
+
- app/views/droom/dashboard/_documents.html.haml
|
684
673
|
- app/views/droom/dashboard/_folders.html.haml
|
685
674
|
- app/views/droom/dashboard/_future_events.html.haml
|
675
|
+
- app/views/droom/dashboard/_groups.html.haml
|
686
676
|
- app/views/droom/dashboard/_invitations.html.haml
|
687
677
|
- app/views/droom/dashboard/_past_events.haml
|
688
678
|
- app/views/droom/dashboard/_quicksearch.html.haml
|
@@ -788,7 +778,7 @@ files:
|
|
788
778
|
- app/views/droom/panels/_networks.html.haml
|
789
779
|
- app/views/droom/panels/_readers.html.haml
|
790
780
|
- app/views/droom/panels/_rss.html.haml
|
791
|
-
- app/views/droom/panels/
|
781
|
+
- app/views/droom/panels/_suggestions.html.haml
|
792
782
|
- app/views/droom/panels/_vcal.html.haml
|
793
783
|
- app/views/droom/people/_action_menu.html.haml
|
794
784
|
- app/views/droom/people/_created.html.haml
|
@@ -841,21 +831,21 @@ files:
|
|
841
831
|
- app/views/droom/shared/_navigation.html.haml
|
842
832
|
- app/views/droom/shared/_panels.html.haml
|
843
833
|
- app/views/droom/shared/_quicklinks.html.haml
|
844
|
-
- app/views/droom/shared/
|
845
|
-
- app/views/droom/shared/_search_results.html.haml
|
834
|
+
- app/views/droom/shared/_suggestion_form.html.haml
|
846
835
|
- app/views/droom/shared/_suggestions.html.haml
|
847
836
|
- app/views/droom/shared/_title_excerpt.haml
|
848
837
|
- app/views/droom/shared/_toolbar.html.haml
|
849
|
-
- app/views/droom/shared/search.html.haml
|
850
838
|
- app/views/droom/users/_confirmation.html.haml
|
851
839
|
- app/views/droom/users/_dropbox_status.html.haml
|
840
|
+
- app/views/droom/users/_extra_columns.html.haml
|
841
|
+
- app/views/droom/users/_extra_columns_header.html.haml
|
842
|
+
- app/views/droom/users/_extra_columns_note.html.haml
|
852
843
|
- app/views/droom/users/_form.html.haml
|
853
844
|
- app/views/droom/users/_user.html.haml
|
854
845
|
- app/views/droom/users/_user_or_person.html.haml
|
855
846
|
- app/views/droom/users/_users_table.html.haml
|
856
847
|
- app/views/droom/users/edit.html.haml
|
857
848
|
- app/views/droom/users/index.html.haml
|
858
|
-
- app/views/droom/users/unwelcome.en.html.haml
|
859
849
|
- app/views/droom/venues/_search_result.html.haml
|
860
850
|
- app/views/droom/venues/_suggested.html.haml
|
861
851
|
- app/views/droom/venues/index.html.haml
|
@@ -986,7 +976,10 @@ files:
|
|
986
976
|
- spec/dummy/db/migrate/20130201103737_mobile_phones.droom.rb
|
987
977
|
- spec/dummy/db/migrate/20130201103738_mailing_lists.droom.rb
|
988
978
|
- spec/dummy/db/schema.rb
|
979
|
+
- spec/dummy/log/dav.log
|
980
|
+
- spec/dummy/log/development.log
|
989
981
|
- spec/dummy/log/sunspot-solr-test.log.1
|
982
|
+
- spec/dummy/log/test.log
|
990
983
|
- spec/dummy/public/404.html
|
991
984
|
- spec/dummy/public/422.html
|
992
985
|
- spec/dummy/public/500.html
|
@@ -1068,7 +1061,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1068
1061
|
version: '0'
|
1069
1062
|
requirements: []
|
1070
1063
|
rubyforge_project:
|
1071
|
-
rubygems_version: 1.8.
|
1064
|
+
rubygems_version: 1.8.23
|
1072
1065
|
signing_key:
|
1073
1066
|
specification_version: 3
|
1074
1067
|
summary: Droom is your new data room.
|
@@ -1126,7 +1119,10 @@ test_files:
|
|
1126
1119
|
- spec/dummy/db/migrate/20130201103737_mobile_phones.droom.rb
|
1127
1120
|
- spec/dummy/db/migrate/20130201103738_mailing_lists.droom.rb
|
1128
1121
|
- spec/dummy/db/schema.rb
|
1122
|
+
- spec/dummy/log/dav.log
|
1123
|
+
- spec/dummy/log/development.log
|
1129
1124
|
- spec/dummy/log/sunspot-solr-test.log.1
|
1125
|
+
- spec/dummy/log/test.log
|
1130
1126
|
- spec/dummy/public/404.html
|
1131
1127
|
- spec/dummy/public/422.html
|
1132
1128
|
- spec/dummy/public/500.html
|