jobshop 0.0.4.2p4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -3
  3. data/app/assets/javascripts/jobshop/application.js +14 -1
  4. data/app/assets/stylesheets/jobshop/application.scss +250 -42
  5. data/app/assets/stylesheets/jobshop/breakpoints.scss +35 -0
  6. data/app/builders/jobshop/builder.rb +34 -0
  7. data/app/controllers/concerns/registration_token_validation.rb +8 -6
  8. data/app/controllers/jobshop/pages_controller.rb +11 -4
  9. data/app/controllers/jobshop/{sites → teams}/registrations_controller.rb +1 -2
  10. data/app/controllers/jobshop/{sites_controller.rb → teams_controller.rb} +1 -1
  11. data/app/helpers/jobshop/application_helper.rb +5 -0
  12. data/app/models/jobshop/dashboard.rb +5 -0
  13. data/app/models/jobshop/registration.rb +9 -7
  14. data/app/models/jobshop/{site.rb → team.rb} +2 -1
  15. data/app/models/jobshop/user.rb +2 -1
  16. data/app/views/devise/confirmations/new.html.haml +10 -0
  17. data/app/views/devise/mailer/confirmation_instructions.html.haml +4 -0
  18. data/app/views/devise/mailer/password_change.html.haml +3 -0
  19. data/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
  20. data/app/views/devise/mailer/unlock_instructions.html.haml +5 -0
  21. data/app/views/devise/passwords/edit.html.haml +19 -0
  22. data/app/views/devise/passwords/new.html.haml +10 -0
  23. data/app/views/devise/registrations/edit.html.haml +31 -0
  24. data/app/views/devise/registrations/new.html.haml +21 -0
  25. data/app/views/devise/sessions/new.html.haml +14 -0
  26. data/app/views/devise/shared/_links.html.haml +19 -0
  27. data/app/views/devise/unlocks/new.html.haml +10 -0
  28. data/app/views/jobshop/dashboards/show.html.haml +140 -1
  29. data/app/views/jobshop/pages/index.html.haml +6 -11
  30. data/app/views/jobshop/teams/registrations/new.html.haml +26 -0
  31. data/app/views/layouts/jobshop/application.html.haml +7 -6
  32. data/config/initializers/devise.rb +1 -1
  33. data/config/routes.rb +2 -2
  34. data/db/migrate/20160417210218_create_jobshop_dashboards.rb +15 -0
  35. data/db/migrate/20160425062447_rename_site_to_team.rb +30 -0
  36. data/lib/generators/jobshop/team/USAGE +7 -0
  37. data/lib/generators/jobshop/{site/site_generator.rb → team/team_generator.rb} +8 -8
  38. data/lib/jobshop/engine.rb +1 -1
  39. data/lib/jobshop/version.rb +4 -3
  40. data/lib/tasks/jobshop_tasks.rake +20 -4
  41. metadata +44 -36
  42. data/app/assets/stylesheets/jobshop/generics.scss +0 -25
  43. data/app/assets/stylesheets/jobshop/material-icons.scss +0 -24
  44. data/app/assets/stylesheets/jobshop/site/configuration.scss +0 -3
  45. data/app/views/jobshop/sites/registrations/new.html.haml +0 -30
  46. data/lib/generators/jobshop/site/USAGE +0 -8
@@ -1,25 +0,0 @@
1
- html {
2
- body {
3
- > header,
4
- > main,
5
- > footer {
6
- display: flex;
7
- flex-direction: column;
8
- justify-content: center;
9
- align-items: center;
10
-
11
- > section {
12
- @extend .card;
13
- @extend .bubble;
14
-
15
- max-width: 80%;
16
- min-width: 38%;
17
-
18
- @media #{$small-and-down} {
19
- max-width: 100%;
20
- width: 100%;
21
- }
22
- }
23
- }
24
- }
25
- }
@@ -1,24 +0,0 @@
1
- .material-icons {
2
- display: inline-block;
3
- font-family: "Material Icons";
4
- font-size: 24px; /* Preferred icon size */
5
- font-style: normal;
6
- font-weight: normal;
7
- height: 1em;
8
- letter-spacing: normal;
9
- line-height: 1;
10
- text-transform: none;
11
- width: 1em;
12
- word-wrap: normal;
13
-
14
- /* Support for all WebKit browsers. */
15
- -webkit-font-smoothing: antialiased;
16
- /* Support for Safari and Chrome. */
17
- text-rendering: optimizeLegibility;
18
-
19
- /* Support for Firefox. */
20
- -moz-osx-font-smoothing: grayscale;
21
-
22
- /* Support for IE. */
23
- font-feature-settings: 'liga';
24
- }
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the site/configuration controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,30 +0,0 @@
1
- %header
2
- %object.logo{ type: "image/svg+xml", data: image_path("jobshop/logo.svg") }
3
-
4
- %main
5
- %section
6
- = form_for @registration, url: site_registration_path(@registration.site) do |f|
7
- .card-content
8
- = hidden_field_tag(:registration_token, params[:registration_token])
9
- %h1.center Getting Started
10
-
11
- - if @registration.errors.present?
12
- %p.error try again
13
-
14
- = f.fields_for(@registration.site) do |site_f|
15
- %ul.input-field
16
- %li= site_f.label(:name, "Organization Name") + site_f.text_field(:name)
17
-
18
- = f.fields_for(@registration.user) do |user_f|
19
- %ul.input-field
20
- %li= user_f.label(:email) + user_f.email_field(:email)
21
-
22
- %ul.input-field
23
- %li= user_f.label(:password) + user_f.password_field(:password)
24
-
25
- %ul.input-field
26
- %li= user_f.label(:password_confirmation) + user_f.password_field(:password_confirmation)
27
-
28
- %ul.right
29
- %li= f.button "Next »".html_safe, class: "btn waves-effect waves-light"
30
-
@@ -1,8 +0,0 @@
1
- Description:
2
- Explain the generator
3
-
4
- Example:
5
- rails generate site Thing
6
-
7
- This will create:
8
- what/will/it/create