quadro 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +3 -2
- data/app/assets/javascripts/quadro/application.js.coffee +2 -2
- data/app/assets/javascripts/quadro/quadro.js.coffee +6 -4
- data/app/assets/javascripts/quadro/widget.js.coffee +0 -2
- data/app/assets/stylesheets/quadro/application.css.sass +0 -1
- data/app/assets/stylesheets/quadro/quadro.css.sass +9 -0
- data/app/controllers/quadro/application_controller.rb +1 -0
- data/app/controllers/quadro/assets_controller.rb +15 -3
- data/app/controllers/quadro/pages_controller.rb +35 -6
- data/app/controllers/quadro/tools_controller.rb +1 -0
- data/app/controllers/quadro/widgets_controller.rb +6 -1
- data/app/models/quadro/page.rb +1 -1
- data/app/views/layouts/quadro/application.html.haml +1 -0
- data/app/views/layouts/quadro/devise.html.haml +2 -0
- data/app/views/quadro/assets/create.js.erb +0 -2
- data/app/views/quadro/assets/destroy.js.erb +0 -2
- data/app/views/quadro/assets/image/_image.html.haml +2 -2
- data/app/views/quadro/assets/slide/_slide.html.haml +2 -2
- data/app/views/quadro/assets/update.js.erb +1 -3
- data/app/views/quadro/pages/_edit.html.haml +3 -3
- data/app/views/quadro/pages/create.js.erb +3 -5
- data/app/views/quadro/pages/destroy.js.erb +0 -2
- data/app/views/quadro/pages/form.js.erb +0 -2
- data/app/views/quadro/pages/publish.js.erb +2 -2
- data/app/views/quadro/pages/unpublish.js.erb +2 -2
- data/app/views/quadro/pages/update.js.erb +1 -3
- data/app/views/quadro/shared/_navigation.html.haml +2 -3
- data/app/views/quadro/shared/_toolbar.html.haml +24 -41
- data/app/views/quadro/shared/templates/page/_list.html.haml +1 -1
- data/app/views/quadro/shared/templates/page/_thumbnail.html.haml +1 -1
- data/app/views/quadro/tools/sitemap_notifier.js.erb +0 -1
- data/app/views/quadro/users/update.js.erb +1 -3
- data/app/views/quadro/widgets/form/_toolbar.html.haml +1 -1
- data/app/views/quadro/widgets/gallery/_toolbar.html.haml +1 -1
- data/app/views/quadro/widgets/html/_toolbar.html.haml +1 -1
- data/app/views/quadro/widgets/map/_toolbar.html.haml +1 -1
- data/app/views/quadro/widgets/slider/_toolbar.html.haml +1 -1
- data/app/views/quadro/widgets/video/_toolbar.html.haml +1 -1
- data/app/views/users/mailer/reset_password_instructions.html.haml +5 -6
- data/app/views/users/mailer/unlock_instructions.html.haml +4 -5
- data/app/views/users/passwords/edit.html.haml +2 -2
- data/app/views/users/passwords/new.html.haml +2 -2
- data/app/views/users/sessions/new.html.haml +2 -2
- data/app/views/users/shared/_links.html.haml +6 -6
- data/app/views/users/unlocks/new.html.haml +2 -2
- data/config/locales/quadro.en.yml +47 -0
- data/lib/generators/quadro/install/templates/app/views/quadro/shared/_navigation.html.haml +3 -4
- data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/page/_list.html.haml +1 -1
- data/lib/generators/quadro/install/templates/app/views/quadro/shared/templates/page/_thumbnail.html.haml +1 -1
- data/lib/quadro/loader.rb +2 -0
- data/lib/quadro/version.rb +1 -1
- data/test/dummy/app/views/quadro/shared/templates/page/_list.html.haml +1 -1
- data/test/dummy/app/views/quadro/shared/templates/page/_thumbnail.html.haml +1 -1
- data/test/dummy/config/application.rb +0 -1
- data/test/dummy/log/development.log +0 -2
- metadata +102 -12
- data/app/assets/javascripts/quadro/message.js.coffee +0 -6
- data/app/assets/javascripts/quadro/plugins/humane.min.js +0 -11
- data/app/assets/stylesheets/quadro/plugins/humane-libnotify.min.css +0 -1
- data/config/locales/devise.en.yml +0 -60
- data/config/locales/kaminari.en.yml +0 -17
- data/config/locales/simple_form.en.yml +0 -26
- data/test/dummy/db/development.sqlite3 +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.container
|
|
2
2
|
.row
|
|
3
|
-
.col-md-4.col-md-offset-4
|
|
3
|
+
.col-xs-10.col-sm-8.col-md-4.col-xs-offset-1.col-sm-offset-2.col-md-offset-4
|
|
4
4
|
.panel.panel-default
|
|
5
5
|
.panel-heading.text-center
|
|
6
6
|
= image_tag 'quadro/quadro-logo.png'
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
= form.hidden_field :reset_password_token
|
|
11
11
|
= form.input :password
|
|
12
12
|
= form.input :password_confirmation, input_html: { class: 'form-control' }
|
|
13
|
-
= form.submit '
|
|
13
|
+
= form.submit t('devise.passwords.edit.change_my_password'), class: 'btn btn-primary btn-block'
|
|
14
14
|
%br
|
|
15
15
|
= render 'users/shared/links'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.container
|
|
2
2
|
.row
|
|
3
|
-
.col-md-4.col-md-offset-4
|
|
3
|
+
.col-xs-10.col-sm-8.col-md-4.col-xs-offset-1.col-sm-offset-2.col-md-offset-4
|
|
4
4
|
.panel.panel-default
|
|
5
5
|
.panel-heading.text-center
|
|
6
6
|
= image_tag 'quadro/quadro-logo.png'
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |form|
|
|
9
9
|
= devise_error_messages!
|
|
10
10
|
= form.input :email, input_html: { class: 'form-control' }
|
|
11
|
-
= form.submit '
|
|
11
|
+
= form.submit t('devise.passwords.new.send_me_reset_password_instructions'), class: 'btn btn-primary btn-block'
|
|
12
12
|
%br
|
|
13
13
|
= render 'users/shared/links'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.container
|
|
2
2
|
.row
|
|
3
|
-
.col-md-4.col-md-offset-4
|
|
3
|
+
.col-xs-10.col-sm-8.col-md-4.col-xs-offset-1.col-sm-offset-2.col-md-offset-4
|
|
4
4
|
.panel.panel-default
|
|
5
5
|
.panel-heading.text-center
|
|
6
6
|
= image_tag 'quadro/quadro-logo.png'
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
= form.input :password, input_html: { class: 'form-control' }
|
|
11
11
|
- if devise_mapping.rememberable?
|
|
12
12
|
= form.input :remember_me, as: :boolean, wrapper_html: { class: 'checkbox' }
|
|
13
|
-
= form.submit '
|
|
13
|
+
= form.submit t('devise.sessions.new.sign_in'), class: 'btn btn-primary btn-block'
|
|
14
14
|
%br
|
|
15
15
|
= render 'users/shared/links'
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
- if controller_name != 'sessions'
|
|
2
|
-
= link_to '
|
|
2
|
+
= link_to t('devise.shared.links.sign_in'), new_session_path(resource_name)
|
|
3
3
|
%br/
|
|
4
4
|
- if devise_mapping.registerable? && controller_name != 'registrations'
|
|
5
|
-
= link_to '
|
|
5
|
+
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name)
|
|
6
6
|
%br/
|
|
7
7
|
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
|
8
|
-
= link_to '
|
|
8
|
+
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name)
|
|
9
9
|
%br/
|
|
10
10
|
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
|
11
|
-
= link_to '
|
|
11
|
+
= link_to t('devise.shared.links.didn_t_receive_confirmation_instructions'), new_confirmation_path(resource_name)
|
|
12
12
|
%br/
|
|
13
13
|
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
|
14
|
-
= link_to '
|
|
14
|
+
= link_to t('devise.shared.links.didn_t_receive_unlock_instructions'), new_unlock_path(resource_name)
|
|
15
15
|
%br/
|
|
16
16
|
- if devise_mapping.omniauthable?
|
|
17
17
|
- resource_class.omniauth_providers.each do |provider|
|
|
18
|
-
= link_to '
|
|
18
|
+
= link_to t('devise.shared.links.sign_in_with_provider', provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider)
|
|
19
19
|
%br/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.container
|
|
2
2
|
.row
|
|
3
|
-
.col-md-4.col-md-offset-4
|
|
3
|
+
.col-xs-10.col-sm-8.col-md-4.col-xs-offset-1.col-sm-offset-2.col-md-offset-4
|
|
4
4
|
.panel.panel-default
|
|
5
5
|
.panel-heading.text-center
|
|
6
6
|
= image_tag 'quadro/quadro-logo.png'
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |form|
|
|
9
9
|
= devise_error_messages!
|
|
10
10
|
= form.input :email, input_html: { class: 'form-control' }
|
|
11
|
-
= form.submit '
|
|
11
|
+
= form.submit t('devise.unlocks.new.resend_unlock_instructions'), class: 'btn btn-primary btn-block'
|
|
12
12
|
%br
|
|
13
13
|
= render 'users/shared/links'
|
|
@@ -3,3 +3,50 @@ en:
|
|
|
3
3
|
formats:
|
|
4
4
|
atom: "%FT%TZ"
|
|
5
5
|
rss: "%a, %d %b %Y %H:%M:%S %z"
|
|
6
|
+
simple_form:
|
|
7
|
+
"yes": "Yes"
|
|
8
|
+
"no": "No"
|
|
9
|
+
required:
|
|
10
|
+
text: "required"
|
|
11
|
+
mark: "*"
|
|
12
|
+
error_notification:
|
|
13
|
+
default_message: "Please review the problems below:"
|
|
14
|
+
labels:
|
|
15
|
+
defaults:
|
|
16
|
+
email: "E-mail"
|
|
17
|
+
password_confirmation: "Confirm password"
|
|
18
|
+
hints:
|
|
19
|
+
defaults:
|
|
20
|
+
placeholders:
|
|
21
|
+
defaults:
|
|
22
|
+
summary: "Text to display as description on search results"
|
|
23
|
+
navigation:
|
|
24
|
+
sign_in: "Sign in"
|
|
25
|
+
toolbar:
|
|
26
|
+
new: "New sub page"
|
|
27
|
+
edit: "Edit"
|
|
28
|
+
delete: "Delete"
|
|
29
|
+
publish: "Publish"
|
|
30
|
+
unpublish: "Unpublish"
|
|
31
|
+
gallery: "Gallery"
|
|
32
|
+
editor: "Editor"
|
|
33
|
+
sitemap: "Notify sitemap.xml"
|
|
34
|
+
profile: "Edit user"
|
|
35
|
+
sign_out: "Sign out"
|
|
36
|
+
flash:
|
|
37
|
+
created: "Successfully created"
|
|
38
|
+
not_created: "Was not successfully created"
|
|
39
|
+
updated: "Successfully updated"
|
|
40
|
+
not_updated: "Was not successfully updated"
|
|
41
|
+
deleted: "Successfully deleted"
|
|
42
|
+
could_not_be_deleted: "It could not be deleted"
|
|
43
|
+
not_deleted: "Was not successfully deleted"
|
|
44
|
+
published: "Successfully published"
|
|
45
|
+
not_published: "Was not successfully published"
|
|
46
|
+
unpublished: "Successfully unpublished"
|
|
47
|
+
not_unpublished: "Was not successfully unpublished"
|
|
48
|
+
notified: "Sitemap update notified"
|
|
49
|
+
confirmation:
|
|
50
|
+
page: "Are you sure of delete this page?"
|
|
51
|
+
image: "Are you sure of delete this image?"
|
|
52
|
+
slide: "Are you sure of delete this slide?"
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
.container
|
|
3
3
|
.navbar-header
|
|
4
4
|
%button.navbar-toggle.collapsed(data-target='#navigation' data-toggle='collapse' type='button')
|
|
5
|
-
%span.sr-only Toggle navigation
|
|
6
5
|
%span.icon-bar
|
|
7
6
|
%span.icon-bar
|
|
8
7
|
%span.icon-bar
|
|
9
8
|
= link_to root_path, class: 'navbar-brand' do
|
|
10
9
|
= Quadro.config.site
|
|
11
10
|
#navigation.collapse.navbar-collapse
|
|
11
|
+
= navigation_for root, class: "nav navbar-nav navbar-right"
|
|
12
12
|
- unless user_signed_in?
|
|
13
13
|
%ul.nav.navbar-nav.navbar-right
|
|
14
14
|
%li
|
|
15
|
-
= link_to new_user_session_path do
|
|
16
|
-
|
|
17
|
-
= navigation_for root, class: "nav navbar-nav navbar-right"
|
|
15
|
+
= link_to new_user_session_path, rel: "nofollow" do
|
|
16
|
+
= t('navigation.sign_in')
|
data/lib/quadro/loader.rb
CHANGED
data/lib/quadro/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quadro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hugo Gilmar Erazo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.2.
|
|
19
|
+
version: 3.2.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 3.2.
|
|
26
|
+
version: 3.2.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -430,6 +430,20 @@ dependencies:
|
|
|
430
430
|
- - ~>
|
|
431
431
|
- !ruby/object:Gem::Version
|
|
432
432
|
version: 0.12.1
|
|
433
|
+
- !ruby/object:Gem::Dependency
|
|
434
|
+
name: devise-i18n-views
|
|
435
|
+
requirement: !ruby/object:Gem::Requirement
|
|
436
|
+
requirements:
|
|
437
|
+
- - ~>
|
|
438
|
+
- !ruby/object:Gem::Version
|
|
439
|
+
version: 0.3.7
|
|
440
|
+
type: :runtime
|
|
441
|
+
prerelease: false
|
|
442
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
443
|
+
requirements:
|
|
444
|
+
- - ~>
|
|
445
|
+
- !ruby/object:Gem::Version
|
|
446
|
+
version: 0.3.7
|
|
433
447
|
- !ruby/object:Gem::Dependency
|
|
434
448
|
name: kaminari-i18n
|
|
435
449
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -444,6 +458,20 @@ dependencies:
|
|
|
444
458
|
- - ~>
|
|
445
459
|
- !ruby/object:Gem::Version
|
|
446
460
|
version: 0.3.2
|
|
461
|
+
- !ruby/object:Gem::Dependency
|
|
462
|
+
name: unobtrusive_flash
|
|
463
|
+
requirement: !ruby/object:Gem::Requirement
|
|
464
|
+
requirements:
|
|
465
|
+
- - ~>
|
|
466
|
+
- !ruby/object:Gem::Version
|
|
467
|
+
version: 3.2.0
|
|
468
|
+
type: :runtime
|
|
469
|
+
prerelease: false
|
|
470
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
471
|
+
requirements:
|
|
472
|
+
- - ~>
|
|
473
|
+
- !ruby/object:Gem::Version
|
|
474
|
+
version: 3.2.0
|
|
447
475
|
- !ruby/object:Gem::Dependency
|
|
448
476
|
name: gravatar_image_tag
|
|
449
477
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -514,6 +542,76 @@ dependencies:
|
|
|
514
542
|
- - ! '>='
|
|
515
543
|
- !ruby/object:Gem::Version
|
|
516
544
|
version: '0'
|
|
545
|
+
- !ruby/object:Gem::Dependency
|
|
546
|
+
name: thin
|
|
547
|
+
requirement: !ruby/object:Gem::Requirement
|
|
548
|
+
requirements:
|
|
549
|
+
- - ! '>='
|
|
550
|
+
- !ruby/object:Gem::Version
|
|
551
|
+
version: '0'
|
|
552
|
+
type: :development
|
|
553
|
+
prerelease: false
|
|
554
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
555
|
+
requirements:
|
|
556
|
+
- - ! '>='
|
|
557
|
+
- !ruby/object:Gem::Version
|
|
558
|
+
version: '0'
|
|
559
|
+
- !ruby/object:Gem::Dependency
|
|
560
|
+
name: better_errors
|
|
561
|
+
requirement: !ruby/object:Gem::Requirement
|
|
562
|
+
requirements:
|
|
563
|
+
- - ! '>='
|
|
564
|
+
- !ruby/object:Gem::Version
|
|
565
|
+
version: '0'
|
|
566
|
+
type: :development
|
|
567
|
+
prerelease: false
|
|
568
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
569
|
+
requirements:
|
|
570
|
+
- - ! '>='
|
|
571
|
+
- !ruby/object:Gem::Version
|
|
572
|
+
version: '0'
|
|
573
|
+
- !ruby/object:Gem::Dependency
|
|
574
|
+
name: binding_of_caller
|
|
575
|
+
requirement: !ruby/object:Gem::Requirement
|
|
576
|
+
requirements:
|
|
577
|
+
- - ! '>='
|
|
578
|
+
- !ruby/object:Gem::Version
|
|
579
|
+
version: '0'
|
|
580
|
+
type: :development
|
|
581
|
+
prerelease: false
|
|
582
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
583
|
+
requirements:
|
|
584
|
+
- - ! '>='
|
|
585
|
+
- !ruby/object:Gem::Version
|
|
586
|
+
version: '0'
|
|
587
|
+
- !ruby/object:Gem::Dependency
|
|
588
|
+
name: codeclimate-test-reporter
|
|
589
|
+
requirement: !ruby/object:Gem::Requirement
|
|
590
|
+
requirements:
|
|
591
|
+
- - ! '>='
|
|
592
|
+
- !ruby/object:Gem::Version
|
|
593
|
+
version: '0'
|
|
594
|
+
type: :development
|
|
595
|
+
prerelease: false
|
|
596
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
597
|
+
requirements:
|
|
598
|
+
- - ! '>='
|
|
599
|
+
- !ruby/object:Gem::Version
|
|
600
|
+
version: '0'
|
|
601
|
+
- !ruby/object:Gem::Dependency
|
|
602
|
+
name: i18n-debug
|
|
603
|
+
requirement: !ruby/object:Gem::Requirement
|
|
604
|
+
requirements:
|
|
605
|
+
- - ~>
|
|
606
|
+
- !ruby/object:Gem::Version
|
|
607
|
+
version: 1.0.0
|
|
608
|
+
type: :development
|
|
609
|
+
prerelease: false
|
|
610
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
611
|
+
requirements:
|
|
612
|
+
- - ~>
|
|
613
|
+
- !ruby/object:Gem::Version
|
|
614
|
+
version: 1.0.0
|
|
517
615
|
description: Quadro Content Management System
|
|
518
616
|
email:
|
|
519
617
|
- hugogilmar@nanotutoriales.com
|
|
@@ -544,10 +642,8 @@ files:
|
|
|
544
642
|
- app/assets/images/quadro/quadro-logo-mini.png
|
|
545
643
|
- app/assets/images/quadro/quadro-logo.png
|
|
546
644
|
- app/assets/javascripts/quadro/application.js.coffee
|
|
547
|
-
- app/assets/javascripts/quadro/message.js.coffee
|
|
548
645
|
- app/assets/javascripts/quadro/plugins/bootstrap-datetimepicker.min.js
|
|
549
646
|
- app/assets/javascripts/quadro/plugins/gmaps.min.js
|
|
550
|
-
- app/assets/javascripts/quadro/plugins/humane.min.js
|
|
551
647
|
- app/assets/javascripts/quadro/plugins/jasny-bootstrap.min.js
|
|
552
648
|
- app/assets/javascripts/quadro/plugins/jquery.fs.dropper.min.js
|
|
553
649
|
- app/assets/javascripts/quadro/plugins/jquery.show_char_limit.min.js
|
|
@@ -562,7 +658,6 @@ files:
|
|
|
562
658
|
- app/assets/stylesheets/bootstrap/_mixins.scss
|
|
563
659
|
- app/assets/stylesheets/quadro/application.css.sass
|
|
564
660
|
- app/assets/stylesheets/quadro/plugins/bootstrap-datetimepicker.min.css
|
|
565
|
-
- app/assets/stylesheets/quadro/plugins/humane-libnotify.min.css
|
|
566
661
|
- app/assets/stylesheets/quadro/plugins/jasny-bootstrap.min.css
|
|
567
662
|
- app/assets/stylesheets/quadro/plugins/jquery.fs.dropper.min.css
|
|
568
663
|
- app/assets/stylesheets/quadro/plugins/jquery.smartmenus.bootstrap.min.css
|
|
@@ -693,10 +788,7 @@ files:
|
|
|
693
788
|
- config/initializers/simple_form_bootstrap.rb
|
|
694
789
|
- config/initializers/sitemap.rb
|
|
695
790
|
- config/initializers/sitemap_notifier.rb
|
|
696
|
-
- config/locales/devise.en.yml
|
|
697
|
-
- config/locales/kaminari.en.yml
|
|
698
791
|
- config/locales/quadro.en.yml
|
|
699
|
-
- config/locales/simple_form.en.yml
|
|
700
792
|
- config/routes.rb
|
|
701
793
|
- db/migrate/20141122163450_create_quadro_widgets.rb
|
|
702
794
|
- db/migrate/20141129022344_create_quadro_pages.rb
|
|
@@ -767,7 +859,6 @@ files:
|
|
|
767
859
|
- test/dummy/config/locales/en.yml
|
|
768
860
|
- test/dummy/config/routes.rb
|
|
769
861
|
- test/dummy/db/GeoLite2-Country.mmdb
|
|
770
|
-
- test/dummy/db/development.sqlite3
|
|
771
862
|
- test/dummy/db/migrate/20160615055717_create_quadro_widgets.quadro.rb
|
|
772
863
|
- test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
|
|
773
864
|
- test/dummy/db/migrate/20160615055719_create_quadro_assets.quadro.rb
|
|
@@ -858,7 +949,6 @@ test_files:
|
|
|
858
949
|
- test/dummy/db/migrate/20160615055720_devise_create_quadro_users.quadro.rb
|
|
859
950
|
- test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
|
|
860
951
|
- test/dummy/db/migrate/20160615055719_create_quadro_assets.quadro.rb
|
|
861
|
-
- test/dummy/db/development.sqlite3
|
|
862
952
|
- test/dummy/db/schema.rb
|
|
863
953
|
- test/dummy/db/GeoLite2-Country.mmdb
|
|
864
954
|
- test/test_helper.rb
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
/**
|
|
3
|
-
* humane.js
|
|
4
|
-
* Humanized Messages for Notifications
|
|
5
|
-
* @author Marc Harter (@wavded)
|
|
6
|
-
* @example
|
|
7
|
-
* humane.log('hello world');
|
|
8
|
-
* @license MIT
|
|
9
|
-
* See more usage examples at: http://wavded.github.com/humane-js/
|
|
10
|
-
*/
|
|
11
|
-
!function(name,context,definition){if(typeof module!=="undefined")module.exports=definition(name,context);else if(typeof define==="function"&&typeof define.amd==="object")define(definition);else context[name]=definition(name,context)}("humane",this,function(name,context){var win=window;var doc=document;var ENV={on:function(el,type,cb){"addEventListener"in win?el.addEventListener(type,cb,false):el.attachEvent("on"+type,cb)},off:function(el,type,cb){"removeEventListener"in win?el.removeEventListener(type,cb,false):el.detachEvent("on"+type,cb)},bind:function(fn,ctx){return function(){fn.apply(ctx,arguments)}},isArray:Array.isArray||function(obj){return Object.prototype.toString.call(obj)==="[object Array]"},config:function(preferred,fallback){return preferred!=null?preferred:fallback},transSupport:false,useFilter:/msie [678]/i.test(navigator.userAgent),_checkTransition:function(){var el=doc.createElement("div");var vendors={webkit:"webkit",Moz:"",O:"o",ms:"MS"};for(var vendor in vendors)if(vendor+"Transition"in el.style){this.vendorPrefix=vendors[vendor];this.transSupport=true}}};ENV._checkTransition();var Humane=function(o){o||(o={});this.queue=[];this.baseCls=o.baseCls||"humane";this.addnCls=o.addnCls||"";this.timeout="timeout"in o?o.timeout:2500;this.waitForMove=o.waitForMove||false;this.clickToClose=o.clickToClose||false;this.timeoutAfterMove=o.timeoutAfterMove||false;this.container=o.container;try{this._setupEl()}catch(e){ENV.on(win,"load",ENV.bind(this._setupEl,this))}};Humane.prototype={constructor:Humane,_setupEl:function(){var el=doc.createElement("div");el.style.display="none";if(!this.container){if(doc.body)this.container=doc.body;else throw"document.body is null"}this.container.appendChild(el);this.el=el;this.removeEvent=ENV.bind(function(){var timeoutAfterMove=ENV.config(this.currentMsg.timeoutAfterMove,this.timeoutAfterMove);if(!timeoutAfterMove){this.remove()}else{setTimeout(ENV.bind(this.remove,this),timeoutAfterMove)}},this);this.transEvent=ENV.bind(this._afterAnimation,this);this._run()},_afterTimeout:function(){if(!ENV.config(this.currentMsg.waitForMove,this.waitForMove))this.remove();else if(!this.removeEventsSet){ENV.on(doc.body,"mousemove",this.removeEvent);ENV.on(doc.body,"click",this.removeEvent);ENV.on(doc.body,"keypress",this.removeEvent);ENV.on(doc.body,"touchstart",this.removeEvent);this.removeEventsSet=true}},_run:function(){if(this._animating||!this.queue.length||!this.el)return;this._animating=true;if(this.currentTimer){clearTimeout(this.currentTimer);this.currentTimer=null}var msg=this.queue.shift();var clickToClose=ENV.config(msg.clickToClose,this.clickToClose);if(clickToClose){ENV.on(this.el,"click",this.removeEvent);ENV.on(this.el,"touchstart",this.removeEvent)}var timeout=ENV.config(msg.timeout,this.timeout);if(timeout>0)this.currentTimer=setTimeout(ENV.bind(this._afterTimeout,this),timeout);if(ENV.isArray(msg.html))msg.html="<ul><li>"+msg.html.join("<li>")+"</ul>";this.el.innerHTML=msg.html;this.currentMsg=msg;this.el.className=this.baseCls;if(ENV.transSupport){this.el.style.display="block";setTimeout(ENV.bind(this._showMsg,this),50)}else{this._showMsg()}},_setOpacity:function(opacity){if(ENV.useFilter){try{this.el.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=opacity*100}catch(err){}}else{this.el.style.opacity=String(opacity)}},_showMsg:function(){var addnCls=ENV.config(this.currentMsg.addnCls,this.addnCls);if(ENV.transSupport){this.el.className=this.baseCls+" "+addnCls+" "+this.baseCls+"-animate"}else{var opacity=0;this.el.className=this.baseCls+" "+addnCls+" "+this.baseCls+"-js-animate";this._setOpacity(0);this.el.style.display="block";var self=this;var interval=setInterval(function(){if(opacity<1){opacity+=.1;if(opacity>1)opacity=1;self._setOpacity(opacity)}else clearInterval(interval)},30)}},_hideMsg:function(){var addnCls=ENV.config(this.currentMsg.addnCls,this.addnCls);if(ENV.transSupport){this.el.className=this.baseCls+" "+addnCls;ENV.on(this.el,ENV.vendorPrefix?ENV.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent)}else{var opacity=1;var self=this;var interval=setInterval(function(){if(opacity>0){opacity-=.1;if(opacity<0)opacity=0;self._setOpacity(opacity)}else{self.el.className=self.baseCls+" "+addnCls;clearInterval(interval);self._afterAnimation()}},30)}},_afterAnimation:function(){if(ENV.transSupport)ENV.off(this.el,ENV.vendorPrefix?ENV.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent);if(this.currentMsg.cb)this.currentMsg.cb();this.el.style.display="none";this._animating=false;this._run()},remove:function(e){var cb=typeof e=="function"?e:null;ENV.off(doc.body,"mousemove",this.removeEvent);ENV.off(doc.body,"click",this.removeEvent);ENV.off(doc.body,"keypress",this.removeEvent);ENV.off(doc.body,"touchstart",this.removeEvent);ENV.off(this.el,"click",this.removeEvent);ENV.off(this.el,"touchstart",this.removeEvent);this.removeEventsSet=false;if(cb&&this.currentMsg)this.currentMsg.cb=cb;if(this._animating)this._hideMsg();else if(cb)cb()},log:function(html,o,cb,defaults){var msg={};if(defaults)for(var opt in defaults)msg[opt]=defaults[opt];if(typeof o=="function")cb=o;else if(o)for(var opt in o)msg[opt]=o[opt];msg.html=html;if(cb)msg.cb=cb;this.queue.push(msg);this._run();return this},spawn:function(defaults){var self=this;return function(html,o,cb){self.log.call(self,html,o,cb,defaults);return self}},create:function(o){return new Humane(o)}};return new Humane});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
html,body{min-height:100%}.humane,.humane-libnotify{position:fixed;-moz-transition:all .3s ease-out;-webkit-transition:all .3s ease-out;-ms-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;z-index:100000;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);font-family:Ubuntu,Arial,sans-serif;text-align:center;font-size:15px;top:10px;right:10px;opacity:0;width:150px;color:#fff;padding:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABQCAYAAADYxx/bAAAABmJLR0QA/wD/AP+gvaeTAAAANElEQVQYlWNgYGB4ysTAwMDAxMjICCUQXDQWAwMDAxMTExMedcRyB6d5CAMQ5hGrjSrmAQBQdgIXlosSTwAAAABJRU5ErkJggg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(0,0,0,0.9)),color-stop(1,rgba(50,50,50,0.9))) no-repeat;background:-moz-linear-gradient(top,rgba(0,0,0,0.9) 0%,rgba(50,50,50,0.9) 100%) no-repeat;background:-webkit-linear-gradient(top,rgba(0,0,0,0.9) 0%,rgba(50,50,50,0.9) 100%) no-repeat;background:-ms-linear-gradient(top,rgba(0,0,0,0.9) 0%,rgba(50,50,50,0.9) 100%) no-repeat;background:-o-linear-gradient(top,rgba(0,0,0,0.9) 0%,rgba(50,50,50,0.9) 100%) no-repeat;background:linear-gradient(top,rgba(0,0,0,0.9) 0%,rgba(50,50,50,0.9) 100%) no-repeat;*background-color:#000;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 4px 4px -4px #000;box-shadow:0 4px 4px -4px #000;-moz-transform:translateY(-40px);-webkit-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}.humane p,.humane-libnotify p,.humane ul,.humane-libnotify ul{margin:0;padding:0}.humane ul,.humane-libnotify ul{list-style:none}.humane.humane-libnotify-info,.humane-libnotify.humane-libnotify-info{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABQCAYAAADYxx/bAAAABmJLR0QA/wD/AP+gvaeTAAAAMUlEQVQYlWNgYDB6ysTAwMDAxMDACCcYUFkMDEwMDEwMBNVhkxg65jGhmke6M6hgHgBSdgHnpZwADwAAAABJRU5ErkJggg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(0,0,50,0.9)),color-stop(1,rgba(0,0,100,0.9))) no-repeat;background:-moz-linear-gradient(top,rgba(0,0,50,0.9) 0%,rgba(0,0,100,0.9) 100%) no-repeat;background:-webkit-linear-gradient(top,rgba(0,0,50,0.9) 0%,rgba(0,0,100,0.9) 100%) no-repeat;background:-ms-linear-gradient(top,rgba(0,0,50,0.9) 0%,rgba(0,0,100,0.9) 100%) no-repeat;background:-o-linear-gradient(top,rgba(0,0,50,0.9) 0%,rgba(0,0,100,0.9) 100%) no-repeat;background:linear-gradient(top,rgba(0,0,50,0.9) 0%,rgba(0,0,100,0.9) 100%) no-repeat;*background-color:#030}.humane.humane-libnotify-success,.humane-libnotify.humane-libnotify-success{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABQCAYAAADYxx/bAAAABmJLR0QA/wD/AP+gvaeTAAAAMUlEQVQYlWNgMGJ4ysTAwMDAxMAIJxhQWQwMDEwMTKgS2NRhkxg65jGhmke6M6hhHgBS2QHn2LzhygAAAABJRU5ErkJggg==);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(0,50,0,0.9)),color-stop(1,rgba(0,100,0,0.9))) no-repeat;background:-moz-linear-gradient(top,rgba(0,50,0,0.9) 0%,rgba(0,100,0,0.9) 100%) no-repeat;background:-webkit-linear-gradient(top,rgba(0,50,0,0.9) 0%,rgba(0,100,0,0.9) 100%) no-repeat;background:-ms-linear-gradient(top,rgba(0,50,0,0.9) 0%,rgba(0,100,0,0.9) 100%) no-repeat;background:-o-linear-gradient(top,rgba(0,50,0,0.9) 0%,rgba(0,100,0,0.9) 100%) no-repeat;background:linear-gradient(top,rgba(0,50,0,0.9) 0%,rgba(0,100,0,0.9) 100%) no-repeat;*background-color:#030}.humane.humane-libnotify-error,.humane-libnotify.humane-libnotify-error{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADICAYAAAAp8ov1AAAABmJLR0QA/wD/AP+gvaeTAAAAPklEQVQokWMwYmB4ysTAwMCATjASFsOmBBvBRJ7x+O0g0wCS7CDTH/RwH7X9MVDuwyaG032D2M2UeIYO7gMAqt8C19Bn7+YAAAAASUVORK5CYII=);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(50,0,0,0.9)),color-stop(1,rgba(100,0,0,0.9))) no-repeat;background:-moz-linear-gradient(top,rgba(50,0,0,0.9) 0%,rgba(100,0,0,0.9) 100%) no-repeat;background:-webkit-linear-gradient(top,rgba(50,0,0,0.9) 0%,rgba(100,0,0,0.9) 100%) no-repeat;background:-ms-linear-gradient(top,rgba(50,0,0,0.9) 0%,rgba(100,0,0,0.9) 100%) no-repeat;background:-o-linear-gradient(top,rgba(50,0,0,0.9) 0%,rgba(100,0,0,0.9) 100%) no-repeat;background:linear-gradient(top,rgba(50,0,0,0.9) 0%,rgba(100,0,0,0.9) 100%) no-repeat;*background-color:#300}.humane.humane-animate,.humane-libnotify.humane-libnotify-animate{opacity:1;-moz-transform:translateY(0);-webkit-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}.humane.humane-animate:hover,.humane-libnotify.humane-libnotify-animate:hover{opacity:.2}.humane.humane-animate,.humane-libnotify.humane-libnotify-js-animate{opacity:1;-moz-transform:translateY(0);-webkit-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}.humane.humane-animate:hover,.humane-libnotify.humane-libnotify-js-animate:hover{opacity:.2;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=20)}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
|
2
|
-
|
|
3
|
-
en:
|
|
4
|
-
devise:
|
|
5
|
-
confirmations:
|
|
6
|
-
confirmed: "Your email address has been successfully confirmed."
|
|
7
|
-
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
|
8
|
-
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
|
|
9
|
-
failure:
|
|
10
|
-
already_authenticated: "You are already signed in."
|
|
11
|
-
inactive: "Your account is not activated yet."
|
|
12
|
-
invalid: "Invalid %{authentication_keys} or password."
|
|
13
|
-
locked: "Your account is locked."
|
|
14
|
-
last_attempt: "You have one more attempt before your account is locked."
|
|
15
|
-
not_found_in_database: "Invalid %{authentication_keys} or password."
|
|
16
|
-
timeout: "Your session expired. Please sign in again to continue."
|
|
17
|
-
unauthenticated: "You need to sign in or sign up before continuing."
|
|
18
|
-
unconfirmed: "You have to confirm your email address before continuing."
|
|
19
|
-
mailer:
|
|
20
|
-
confirmation_instructions:
|
|
21
|
-
subject: "Confirmation instructions"
|
|
22
|
-
reset_password_instructions:
|
|
23
|
-
subject: "Reset password instructions"
|
|
24
|
-
unlock_instructions:
|
|
25
|
-
subject: "Unlock instructions"
|
|
26
|
-
omniauth_callbacks:
|
|
27
|
-
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
|
28
|
-
success: "Successfully authenticated from %{kind} account."
|
|
29
|
-
passwords:
|
|
30
|
-
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
|
31
|
-
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
|
32
|
-
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
|
33
|
-
updated: "Your password has been changed successfully. You are now signed in."
|
|
34
|
-
updated_not_active: "Your password has been changed successfully."
|
|
35
|
-
registrations:
|
|
36
|
-
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
|
37
|
-
signed_up: "Welcome! You have signed up successfully."
|
|
38
|
-
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
|
39
|
-
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
|
40
|
-
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
|
41
|
-
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
|
42
|
-
updated: "Your account has been updated successfully."
|
|
43
|
-
sessions:
|
|
44
|
-
signed_in: "Signed in successfully."
|
|
45
|
-
signed_out: "Signed out successfully."
|
|
46
|
-
already_signed_out: "Signed out successfully."
|
|
47
|
-
unlocks:
|
|
48
|
-
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
|
49
|
-
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
|
50
|
-
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
|
51
|
-
errors:
|
|
52
|
-
messages:
|
|
53
|
-
already_confirmed: "was already confirmed, please try signing in"
|
|
54
|
-
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
|
55
|
-
expired: "has expired, please request a new one"
|
|
56
|
-
not_found: "not found"
|
|
57
|
-
not_locked: "was not locked"
|
|
58
|
-
not_saved:
|
|
59
|
-
one: "1 error prohibited this %{resource} from being saved:"
|
|
60
|
-
other: "%{count} errors prohibited this %{resource} from being saved:"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
en:
|
|
2
|
-
views:
|
|
3
|
-
pagination:
|
|
4
|
-
first: "« First"
|
|
5
|
-
last: "Last »"
|
|
6
|
-
previous: "‹ Prev"
|
|
7
|
-
next: "Next ›"
|
|
8
|
-
truncate: "…"
|
|
9
|
-
helpers:
|
|
10
|
-
page_entries_info:
|
|
11
|
-
one_page:
|
|
12
|
-
display_entries:
|
|
13
|
-
zero: "No %{entry_name} found"
|
|
14
|
-
one: "Displaying <b>1</b> %{entry_name}"
|
|
15
|
-
other: "Displaying <b>all %{count}</b> %{entry_name}"
|
|
16
|
-
more_pages:
|
|
17
|
-
display_entries: "Displaying %{entry_name} <b>%{first} - %{last}</b> of <b>%{total}</b> in total"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
en:
|
|
2
|
-
simple_form:
|
|
3
|
-
"yes": 'Yes'
|
|
4
|
-
"no": 'No'
|
|
5
|
-
required:
|
|
6
|
-
text: 'required'
|
|
7
|
-
mark: '*'
|
|
8
|
-
# You can uncomment the line below if you need to overwrite the whole required html.
|
|
9
|
-
# When using html, text and mark won't be used.
|
|
10
|
-
# html: '<abbr title="required">*</abbr>'
|
|
11
|
-
error_notification:
|
|
12
|
-
default_message: "Please review the problems below:"
|
|
13
|
-
# Labels and hints examples
|
|
14
|
-
# labels:
|
|
15
|
-
# defaults:
|
|
16
|
-
# password: 'Password'
|
|
17
|
-
# user:
|
|
18
|
-
# new:
|
|
19
|
-
# email: 'E-mail to sign in.'
|
|
20
|
-
# edit:
|
|
21
|
-
# email: 'E-mail.'
|
|
22
|
-
# hints:
|
|
23
|
-
# defaults:
|
|
24
|
-
# username: 'User name to sign in.'
|
|
25
|
-
# password: 'No special characters, please.'
|
|
26
|
-
|
|
File without changes
|