cybele 1.9.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.fasterer.yml +5 -0
- data/.flayignore +3 -0
- data/.gitignore +4 -1
- data/.haml-lint.yml +5 -0
- data/.poper.yml +7 -0
- data/.rubocop.yml +59 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +458 -2
- data/Gemfile +2 -0
- data/README.md +16 -20
- data/Rakefile +1 -1
- data/USAGE +12 -0
- data/bin/build_app +18 -0
- data/bin/build_gem +20 -0
- data/bin/cybele +21 -6
- data/config.reek +29 -0
- data/cybele.gemspec +14 -6
- data/example.pronto.yml +8 -0
- data/lib/cybele.rb +33 -0
- data/lib/cybele/app_builder.rb +43 -510
- data/lib/cybele/generators/app_generator.rb +240 -180
- data/lib/cybele/helpers.rb +104 -0
- data/lib/cybele/helpers/app_files/assets_files.rb +43 -0
- data/lib/cybele/helpers/app_files/controller_files.rb +23 -0
- data/lib/cybele/helpers/app_files/helper_files.rb +15 -0
- data/lib/cybele/helpers/app_files/mailer_files.rb +15 -0
- data/lib/cybele/helpers/app_files/model_files.rb +16 -0
- data/lib/cybele/helpers/app_files/vendor_files.rb +14 -0
- data/lib/cybele/helpers/app_files/view_files.rb +62 -0
- data/lib/cybele/helpers/app_files/view_gems.rb +20 -0
- data/lib/cybele/helpers/audited.rb +12 -0
- data/lib/cybele/helpers/basic_authentication.rb +44 -0
- data/lib/cybele/helpers/devise.rb +67 -0
- data/lib/cybele/helpers/docker.rb +53 -0
- data/lib/cybele/helpers/dotenv.rb +23 -0
- data/lib/cybele/helpers/error_pages.rb +37 -0
- data/lib/cybele/helpers/general.rb +87 -0
- data/lib/cybele/helpers/haml.rb +18 -0
- data/lib/cybele/helpers/locale_language.rb +23 -0
- data/lib/cybele/helpers/mailer.rb +25 -0
- data/lib/cybele/helpers/paperclip.rb +33 -0
- data/lib/cybele/helpers/pronto.rb +34 -0
- data/lib/cybele/helpers/recipient_interceptor.rb +18 -0
- data/lib/cybele/helpers/responders.rb +36 -0
- data/lib/cybele/helpers/routes.rb +18 -0
- data/lib/cybele/helpers/show_for.rb +20 -0
- data/lib/cybele/helpers/sidekiq.rb +37 -0
- data/lib/cybele/helpers/simple_form.rb +19 -0
- data/lib/cybele/helpers/staging.rb +15 -0
- data/lib/cybele/version.rb +5 -3
- data/spec/features/cli_help_spec.rb +42 -0
- data/spec/features/git_and_git_flow_spec.rb +30 -0
- data/spec/features/new_default_project_spec.rb +465 -0
- data/spec/features/new_not_default_project_spec.rb +412 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/support/config_test_helper.rb +36 -0
- data/spec/support/cybele_test_helpers.rb +115 -0
- data/spec/support/devise_test_helper.rb +45 -0
- data/spec/support/dotenv_test_helper.rb +31 -0
- data/spec/support/error_pages_test_helper.rb +24 -0
- data/spec/support/force_ssl_test_helper.rb +24 -0
- data/spec/support/git_ignore_test_helper.rb +10 -0
- data/spec/support/locale_language_test_helper.rb +43 -0
- data/spec/support/mail_test_helpers.rb +15 -0
- data/spec/support/paperclip_test_helper.rb +38 -0
- data/spec/support/pronto_test_helpers.rb +41 -0
- data/spec/support/responder_test_helper.rb +32 -0
- data/templates/Gemfile.erb +59 -0
- data/templates/README.md.erb +23 -20
- data/templates/VERSION.txt +1 -0
- data/templates/app_files/app/assets/javascripts/application.js +81 -0
- data/templates/app_files/app/assets/javascripts/hq/application.js +80 -0
- data/templates/{app/assets/stylesheets/application.css.sass → app_files/app/assets/stylesheets/application.sass} +27 -16
- data/templates/app_files/app/assets/stylesheets/hq/_sidebar.sass +89 -0
- data/templates/app_files/app/assets/stylesheets/hq/application.sass +74 -0
- data/templates/app_files/app/controllers/concerns/activatable.rb +16 -0
- data/templates/{app → app_files/app}/controllers/hq/admins_controller.rb +7 -10
- data/templates/app_files/app/controllers/hq/application_controller.rb +13 -0
- data/templates/{app → app_files/app}/controllers/hq/audits_controller.rb +3 -3
- data/templates/app_files/app/controllers/hq/dashboard_controller.rb +7 -0
- data/templates/{app → app_files/app}/controllers/hq/passwords_controller.rb +3 -2
- data/templates/app_files/app/controllers/hq/registrations_controller.rb +22 -0
- data/templates/{app → app_files/app}/controllers/hq/sessions_controller.rb +5 -4
- data/templates/{app → app_files/app}/controllers/hq/users_controller.rb +7 -10
- data/templates/app_files/app/controllers/user/application_controller.rb +18 -0
- data/templates/app_files/app/controllers/user/dashboard_controller.rb +7 -0
- data/templates/{app → app_files/app}/controllers/user/passwords_controller.rb +3 -4
- data/templates/app_files/app/controllers/user/profile_controller.rb +30 -0
- data/templates/{app → app_files/app}/controllers/user/registrations_controller.rb +7 -8
- data/templates/{app → app_files/app}/controllers/user/sessions_controller.rb +5 -6
- data/templates/app_files/app/controllers/welcome_controller.rb +9 -0
- data/templates/app_files/app/helpers/application_helper.rb.erb +61 -0
- data/templates/app_files/app/mailers/admin_mailer.rb +10 -0
- data/templates/app_files/app/mailers/application_mailer.rb +6 -0
- data/templates/app_files/app/mailers/user_mailer.rb +10 -0
- data/templates/app_files/app/models/admin.rb +42 -0
- data/templates/app_files/app/models/audit.rb +4 -0
- data/templates/app_files/app/models/concerns/password_creatable.rb +39 -0
- data/templates/app_files/app/models/user.rb +43 -0
- data/templates/app_files/app/vendor/assets/javascripts/footable.min.js +10 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/jquery.datetimepicker.js +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/jquery.maskedinput.min.js +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/nprogress.js +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/javascripts/trix.js +0 -0
- data/templates/app_files/app/vendor/assets/stylesheets/footable.bootstrap.min.css +1 -0
- data/templates/{vendor → app_files/app/vendor}/assets/stylesheets/jquery.datetimepicker.css +0 -0
- data/templates/{vendor → app_files/app/vendor}/assets/stylesheets/nprogress.css +0 -1
- data/templates/{vendor → app_files/app/vendor}/assets/stylesheets/trix.css +0 -0
- data/templates/app_files/app/views/admin_mailer/login_info.html.haml +13 -0
- data/templates/app_files/app/views/hq/admins/_admin.html.haml +38 -0
- data/templates/{app → app_files/app}/views/hq/admins/_blank.html.haml +3 -3
- data/templates/app_files/app/views/hq/admins/_filters.html.haml +27 -0
- data/templates/app_files/app/views/hq/admins/_form.html.haml +17 -0
- data/templates/app_files/app/views/hq/admins/_list.html.haml +20 -0
- data/templates/app_files/app/views/hq/admins/edit.html.haml +3 -0
- data/templates/app_files/app/views/hq/admins/index.html.haml +18 -0
- data/templates/{app → app_files/app}/views/hq/admins/new.html.haml +2 -2
- data/templates/{app → app_files/app}/views/hq/admins/show.html.haml +8 -8
- data/templates/app_files/app/views/hq/audits/_filters.html.haml +48 -0
- data/templates/app_files/app/views/hq/audits/_list.html.haml +47 -0
- data/templates/{app → app_files/app}/views/hq/audits/index.html.haml +3 -3
- data/templates/app_files/app/views/hq/audits/show.html.haml +8 -0
- data/templates/app_files/app/views/hq/dashboard/index.html.haml +13 -0
- data/templates/app_files/app/views/hq/passwords/edit.html.haml +24 -0
- data/templates/app_files/app/views/hq/passwords/new.html.haml +21 -0
- data/templates/app_files/app/views/hq/registrations/edit.html.haml +30 -0
- data/templates/app_files/app/views/hq/sessions/new.html.haml +20 -0
- data/templates/{app → app_files/app}/views/hq/users/_blank.html.haml +3 -3
- data/templates/app_files/app/views/hq/users/_filters.html.haml +26 -0
- data/templates/app_files/app/views/hq/users/_form.html.haml +17 -0
- data/templates/app_files/app/views/hq/users/_list.html.haml +21 -0
- data/templates/app_files/app/views/hq/users/_user.html.haml +38 -0
- data/templates/app_files/app/views/hq/users/edit.html.haml +3 -0
- data/templates/app_files/app/views/hq/users/index.html.haml +18 -0
- data/templates/{app → app_files/app}/views/hq/users/new.html.haml +2 -2
- data/templates/{app → app_files/app}/views/hq/users/show.html.haml +8 -9
- data/templates/app_files/app/views/layouts/application.html.haml.erb +33 -0
- data/templates/app_files/app/views/layouts/hq/application.html.haml.erb +57 -0
- data/templates/app_files/app/views/layouts/hq/login.html.haml.erb +47 -0
- data/templates/app_files/app/views/layouts/hq/partials/_breadcrumb.html.haml +3 -0
- data/templates/app_files/app/views/layouts/hq/partials/_dock.html.haml +95 -0
- data/templates/{app/views/layouts/hq/partials/_footer.html.haml.erb → app_files/app/views/layouts/hq/partials/_footer.html.haml} +0 -0
- data/templates/app_files/app/views/layouts/hq/partials/_navbar.html.haml +35 -0
- data/templates/app_files/app/views/layouts/hq/partials/_toolbar.html.haml +3 -0
- data/templates/{app/views/layouts/hq/partials/_trackers.html.haml.erb → app_files/app/views/layouts/hq/partials/_trackers.html.haml} +0 -0
- data/templates/app_files/app/views/layouts/mailer.html.haml.erb +255 -0
- data/templates/app_files/app/views/layouts/partials/_messages.html.haml +11 -0
- data/templates/app_files/app/views/layouts/partials/_navbar.html.haml.erb +37 -0
- data/templates/{app/views/layouts/partials/_footer.html.haml.erb → app_files/app/views/layouts/partials/_warnings.html.haml} +0 -0
- data/templates/app_files/app/views/user/dashboard/index.html.haml +11 -0
- data/templates/app_files/app/views/user/passwords/edit.html.haml +18 -0
- data/templates/app_files/app/views/user/passwords/new.html.haml +18 -0
- data/templates/{app → app_files/app}/views/user/profile/_form.html.haml +5 -5
- data/templates/app_files/app/views/user/profile/edit.html.haml +3 -0
- data/templates/app_files/app/views/user/profile/show.html.haml +18 -0
- data/templates/app_files/app/views/user/registrations/edit.html.haml +30 -0
- data/templates/app_files/app/views/user/registrations/new.html.haml +33 -0
- data/templates/app_files/app/views/user/sessions/new.html.haml +15 -0
- data/templates/app_files/app/views/user_mailer/login_info.html.haml +13 -0
- data/templates/app_files/app/views/welcome/about.html.haml +3 -0
- data/templates/app_files/app/views/welcome/contact.html.haml +3 -0
- data/templates/app_files/app/views/welcome/index.html.haml.erb +19 -0
- data/templates/app_files/bootstrap_Gemfile.erb +4 -0
- data/templates/app_files/breadcrumb_Gemfile.erb +4 -0
- data/templates/app_files/jquery_Gemfile.erb +4 -0
- data/templates/{public → app_files/public}/images/favicon.png +0 -0
- data/templates/{public → app_files/public}/images/mail-logo.png +0 -0
- data/templates/basic_authentication/basic_authentication.rb +22 -0
- data/templates/basic_authentication/basic_authentication_settings.yml.erb +3 -0
- data/templates/basic_authentication/include_module.erb +2 -0
- data/templates/basic_authentication/no_basic_authentication.erb +2 -0
- data/templates/basic_authentication/yes_basic_authentication.erb +2 -0
- data/templates/bullet/bullet_settings.rb.erb +9 -0
- data/templates/config/config_application.rb.erb +4 -0
- data/templates/config/locales/devise.en.yml +99 -0
- data/templates/config/locales/devise.tr.yml +97 -0
- data/templates/config/locales/en.yml +34 -0
- data/templates/config/locales/mailer.en.yml +32 -0
- data/templates/config/locales/{email.tr.yml → mailer.tr.yml} +6 -2
- data/templates/config/locales/models.en.yml +74 -0
- data/templates/config/locales/models.tr.yml +11 -27
- data/templates/config/locales/responders.en.yml +15 -0
- data/templates/config/locales/responders.tr.yml +3 -2
- data/templates/config/locales/show_for.tr.yml +3 -3
- data/templates/config/locales/view.en.yml +73 -0
- data/templates/config/locales/view.tr.yml +55 -82
- data/templates/config/routes.rb.erb +63 -0
- data/templates/cybele_gitignore +4 -3
- data/templates/devise/devise_authenticate_admin.rb.erb +2 -0
- data/templates/devise/devise_before_action_strong_parameter.rb.erb +3 -0
- data/templates/devise/devise_mailer.rb.erb +1 -0
- data/templates/devise/devise_strong_parameter.rb.erb +13 -0
- data/templates/{app/views/devise → devise/devise_views}/confirmations/new.html.haml +4 -1
- data/templates/devise/devise_views/mailer/confirmation_instructions.html.haml +5 -0
- data/templates/devise/devise_views/mailer/reset_password_instructions.html.haml +7 -0
- data/templates/{app/views/devise → devise/devise_views}/mailer/unlock_instructions.html.haml +1 -1
- data/templates/devise/devise_views/passwords/edit.html.haml +19 -0
- data/templates/devise/devise_views/passwords/new.html.haml +14 -0
- data/templates/devise/devise_views/registrations/edit.html.haml +21 -0
- data/templates/devise/devise_views/registrations/new.html.haml +32 -0
- data/templates/{app/views/devise → devise/devise_views}/sessions/new.html.haml +8 -3
- data/templates/devise/devise_views/shared/_links.haml +29 -0
- data/templates/{app/views/devise → devise/devise_views}/unlocks/new.html.haml +4 -1
- data/templates/devise/seeds.rb.erb +1 -0
- data/templates/docker/Dockerfile.erb +48 -0
- data/templates/docker/docker-compose.yml.erb +46 -0
- data/templates/docker/docker_env_local_sample.erb +6 -0
- data/templates/docker/docker_env_local_sample_host.erb +1 -0
- data/templates/docker/docker_env_local_sample_sidekiq.erb +2 -0
- data/templates/docker/docker_env_staging_production_sidekiq.erb +2 -0
- data/templates/docker/start-app.sh.erb +7 -0
- data/templates/docker/start-sidekiq.sh.erb +27 -0
- data/templates/dotenv/.env.local.erb +5 -0
- data/templates/dotenv/.env.production.erb +5 -0
- data/templates/dotenv/.env.sample.erb +5 -0
- data/templates/dotenv/.env.staging.erb +5 -0
- data/templates/dotenv/dotenv_Gemfile.erb +2 -0
- data/templates/error_pages/error_control.erb +7 -0
- data/templates/error_pages/error_method.erb +10 -0
- data/templates/error_pages/error_route.erb.rb +2 -0
- data/templates/error_pages/internal_server_error.html.haml +2 -0
- data/templates/error_pages/not_found.html.haml +2 -0
- data/templates/guardfile/guardfile_settings.rb.erb +49 -0
- data/templates/haml/haml_Gemfile.erb +5 -0
- data/templates/mailer/.env.local.erb +7 -0
- data/templates/mailer/host.rb.erb +2 -0
- data/templates/mailer/mailer_settings.yml.erb +8 -0
- data/templates/mailer/smtp.rb.erb +10 -0
- data/templates/paperclip/paperclip.rb.erb +11 -0
- data/templates/paperclip/paperclip_Gemfile.erb +4 -0
- data/templates/paperclip/paperclip_env_local.erb +6 -0
- data/templates/paperclip/paperclip_env_production.erb +6 -0
- data/templates/paperclip/paperclip_env_sample.erb +6 -0
- data/templates/paperclip/paperclip_env_staging.erb +6 -0
- data/templates/paperclip/paperclip_settings.yml.erb +10 -0
- data/templates/postgresql_database.yml.erb +24 -0
- data/templates/pronto/.flayignore.erb +5 -0
- data/templates/pronto/.haml-lint.yml.erb +5 -0
- data/templates/pronto/.rubocop.yml.erb +38 -0
- data/templates/pronto/config.reek.erb +42 -0
- data/templates/pronto/example.pronto.yml.erb +27 -0
- data/templates/pronto/rubo.erb +24 -0
- data/templates/recipient_interceptor/recipient_interceptor_settings.yml.erb +4 -0
- data/templates/recipient_interceptor/recipient_interceptor_staging.rb.erb +2 -0
- data/templates/responders/responders_Gemfile.erb +3 -0
- data/templates/ruby-version +1 -1
- data/templates/secrets.yml.erb +3 -0
- data/templates/settings.yml.erb +1 -0
- data/templates/show_for/show_for_Gemfile.erb +3 -0
- data/templates/sidekiq/sidekiq.rake.erb +42 -0
- data/templates/sidekiq/sidekiq.rb.erb +18 -0
- data/templates/sidekiq/sidekiq.yml.erb +18 -0
- data/templates/sidekiq/sidekiq_Gemfile.erb +8 -0
- data/templates/{Procfile.erb → sidekiq/sidekiq_Procfile.erb} +0 -0
- data/templates/sidekiq/sidekiq_application.rb.erb +3 -0
- data/templates/sidekiq/sidekiq_routes_mount.erb +8 -0
- data/templates/sidekiq/sidekiq_routes_require.erb +3 -0
- data/templates/{config/schedule.yml → sidekiq/sidekiq_schedule.yml.erb} +6 -4
- data/templates/simple_form/simple_form_Gemfile.erb +3 -0
- data/templates/ssl/ssl_env_all.erb +2 -0
- metadata +369 -179
- data/templates/.env.local.erb +0 -11
- data/templates/.env.production.erb +0 -11
- data/templates/.env.staging.erb +0 -11
- data/templates/app/assets/javascripts/application.js.coffee +0 -81
- data/templates/app/assets/javascripts/hq/application.js.coffee +0 -94
- data/templates/app/assets/stylesheets/hq/application.css.sass +0 -92
- data/templates/app/controllers/application_controller.rb.erb +0 -48
- data/templates/app/controllers/concerns/basic_authentication.rb +0 -18
- data/templates/app/controllers/hq/application_controller.rb +0 -18
- data/templates/app/controllers/hq/cities_controller.rb +0 -54
- data/templates/app/controllers/hq/countries_controller.rb +0 -54
- data/templates/app/controllers/hq/dashboard_controller.rb +0 -8
- data/templates/app/controllers/hq/registrations_controller.rb +0 -21
- data/templates/app/controllers/user/dashboard_controller.rb +0 -8
- data/templates/app/controllers/user/profile_controller.rb +0 -34
- data/templates/app/controllers/user/user_application_controller.rb +0 -26
- data/templates/app/controllers/welcome_controller.rb +0 -4
- data/templates/app/helpers/application_helper.rb.erb +0 -27
- data/templates/app/mailers/admin_mailer.rb +0 -10
- data/templates/app/mailers/base_mailer.rb +0 -4
- data/templates/app/mailers/user_mailer.rb +0 -10
- data/templates/app/models/admin.rb +0 -51
- data/templates/app/models/audit.rb +0 -3
- data/templates/app/models/city.rb +0 -12
- data/templates/app/models/country.rb +0 -12
- data/templates/app/models/user.rb +0 -54
- data/templates/app/views/admin_mailer/login_info.html.haml +0 -13
- data/templates/app/views/devise/mailer/confirmation_instructions.html.haml +0 -6
- data/templates/app/views/devise/mailer/reset_password_instructions.html.haml +0 -9
- data/templates/app/views/devise/passwords/edit.html.haml +0 -11
- data/templates/app/views/devise/passwords/new.html.haml +0 -9
- data/templates/app/views/devise/registrations/edit.html.haml +0 -12
- data/templates/app/views/devise/registrations/new.html.haml +0 -24
- data/templates/app/views/devise/shared/_links.haml +0 -22
- data/templates/app/views/errors/internal_server_error.html.haml +0 -2
- data/templates/app/views/errors/not_found.html.haml +0 -2
- data/templates/app/views/hq/admins/_admin.html.haml +0 -21
- data/templates/app/views/hq/admins/_filters.html.haml +0 -20
- data/templates/app/views/hq/admins/_form.html.haml +0 -17
- data/templates/app/views/hq/admins/_list.html.haml +0 -15
- data/templates/app/views/hq/admins/edit.html.haml +0 -3
- data/templates/app/views/hq/admins/index.html.haml +0 -18
- data/templates/app/views/hq/audits/_filters.html.haml +0 -32
- data/templates/app/views/hq/audits/_list.html.haml +0 -37
- data/templates/app/views/hq/audits/show.html.haml +0 -5
- data/templates/app/views/hq/cities/_blank.html.haml +0 -9
- data/templates/app/views/hq/cities/_city.html.haml +0 -12
- data/templates/app/views/hq/cities/_filters.html.haml +0 -15
- data/templates/app/views/hq/cities/_form.html.haml +0 -15
- data/templates/app/views/hq/cities/_list.html.haml +0 -13
- data/templates/app/views/hq/cities/edit.html.haml +0 -3
- data/templates/app/views/hq/cities/index.html.haml +0 -18
- data/templates/app/views/hq/cities/new.html.haml +0 -3
- data/templates/app/views/hq/cities/show.html.haml +0 -13
- data/templates/app/views/hq/countries/_blank.html.haml +0 -9
- data/templates/app/views/hq/countries/_country.html.haml +0 -11
- data/templates/app/views/hq/countries/_filters.html.haml +0 -14
- data/templates/app/views/hq/countries/_form.html.haml +0 -14
- data/templates/app/views/hq/countries/_list.html.haml +0 -12
- data/templates/app/views/hq/countries/edit.html.haml +0 -3
- data/templates/app/views/hq/countries/index.html.haml +0 -18
- data/templates/app/views/hq/countries/new.html.haml +0 -3
- data/templates/app/views/hq/countries/show.html.haml +0 -14
- data/templates/app/views/hq/dashboard/index.html.haml +0 -8
- data/templates/app/views/hq/passwords/edit.html.haml +0 -12
- data/templates/app/views/hq/passwords/new.html.haml +0 -9
- data/templates/app/views/hq/registrations/edit.html.haml +0 -19
- data/templates/app/views/hq/sessions/new.html.haml +0 -11
- data/templates/app/views/hq/users/_filters.html.haml +0 -20
- data/templates/app/views/hq/users/_form.html.haml +0 -18
- data/templates/app/views/hq/users/_list.html.haml +0 -15
- data/templates/app/views/hq/users/_user.html.haml +0 -20
- data/templates/app/views/hq/users/edit.html.haml +0 -3
- data/templates/app/views/hq/users/index.html.haml +0 -18
- data/templates/app/views/layouts/application.html.haml.erb +0 -56
- data/templates/app/views/layouts/hq/application.html.haml.erb +0 -55
- data/templates/app/views/layouts/hq/login.html.haml.erb +0 -35
- data/templates/app/views/layouts/hq/partials/_dock.html.haml.erb +0 -36
- data/templates/app/views/layouts/hq/partials/_navbar.html.haml.erb +0 -22
- data/templates/app/views/layouts/mailer.html.haml.erb +0 -321
- data/templates/app/views/layouts/mailer.text.haml +0 -1
- data/templates/app/views/layouts/partials/_trackers.html.haml.erb +0 -0
- data/templates/app/views/layouts/partials/_warnings.html.haml.erb +0 -3
- data/templates/app/views/user/dashboard/index.html.haml +0 -8
- data/templates/app/views/user/passwords/edit.html.haml +0 -12
- data/templates/app/views/user/passwords/new.html.haml +0 -10
- data/templates/app/views/user/profile/edit.html.haml +0 -3
- data/templates/app/views/user/profile/show.html.haml +0 -18
- data/templates/app/views/user/registrations/edit.html.haml +0 -19
- data/templates/app/views/user/sessions/new.html.haml +0 -11
- data/templates/app/views/user_mailer/login_info.html.haml +0 -13
- data/templates/app/views/welcome/index.html.haml.erb +0 -16
- data/templates/config/database.yml.erb +0 -21
- data/templates/config/deploy.rb +0 -56
- data/templates/config/initializers/devise_async.rb +0 -6
- data/templates/config/initializers/disable_xml_params.rb +0 -3
- data/templates/config/initializers/mail.rb +0 -13
- data/templates/config/initializers/paperclip.rb +0 -10
- data/templates/config/initializers/secret_token.erb +0 -25
- data/templates/config/initializers/show_for.rb +0 -3
- data/templates/config/initializers/sidekiq.rb +0 -13
- data/templates/config/initializers/simple_form.rb +0 -142
- data/templates/config/initializers/simple_form_bootstrap.rb +0 -207
- data/templates/config/routes.erb +0 -51
- data/templates/config/settings.yml +0 -0
- data/templates/config/settings/production.yml +0 -0
- data/templates/config/settings/staging.yml +0 -0
- data/templates/config/sidekiq.yml +0 -13
- data/templates/cybele_Gemfile +0 -106
- data/templates/cybele_version.txt +0 -1
- data/templates/env.sample.erb +0 -11
- data/templates/lib/application_responder.rb +0 -8
- data/templates/lib/data/cities.yml +0 -163
- data/templates/lib/tasks/annotate.rake +0 -6
- data/templates/lib/tasks/dev.rake +0 -56
- data/templates/lib/tasks/sidekiq.rake +0 -26
- data/templates/lib/templates/rails/responders_controller/controller.rb +0 -56
- data/templates/public/images/missing_cover.png +0 -0
- data/templates/public/images/missing_cover@2x.png +0 -0
- data/templates/public/images/missing_logo.png +0 -0
- data/templates/public/images/missing_logo@2x.png +0 -0
- data/templates/public/images/sprite.png +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
#admin-devise-page
|
2
|
+
.row.justify-content-center
|
3
|
+
.card
|
4
|
+
.card-header
|
5
|
+
%h3.text-center
|
6
|
+
= t('devise.password.edit.title')
|
7
|
+
.card-body
|
8
|
+
= simple_form_for resource,
|
9
|
+
as: resource_name,
|
10
|
+
url: password_path(resource_name),
|
11
|
+
html: { method: :put } do |f|
|
12
|
+
= f.error_notification
|
13
|
+
= f.input :reset_password_token, as: :hidden
|
14
|
+
= f.full_error :reset_password_token
|
15
|
+
.form-inputs
|
16
|
+
= f.input :password, required: true, autofocus: true
|
17
|
+
= f.input :password_confirmation, required: true
|
18
|
+
.form-actions
|
19
|
+
= f.button :submit,
|
20
|
+
t('devise.password.edit.button'),
|
21
|
+
class: 'btn btn-primary btn-block'
|
22
|
+
.text-center
|
23
|
+
%br/
|
24
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#admin-devise-page
|
2
|
+
.row.justify-content-center
|
3
|
+
.card
|
4
|
+
.card-header
|
5
|
+
%h3.text-center
|
6
|
+
= t('devise.password.new.title')
|
7
|
+
.card-body
|
8
|
+
= simple_form_for resource,
|
9
|
+
as: resource_name,
|
10
|
+
url: password_path(resource_name),
|
11
|
+
html: { method: :post } do |f|
|
12
|
+
= f.error_notification
|
13
|
+
.form-inputs
|
14
|
+
= f.input :email, required: true, autofocus: true
|
15
|
+
.form-actions
|
16
|
+
= f.button :submit,
|
17
|
+
t('devise.password.reset.instructions'),
|
18
|
+
class: 'btn btn-primary btn-block'
|
19
|
+
%br/
|
20
|
+
.text-center
|
21
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,30 @@
|
|
1
|
+
.card
|
2
|
+
.card-header
|
3
|
+
%i.fas.fa-edit
|
4
|
+
= t('devise.registration.edit.title', model: resource.class.model_name.human)
|
5
|
+
.card-body
|
6
|
+
= simple_form_for resource,
|
7
|
+
as: resource_name,
|
8
|
+
url: admin_registration_path,
|
9
|
+
html: { method: :put } do |f|
|
10
|
+
= f.error_notification
|
11
|
+
.form-inputs
|
12
|
+
= f.input :email, required: true, autofocus: true
|
13
|
+
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
14
|
+
%p= t('devise.registration.waiting_confirmation', email: resource.unconfirmed_email)
|
15
|
+
%hr
|
16
|
+
= f.input :password,
|
17
|
+
label: t('activerecord.attributes.admin.password'),
|
18
|
+
autocomplete: 'off',
|
19
|
+
hint: t('devise.registration.hint_password'),
|
20
|
+
required: false
|
21
|
+
= f.input :password_confirmation,
|
22
|
+
label: t('activerecord.attributes.admin.password_confirmation'),
|
23
|
+
required: false
|
24
|
+
%hr
|
25
|
+
= f.input :current_password,
|
26
|
+
label: t('activerecord.attributes.admin.current_password'),
|
27
|
+
hint: t('devise.registration.hint_current_password'),
|
28
|
+
required: true
|
29
|
+
.form-actions
|
30
|
+
= f.button :submit, t('view.btn.update'), class: 'btn btn-primary'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#admin-devise-page
|
2
|
+
.row.justify-content-center
|
3
|
+
.card
|
4
|
+
.card-header
|
5
|
+
%h3.text-center
|
6
|
+
= t('devise.session.title', model: resource.class.model_name.human)
|
7
|
+
.card-body
|
8
|
+
= simple_form_for resource,
|
9
|
+
as: resource_name,
|
10
|
+
url: session_path(resource_name) do |f|
|
11
|
+
.form-inputs
|
12
|
+
= f.input :email, required: false, autofocus: true
|
13
|
+
= f.input :password, required: false
|
14
|
+
- if devise_mapping.rememberable?
|
15
|
+
= f.input :remember_me, as: :boolean, label: t('devise.session.remember_me')
|
16
|
+
.form-actions
|
17
|
+
= f.button :submit, t('devise.session.button'), class: 'btn btn-primary btn-block'
|
18
|
+
%br/
|
19
|
+
.text-center
|
20
|
+
= render 'devise/shared/links'
|
@@ -1,9 +1,9 @@
|
|
1
1
|
- if params[:q].present?
|
2
|
-
= render 'list'
|
2
|
+
= render 'list', contents: contents, search: search
|
3
3
|
- else
|
4
4
|
.alert.alert-warning
|
5
5
|
%p
|
6
6
|
%h3= t('view.there_is_no_data', resource: User.model_name.human.downcase)
|
7
7
|
= link_to new_hq_user_path, class: 'btn btn-primary' do
|
8
|
-
= t('
|
9
|
-
= t('btn.add')
|
8
|
+
= t('view.actions.new', resource_name: User.model_name.human)
|
9
|
+
= t('view.btn.add')
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.row
|
2
|
+
.col
|
3
|
+
= link_to hq_users_path(q: { is_active_true: 1 }), class: 'btn btn-success' do
|
4
|
+
= t('view.active')
|
5
|
+
%span.badge= User.where(is_active: true).count
|
6
|
+
= link_to hq_users_path(q: { is_active_false: 1 }), class: 'btn btn-warning' do
|
7
|
+
= t('view.passive')
|
8
|
+
%span.badge= User.where(is_active: false).count
|
9
|
+
- if query_present?(%w[is_active_true is_active_false name_or_surname_cont])
|
10
|
+
= link_to hq_users_path, class: 'btn btn-info' do
|
11
|
+
= t('view.all')
|
12
|
+
%span.badge= User.count
|
13
|
+
.col
|
14
|
+
.float-right
|
15
|
+
= search_form_for [:hq, search],
|
16
|
+
builder: SimpleForm::FormBuilder,
|
17
|
+
html: { class: 'form-inline', data: { turboform: true } } do |f|
|
18
|
+
.float-right
|
19
|
+
.input-group
|
20
|
+
= f.input_field :name_or_surname_cont,
|
21
|
+
label: false,
|
22
|
+
class: 'form-control',
|
23
|
+
placeholder: t('view.quick_search')
|
24
|
+
%span.input-group-btn
|
25
|
+
= button_tag(class: 'btn btn-primary') do
|
26
|
+
%i.fas.fa-search
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.card
|
2
|
+
.card-header
|
3
|
+
%i.fas.fa-edit
|
4
|
+
= yield :form_title
|
5
|
+
.card-body
|
6
|
+
= simple_form_for([:hq, user], validate: true) do |f|
|
7
|
+
= f.error_notification
|
8
|
+
|
9
|
+
.form-inputs
|
10
|
+
= f.input :name
|
11
|
+
= f.input :surname
|
12
|
+
= f.input :email
|
13
|
+
|
14
|
+
.form-actions
|
15
|
+
- text = user.id.present? ? t('view.btn.update') : t('view.btn.add')
|
16
|
+
= f.button :submit, text, class: 'btn btn-primary'
|
17
|
+
= link_to t('view.cancel'), hq_users_path, class: 'btn'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
.card-body.filters
|
2
|
+
= render 'filters', search: search
|
3
|
+
%table.table
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
%th{ data: { breakpoints: 'xs' } }
|
7
|
+
= sort_link(search, :id, t('activerecord.attributes.user.id'))
|
8
|
+
%th= sort_link(search, :name, t('activerecord.attributes.user.name'))
|
9
|
+
%th{ data: { breakpoints: 'xs' } }
|
10
|
+
= sort_link(search, :email, t('activerecord.attributes.user.email'))
|
11
|
+
%th{ data: { breakpoints: 'xs sm' } }
|
12
|
+
= sort_link search,
|
13
|
+
:current_sign_in_at,
|
14
|
+
t('activerecord.attributes.user.current_sign_in_at')
|
15
|
+
%th{ data: { breakpoints: 'xs sm' } }
|
16
|
+
= sort_link(search, :last_sign_in_at, t('activerecord.attributes.user.last_sign_in_at'))
|
17
|
+
%th{ data: { breakpoints: 'xs sm' } }
|
18
|
+
= sort_link(search, :is_active, t('activerecord.attributes.user.is_active'))
|
19
|
+
%th{ data: { breakpoints: 'xs' } }= t('view.table_actions')
|
20
|
+
%tbody.users
|
21
|
+
= render partial: 'user', collection: contents, as: :user
|
@@ -0,0 +1,38 @@
|
|
1
|
+
%tr{ class: user.is_active ? 'active' : 'passive' }
|
2
|
+
%td= user.id
|
3
|
+
%td= user.full_name
|
4
|
+
%td= mail_to user.email, user.email
|
5
|
+
%td= l user.current_sign_in_at if user.current_sign_in_at.present?
|
6
|
+
%td= l user.last_sign_in_at if user.last_sign_in_at.present?
|
7
|
+
%td= user.is_active ? t('view.active') : t('view.passive')
|
8
|
+
%td.action
|
9
|
+
= link_to [:hq, user],
|
10
|
+
class: 'btn btn-success btn-sm',
|
11
|
+
data: { toggle: :tooltip },
|
12
|
+
title: t('view.tooltips.zoom') do
|
13
|
+
%i.fas.fa-search-plus
|
14
|
+
= link_to edit_hq_user_path(user),
|
15
|
+
class: 'btn btn-info btn-sm',
|
16
|
+
data: { toggle: :tooltip },
|
17
|
+
title: t('view.tooltips.edit') do
|
18
|
+
%i.fas.fa-edit
|
19
|
+
= link_to [:hq, user],
|
20
|
+
class: 'btn btn-danger btn-sm',
|
21
|
+
method: :delete,
|
22
|
+
data: { confirm: t('view.tooltips.are_you_sure'), toggle: :tooltip },
|
23
|
+
title: t('view.tooltips.delete') do
|
24
|
+
%i.fas.fa-trash
|
25
|
+
- if user.is_active
|
26
|
+
= link_to toggle_is_active_hq_user_path(user),
|
27
|
+
class: 'btn btn-danger btn-sm',
|
28
|
+
method: :post,
|
29
|
+
data: { toggle: :tooltip },
|
30
|
+
title: t('view.make_passive') do
|
31
|
+
%i.fas.fa-ban
|
32
|
+
- else
|
33
|
+
= link_to toggle_is_active_hq_user_path(user),
|
34
|
+
class: 'btn btn-info btn-sm',
|
35
|
+
method: :post,
|
36
|
+
data: { toggle: :tooltip },
|
37
|
+
title: t('view.make_active') do
|
38
|
+
%i.fas.fa-check
|
@@ -0,0 +1,18 @@
|
|
1
|
+
- content_for :toolbar do
|
2
|
+
= link_to new_hq_user_path, class: 'btn btn-default btn-primary' do
|
3
|
+
%i.fas.fa-plus
|
4
|
+
= t('view.actions.new', resource_name: User.model_name.human)
|
5
|
+
|
6
|
+
.card
|
7
|
+
.card-header
|
8
|
+
%i.fas.fa-table
|
9
|
+
= t('activerecord.models.users')
|
10
|
+
.float-right
|
11
|
+
.btn-group
|
12
|
+
%a.btn{ href: hq_users_path, data: { toggle: 'tooltip' }, title: t('view.reload') }
|
13
|
+
%i.fas.fa-sync
|
14
|
+
.badge.badge-pill.badge-secondary= @users.total_entries
|
15
|
+
= blankable(@users, @search)
|
16
|
+
.card-footer
|
17
|
+
.pagination.pagination-sm
|
18
|
+
= will_paginate @users, renderer: BootstrapPagination::Rails, bootstrap: 3
|
@@ -1,5 +1,5 @@
|
|
1
1
|
- content_for :form_title do
|
2
|
-
= t('
|
2
|
+
= t('view.form.new_title', resource_name: User.model_name.human)
|
3
3
|
.alert.alert-info
|
4
4
|
= t('view.create_resource_mail_info', resource: User.model_name.human.downcase)
|
5
|
-
= render 'form'
|
5
|
+
= render 'form', user: @user
|
@@ -1,19 +1,18 @@
|
|
1
1
|
- content_for :toolbar do
|
2
|
-
= link_to edit_hq_user_path(@user
|
3
|
-
%i.
|
4
|
-
= t('
|
5
|
-
.
|
6
|
-
.
|
7
|
-
%i.
|
8
|
-
= t('
|
9
|
-
.
|
2
|
+
= link_to edit_hq_user_path(@user), class: 'btn btn-default btn-primary' do
|
3
|
+
%i.fas.fa-pencil
|
4
|
+
= t('view.edit')
|
5
|
+
.card
|
6
|
+
.card-header
|
7
|
+
%i.fas.fa-edit
|
8
|
+
= t('view.tooltips.show', resource_name: User.model_name.human)
|
9
|
+
.card-body
|
10
10
|
= show_for @user do |s|
|
11
11
|
= s.attribute :name
|
12
12
|
= s.attribute :surname
|
13
13
|
= s.attribute :email do
|
14
14
|
= mail_to @user.email, @user.email
|
15
15
|
= s.attribute :is_active
|
16
|
-
= s.attribute :time_zone
|
17
16
|
= s.attribute :current_sign_in_at
|
18
17
|
= s.attribute :last_sign_in_at
|
19
18
|
= s.attribute :created_at
|
@@ -0,0 +1,33 @@
|
|
1
|
+
!!!
|
2
|
+
%html{ lang: I18n.locale }
|
3
|
+
%head
|
4
|
+
%title
|
5
|
+
- if content_for?(:title)
|
6
|
+
= "#{yield(:title)} - <%= app_name.capitalize %>"
|
7
|
+
- else
|
8
|
+
= '<%= app_name.capitalize %>'
|
9
|
+
%meta{ 'http-equiv': 'content-type', content: 'text/html', charset: 'utf-8' }
|
10
|
+
%meta{ 'http-equiv': 'x-ua-compatible', content: 'ie=edge,chrome=1' }
|
11
|
+
%meta{ name: 'description', content: '<%= app_name.capitalize %>' }
|
12
|
+
%meta{ name: 'author', content: '<%= app_name.capitalize %>' }
|
13
|
+
%link{ rel: 'shortcut icon', href: '/images/favicon.png' }
|
14
|
+
|
15
|
+
= stylesheet_link_tag 'application',
|
16
|
+
'//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css',
|
17
|
+
media: 'all',
|
18
|
+
'data-turbolinks-track': 'reload'
|
19
|
+
= javascript_include_tag 'application',
|
20
|
+
'data-turbolinks-track': 'reload'
|
21
|
+
= csrf_meta_tags
|
22
|
+
= yield :head
|
23
|
+
%body
|
24
|
+
= render 'layouts/partials/warnings'
|
25
|
+
.container-narrow
|
26
|
+
.header
|
27
|
+
= render 'layouts/partials/navbar'
|
28
|
+
= render 'layouts/partials/messages'
|
29
|
+
= yield
|
30
|
+
.footer
|
31
|
+
%p
|
32
|
+
= t('view.welcome.footer', app_name: '<%= app_name.capitalize %>',
|
33
|
+
year: Time.zone.now.year).html_safe
|
@@ -0,0 +1,57 @@
|
|
1
|
+
!!! 5
|
2
|
+
/[if IE 8] <html class="no-js lt-ie10 lt-ie9" lang="en-us">
|
3
|
+
/[if IE 9] <html class="no-js lt-ie10 lt-ie9" lang="en-us">
|
4
|
+
/[if lt IE 10] <html class="no-js lt-ie10" lang="en-us">
|
5
|
+
%html.no-js{ lang: I18n.locale }
|
6
|
+
%head
|
7
|
+
%title
|
8
|
+
- if content_for?(:title)
|
9
|
+
= "#{yield(:title)} - <%= app_name.capitalize %>"
|
10
|
+
- else
|
11
|
+
= '<%= app_name.capitalize %>'
|
12
|
+
%meta{ 'http-equiv': 'content-type', content: 'text/html', charset: 'utf-8' }
|
13
|
+
%meta{ 'http-equiv': 'x-ua-compatible', content: 'ie=edge,chrome=1' }
|
14
|
+
%meta{ name: 'description', content: '<%= app_name.capitalize %>' }
|
15
|
+
%meta{ name: 'author', content: '<%= app_name.capitalize %>' }
|
16
|
+
%meta{ content: 'initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width',
|
17
|
+
name: 'viewport' }
|
18
|
+
%meta{ name: 'viewport',
|
19
|
+
content: 'initial-scale=1.0,user-scalable=no,maximum-scale=1',
|
20
|
+
media: '(device-height: 568px)' }
|
21
|
+
%meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }
|
22
|
+
%meta{ name: 'apple-mobile-web-app-status-bar-style', content: 'translucent-black' }
|
23
|
+
%link{ rel: 'shortcut icon', href: '/images/favicon.png' }
|
24
|
+
|
25
|
+
= csrf_meta_tags
|
26
|
+
|
27
|
+
/ Stylesheets (Don't change include order)
|
28
|
+
= stylesheet_link_tag 'hq/application',
|
29
|
+
media: 'all',
|
30
|
+
'data-turbolinks-track': 'reload'
|
31
|
+
|
32
|
+
/ Javascripts
|
33
|
+
= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js',
|
34
|
+
'hq/application',
|
35
|
+
'data-turbolinks-track': 'reload'
|
36
|
+
= yield :head
|
37
|
+
|
38
|
+
%body
|
39
|
+
/ Navbar
|
40
|
+
= render 'layouts/hq/partials/navbar'
|
41
|
+
.container-fluid
|
42
|
+
.row.d-flex.d-md-block.flex-nowrap.wrapper
|
43
|
+
= render 'layouts/hq/partials/dock'
|
44
|
+
%main.col-md-10.float-left.pt-2.main
|
45
|
+
/ Tools
|
46
|
+
%section#tools
|
47
|
+
= render 'layouts/hq/partials/breadcrumb'
|
48
|
+
= render 'layouts/hq/partials/toolbar'
|
49
|
+
|
50
|
+
/ Content
|
51
|
+
#content
|
52
|
+
= render 'layouts/partials/warnings'
|
53
|
+
= render 'layouts/partials/messages'
|
54
|
+
= yield
|
55
|
+
|
56
|
+
/ Footer
|
57
|
+
= render 'layouts/hq/partials/footer'
|
@@ -0,0 +1,47 @@
|
|
1
|
+
!!! 5
|
2
|
+
/[if IE 8] <html class="no-js lt-ie10 lt-ie9" lang="en-us">
|
3
|
+
/[if IE 9] <html class="no-js lt-ie10 lt-ie9" lang="en-us">
|
4
|
+
/[if lt IE 10] <html class="no-js lt-ie10" lang="en-us">
|
5
|
+
%html.no-js{ lang: I18n.locale }
|
6
|
+
%head
|
7
|
+
%title
|
8
|
+
- if content_for?(:title)
|
9
|
+
= "#{yield(:title)} - <%= app_name.capitalize %>"
|
10
|
+
- else
|
11
|
+
= '<%= app_name.capitalize %>'
|
12
|
+
%meta{ 'http-equiv': 'content-type', content: 'text/html', charset: 'utf-8' }
|
13
|
+
%meta{ 'http-equiv': 'x-ua-compatible', content: 'ie=edge,chrome=1' }
|
14
|
+
%meta{ name: 'description', content: '<%= app_name.capitalize %>' }
|
15
|
+
%meta{ name: 'author', content: '<%= app_name.capitalize %>' }
|
16
|
+
%meta{ content: 'initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width',
|
17
|
+
name: 'viewport' }
|
18
|
+
%meta{ name: 'viewport',
|
19
|
+
content: 'initial-scale=1.0,user-scalable=no,maximum-scale=1',
|
20
|
+
media: '(device-height: 568px)' }
|
21
|
+
%meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }
|
22
|
+
%meta{ name: 'apple-mobile-web-app-status-bar-style', content: 'translucent-black' }
|
23
|
+
|
24
|
+
%link{ rel: 'shortcut icon', href: '/images/favicon.png' }
|
25
|
+
|
26
|
+
/ Stylesheets (Don't change include order)
|
27
|
+
= stylesheet_link_tag 'hq/application',
|
28
|
+
media: 'all',
|
29
|
+
'data-turbolinks-track': 'reload'
|
30
|
+
|
31
|
+
/ Javascripts
|
32
|
+
= javascript_include_tag '//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js',
|
33
|
+
'hq/application',
|
34
|
+
'data-turbolinks-track': 'reload'
|
35
|
+
= yield :head
|
36
|
+
|
37
|
+
%body.login
|
38
|
+
= render 'layouts/partials/warnings'
|
39
|
+
.wrapper
|
40
|
+
.text-center
|
41
|
+
= render partial: 'layouts/partials/messages'
|
42
|
+
= yield
|
43
|
+
|
44
|
+
%br/
|
45
|
+
.text-center.text-muted
|
46
|
+
= render partial: 'layouts/hq/partials/footer'
|
47
|
+
= render file: 'public/VERSION.txt'
|
@@ -0,0 +1,95 @@
|
|
1
|
+
.col-md-2.float-left.col-1.pl-0.pr-0.collapse.width.show#sidebar
|
2
|
+
.list-group.border-0.card.text-center.text-md-left
|
3
|
+
%a.list-group-item.d-inline-block{ 'data-parent' => '#sidebar',
|
4
|
+
href: hq_dashboard_index_path,
|
5
|
+
class: css_class(hq_dashboard_index_path,
|
6
|
+
not_exist: 'collapsed') }
|
7
|
+
%i.fas.fa-home
|
8
|
+
%span.d-none.d-md-inline= t('view.dock.dashboard')
|
9
|
+
%a.list-group-item.d-inline-block{ 'aria-expanded' => 'false',
|
10
|
+
'data-parent' => '#sidebar',
|
11
|
+
'data-toggle' => 'collapse',
|
12
|
+
href: '#menu-users',
|
13
|
+
class: css_class([hq_admins_path, hq_users_path],
|
14
|
+
not_exist: 'collapsed') }
|
15
|
+
%i.fas.fa-list
|
16
|
+
%span.d-none.d-md-inline
|
17
|
+
= t('view.dock.system_users')
|
18
|
+
.collapse#menu-users{ class: css_class([hq_admins_path, hq_users_path], exist: 'show') }
|
19
|
+
%a.list-group-item{ 'data-parent' => '#menu-users', href: hq_admins_path }
|
20
|
+
%i.fas.fa-users
|
21
|
+
= t('activerecord.models.admins')
|
22
|
+
%a.list-group-item{ 'data-parent' => '#menu-users', href: hq_users_path }
|
23
|
+
%i.fas.fa-users
|
24
|
+
= t('activerecord.models.users')
|
25
|
+
|
26
|
+
-# Sidebar Example
|
27
|
+
.row.d-flex.d-md-block.flex-nowrap.wrapper
|
28
|
+
.col-md-3.float-left.col-1.pl-0.pr-0.collapse.width.show#sidebar
|
29
|
+
.list-group.border-0.card.text-center.text-md-left
|
30
|
+
%a.list-group-item.d-inline-block.collapsed{ 'aria-expanded' => 'false',
|
31
|
+
'data-parent' => '#sidebar',
|
32
|
+
'data-toggle' => 'collapse',
|
33
|
+
href: '#menu1' }
|
34
|
+
%i.fas.fa-home
|
35
|
+
%span.d-none.d-md-inline Item 1
|
36
|
+
.collapse#menu1
|
37
|
+
%a.list-group-item{ 'aria-expanded' => 'false',
|
38
|
+
'data-toggle' => 'collapse',
|
39
|
+
href: '#menu1sub1' } Subitem 1
|
40
|
+
.collapse#menu1sub1
|
41
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1',
|
42
|
+
href: '#' } Subitem 1 a
|
43
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1',
|
44
|
+
href: '#' } Subitem 2 b
|
45
|
+
%a.list-group-item{ 'aria-expanded' => 'false',
|
46
|
+
'data-toggle' => 'collapse',
|
47
|
+
href: '#menu1sub1sub1' } Subitem 3 c
|
48
|
+
.collapse#menu1sub1sub1
|
49
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1sub1',
|
50
|
+
href: '#' } Subitem 3 c.1
|
51
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1sub1',
|
52
|
+
href: '#' } Subitem 3 c.2
|
53
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1',
|
54
|
+
href: '#' } Subitem 4 d
|
55
|
+
%a.list-group-item{ 'aria-expanded' => 'false',
|
56
|
+
'data-toggle' => 'collapse',
|
57
|
+
href: '#menu1sub1sub2' } Subitem 5 e
|
58
|
+
.collapse#menu1sub1sub2
|
59
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1sub2',
|
60
|
+
href: '#' } Subitem 5 e.1
|
61
|
+
%a.list-group-item{ 'data-parent' => '#menu1sub1sub2',
|
62
|
+
href: '#' } Subitem 5 e.2
|
63
|
+
%a.list-group-item{ 'data-parent' => '#menu1',
|
64
|
+
href: '#' } Subitem 2
|
65
|
+
%a.list-group-item{ 'data-parent' => '#menu1',
|
66
|
+
href: '#' } Subitem 3
|
67
|
+
%a.list-group-item.d-inline-block.collapsed{ 'data-parent' => '#sidebar',
|
68
|
+
href: '#' }
|
69
|
+
%i.fas.fa-film
|
70
|
+
%span.d-none.d-md-inline Item 2
|
71
|
+
%a.list-group-item.d-inline-block.collapsed{ 'aria-expanded' => 'false',
|
72
|
+
'data-parent' => '#sidebar',
|
73
|
+
'data-toggle' => 'collapse',
|
74
|
+
href: '#menu3' }
|
75
|
+
%i.fas.fa-book
|
76
|
+
%span.d-none.d-md-inline Item 3
|
77
|
+
.collapse#menu3
|
78
|
+
%a.list-group-item{ 'data-parent' => '#menu3',
|
79
|
+
href: '#' } 3.1
|
80
|
+
%a.list-group-item{ 'aria-expanded' => 'false',
|
81
|
+
'data-toggle' => 'collapse',
|
82
|
+
href: '#menu3sub2' } 3.2
|
83
|
+
.collapse#menu3sub2
|
84
|
+
%a.list-group-item{ 'data-parent' => '#menu3sub2',
|
85
|
+
href: '#' } 3.2 a
|
86
|
+
%a.list-group-item{ 'data-parent' => '#menu3sub2',
|
87
|
+
href: '#' } 3.2 b
|
88
|
+
%a.list-group-item{ 'data-parent' => '#menu3sub2',
|
89
|
+
href: '#' } 3.2 c
|
90
|
+
%a.list-group-item{ 'data-parent' => '#menu3',
|
91
|
+
href: '#' } 3.3
|
92
|
+
%a.list-group-item.d-inline-block.collapsed{ 'data-parent' => '#sidebar',
|
93
|
+
href: '#' }
|
94
|
+
%i.fas.fa-heart
|
95
|
+
%span.d-none.d-md-inline Item 4
|