jinda 0.7.7.3 → 0.7.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -12
  3. data/lib/generators/jinda/templates/app/mailers/{application_mailer.rb-org → application_mailer.rb} +0 -0
  4. data/lib/generators/jinda/templates/config/mongoid.yml +3 -3
  5. data/lib/jinda/version.rb +1 -1
  6. data/test/dummy/Dockerfile +4 -2
  7. data/test/dummy/Gemfile +5 -2
  8. data/test/dummy/Gemfile.lock +21 -22
  9. data/test/dummy/Guardfile +96 -0
  10. data/test/dummy/app/assets/javascripts/application.js +8 -8
  11. data/test/dummy/app/assets/stylesheets/{application.css.scss → application.scss} +12 -4
  12. data/test/dummy/app/assets/stylesheets/jinda.scss +253 -0
  13. data/test/dummy/app/controllers/adminltes_controller.rb +2 -0
  14. data/test/dummy/app/mailers/application_mailer.rb +2 -2
  15. data/test/dummy/app/views/adminltes/dashboard1.haml +461 -0
  16. data/test/dummy/app/views/adminltes/dashboard2.haml +656 -0
  17. data/test/dummy/app/views/identities/new-bak.html.haml +32 -0
  18. data/test/dummy/app/views/identities/new.html.haml +13 -0
  19. data/test/dummy/app/views/layouts/application.haml +51 -4
  20. data/test/dummy/app/views/layouts/application.haml.bak +4 -0
  21. data/test/dummy/app/views/layouts/lte/_flash.haml +9 -0
  22. data/test/dummy/app/views/layouts/lte/_footer.haml +7 -0
  23. data/test/dummy/app/views/layouts/lte/_header.haml +111 -0
  24. data/test/dummy/app/views/layouts/lte/_menu.haml +42 -0
  25. data/test/dummy/app/views/layouts/lte/_menu_mm.haml +36 -0
  26. data/test/dummy/app/views/layouts/lte/_rightbar.haml +123 -0
  27. data/test/dummy/app/views/layouts/lte/_sidebar.haml +154 -0
  28. data/test/dummy/app/views/sessions/new-bak.html.haml +22 -0
  29. data/test/dummy/app/views/sessions/new.html.haml +13 -0
  30. data/test/dummy/config/credentials.yml.enc +1 -1
  31. data/test/dummy/config/mongoid.yml +40 -54
  32. data/test/dummy/docker-compose.yml +4 -2
  33. data/test/dummy/log/development.log +2126 -494
  34. data/test/dummy/tmp/development_secret.txt +1 -1
  35. metadata +19 -9
  36. data/test/Gemfile +0 -2
  37. data/test/dummy/README.md.bak +0 -24
  38. data/test/dummy/app/assets/stylesheets/application.css.bak +0 -15
  39. data/test/dummy/app/assets/stylesheets/jinda_jqm.css.scss +0 -32
  40. data/test/dummy/app/mailers/application_mailer.rb-org +0 -4
@@ -3,6 +3,19 @@
3
3
  - @title= 'Sign Up'
4
4
  = form_tag "/auth/identity/register", {'data-ajax'=>'false'} do
5
5
  %h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign Up
6
+ %p.hint-text Sign Up with your social media account or Username
7
+ .social-btn.text-center
8
+ %a.btn.btn-primary.btn-lg{:href => "/auth/facebook"}
9
+ %i.fa.fa-facebook
10
+ Facebook
11
+ %a.btn.btn-info.btn-lg{:href => "#"}
12
+ %i.fa.fa-twitter
13
+ Twitter
14
+ %a.btn.btn-danger.btn-lg{:href => "/auth/google_oauth2"}
15
+ %i.fa.fa-google
16
+ Google
17
+ .or-seperator
18
+ %b or
6
19
  .sign_in
7
20
  .label-warning
8
21
  = flash[:alert]
@@ -1,4 +1,51 @@
1
- - if request.accept=="text/html, */*; q=0.01"
2
- = render "layouts/jqm/page"
3
- - else
4
- = render "layouts/jqm/full"
1
+ %html
2
+ %head
3
+ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
4
+ = csrf_meta_tags
5
+ /%link{:href => "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic", :rel => "stylesheet"}/
6
+ %title Jinda AdminLTE 2 | Starter
7
+ = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
8
+ = javascript_include_tag "application", 'data-turbolinks-track': 'reload'
9
+ /
10
+ BODY TAG OPTIONS:
11
+ \=================
12
+ Apply one or more of the following classes to get the
13
+ desired effect
14
+ |---------------------------------------------------------|
15
+ | SKINS | skin-blue |
16
+ | | skin-black |
17
+ | | skin-purple |
18
+ | | skin-yellow |
19
+ | | skin-red |
20
+ | | skin-green |
21
+ |---------------------------------------------------------|
22
+ |LAYOUT OPTIONS | fixed |
23
+ | | layout-boxed |
24
+ | | layout-top-nav |
25
+ | | sidebar-collapse |
26
+ | | sidebar-mini |
27
+ |---------------------------------------------------------|
28
+
29
+ %body.hold-transition.skin-yellow.sidebar-mini
30
+ .wrapper
31
+ = render "layouts/lte/header"
32
+ = render "layouts/lte/sidebar"
33
+ .content-wrapper
34
+ %h3.box-title
35
+ = @page_title
36
+ = render 'layouts/lte/flash'
37
+ .label-warning
38
+ #flashes
39
+ - if flash[:notice]
40
+ %p#flash_notice.messages.notice= flash[:notice]
41
+ = javascript_tag "$('#flash_notice').effect('highlight',{},1000);"
42
+ - if flash[:error] || flash[:errors]
43
+ %p#flash_errors.messages.errors= flash[:error] || flash[:errors]
44
+ = javascript_tag "$('#flash_errors').effect('highlight',{},1000);"
45
+ - flash[:error] = flash[:errors] = flash[:notice] = nil
46
+ = yield
47
+ = render 'layouts/lte/footer'
48
+ .control-sidebar-bg
49
+ / REQUIRED JS SCRIPTS
50
+ / jQuery 3
51
+
@@ -0,0 +1,4 @@
1
+ - if request.accept=="text/html, */*; q=0.01"
2
+ = render "layouts/jqm/page"
3
+ - else
4
+ = render "layouts/jqm/full"
@@ -0,0 +1,9 @@
1
+ .label-warning
2
+ #flashes
3
+ - if flash[:notice]
4
+ %p#flash_notice.messages.notice= flash[:notice]
5
+ = javascript_tag "$('#flash_notice').effect('highlight',{},1000);"
6
+ - if flash[:error] || flash[:errors]
7
+ %p#flash_errors.messages.errors= flash[:error] || flash[:errors]
8
+ = javascript_tag "$('#flash_errors').effect('highlight',{},1000);"
9
+ - flash[:error] = flash[:errors] = flash[:notice] = nil
@@ -0,0 +1,7 @@
1
+ %footer.main-footer
2
+ .pull-right.hidden-xs
3
+ / Anything you want
4
+ %strong
5
+ Copyright © 2020
6
+ %a{:href => "#"} Company
7
+ All rights reserved.
@@ -0,0 +1,111 @@
1
+
2
+ %header.main-header
3
+ / Logo
4
+ %a.logo{:href => root_path}
5
+ / mini logo for sidebar mini 50x50 pixels
6
+ %span.logo-mini
7
+ %b> J
8
+ LTE
9
+ / logo for regular state and mobile devices
10
+ %span.logo-lg
11
+ %b> Jinda
12
+ LTE
13
+ / Header Navbar: style can be found in header.less
14
+ %nav.navbar.navbar-static-top
15
+ / Sidebar toggle button
16
+ %a.sidebar-toggle{"data-toggle" => "push-menu", :href => "#", :role => "button"}
17
+ %span.sr-only Toggle lte
18
+
19
+ .navbar-custom-menu
20
+ %ul.nav.navbar-nav
21
+ %li.dropdown.messages-menu
22
+ %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"}
23
+ %i.fa.fa-envelope-o
24
+ %span.label.label-success 4
25
+ %ul.dropdown-menu
26
+ %li.header
27
+ You have 4 messages
28
+ %li
29
+ %ul.menu
30
+ %li
31
+ %a{:href => "#"}
32
+ .pull-left
33
+ - get_login_user_info
34
+ %img.img-circle{:alt => "User Image", src: $user_image}/
35
+ %h4
36
+ Sender Name
37
+ %small
38
+ %i.fa.fa-clock-o>
39
+ 5 mins
40
+ %p
41
+ Message Excerpt
42
+ %li.footer
43
+ %a{:href => "#"} See All Messages
44
+ %li.dropdown.notifications-menu
45
+ %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"}
46
+ %i.fa.fa-bell-o
47
+ %span.label.label-warning 10
48
+ %ul.dropdown-menu
49
+ %li.header
50
+ You have 10 notifications
51
+ %li
52
+ %ul.menu
53
+ %li
54
+ %a{:href => "#"}
55
+ %i.ion.ion-ios-people.info>
56
+ Notification title
57
+ %li.footer
58
+ %a{:href => "#"} View all
59
+ %li.dropdown.tasks-menu
60
+ %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"}
61
+ %i.fa.fa-flag-o
62
+ %span.label.label-danger 9
63
+ %ul.dropdown-menu
64
+ %li.header
65
+ You have 9 tasks
66
+ %li
67
+ %ul.menu
68
+ %li
69
+ %a{:href => "#"}
70
+ %h3
71
+ Design some buttons
72
+ %small.pull-right 20%
73
+ .progress.xs
74
+ .progress-bar.progress-bar-aqua{"aria-valuemax" => "100", "aria-valuemin" => "0", "aria-valuenow" => "20", :role => "progressbar", :style => "width: 20%"}
75
+ %span.sr-only 20% Complete
76
+ %li.footer
77
+ %a{:href => "#"} View all tasks
78
+ %li.dropdown.user.user-menu
79
+ %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"}
80
+ - get_login_user_info
81
+ %img.user-image{:alt => "User Image", src: $user_image}/
82
+ %span.hidden-xs #{$user_name}
83
+ %ul.dropdown-menu
84
+ %li.user-header
85
+ %img.img-circle{:alt => "User Image", :src => $user_image}/
86
+ %p
87
+ #{$user_name} - Developer
88
+ %small Member since Nov. 2012
89
+
90
+ - if !login?
91
+ %li.user-body
92
+ / Add Profile and Status here
93
+ %li
94
+ .col-xs-4.text-center
95
+ %a{:href => '/auth/facebook', "data-panel" => "main", rel: "external"}
96
+ %i.fa.fa-facebook
97
+ .col-xs-4.text-center
98
+ %a{:href => '/auth/google_oauth2', "data-panel" => "main", rel: "external"}
99
+ %i.fa.fa-google
100
+ %li.user-footer
101
+ .pull-right
102
+ - if login?
103
+ %li
104
+ %a.btn.btn-default.btn-flat{"data-panel" => "main", :href => logout_path, "data-ajax"=>"false"} Sign Out
105
+ - else
106
+ %li
107
+ %a.btn.btn-default.btn-flat{:href =>new_session_path,"data-panel" => "main"}
108
+ %i.fa.fa-circle-o
109
+ %span
110
+ Sign In
111
+
@@ -0,0 +1,42 @@
1
+ - head = login? ? current_ma_user.code : DEFAULT_HEADER
2
+ %li.active
3
+
4
+ %a{:href =>"/jinda","data-panel" => "main"}
5
+ %i.fa.fa-circle-o
6
+ Home
7
+
8
+ = render 'layouts/lte/menu_mm'
9
+ %li.treeview
10
+ %a{:href => "#"}
11
+ Multilevel from menu
12
+ %i.fa.fa-angle-left.pull-right
13
+ %ul.treeview-menu
14
+ %li
15
+ %a{:href => "#"} Link in level 1
16
+ %li
17
+ %a{:href => "#"} Link in level 1
18
+ - if login?
19
+ %li
20
+ %a{:href=>"/jinda/pending", "data-panel" => "main"} Pending Tasks
21
+ %li
22
+ %a{"data-panel" => "main", :href => logout_path, "data-ajax"=>"false"} Sign Out
23
+ - else
24
+ %li
25
+ %a{:href =>new_session_path,"data-panel" => "main"}
26
+ %i.fa.fa-circle-o
27
+ %span
28
+ Sign In
29
+ %li
30
+ %a{:href =>new_identity_path, "data-panel" => "main"}
31
+ %i.fa.fa-circle-o
32
+ %span
33
+ Sign Up
34
+ %li
35
+ = link_to "Refresh", "#", :onclick=>"window.location.replace('/')"
36
+
37
+
38
+
39
+
40
+
41
+
42
+
@@ -0,0 +1,36 @@
1
+ %li.treeview
2
+ - process_services
3
+ - Jinda::Module.all.asc(:seq).each do |m|
4
+ - unless m.role.blank?
5
+ - next unless login?
6
+ - next unless current_ma_user.role
7
+ - next unless current_ma_user.role.upcase.split(',').include?(m.role.upcase)
8
+ %li.treeview
9
+ %a{:href => "#"}
10
+ %i.fa.fa-circle-o
11
+ = m.name
12
+ %span.pull-right-container
13
+ %i.fa.fa-angle-left.pull-right
14
+ %ul.treeview-menu
15
+ %li
16
+
17
+ - m.services.asc(:seq).each do |s|
18
+ - next unless s.list
19
+ - xml= REXML::Document.new(s.xml).root
20
+ - unless s.rule.blank?
21
+ - next if (!eval(s.rule))
22
+ - unless s.role.blank?
23
+ - next unless login?
24
+ - next unless current_ma_user.role
25
+ - next unless current_ma_user.role.upcase.split(',').include?(s.role.upcase)
26
+ - if s.code.downcase=="link"
27
+ - name, url = s.name.split(":", 2)
28
+ - url.strip!
29
+ - else
30
+ - name= s.name; url= "/jinda/init?s=#{s.module_code}:#{s.code}"
31
+ - if s.confirm
32
+ %li
33
+ %a{"data-panel"=>"main", :onclick=>"if (confirm('Please Confirm')) {location.hash='#{url}'};"}= name
34
+ - else
35
+ %li
36
+ %a{"data-panel"=>"main", :href=> url}= name
@@ -0,0 +1,123 @@
1
+ %aside.control-sidebar.control-sidebar-dark
2
+ / Create the tabs
3
+ %ul.nav.nav-tabs.nav-justified.control-sidebar-tabs
4
+ %li
5
+ %a{"data-toggle" => "tab", :href => "#control-sidebar-home-tab"}
6
+ %i.fa.fa-home
7
+ %li
8
+ %a{"data-toggle" => "tab", :href => "#control-sidebar-settings-tab"}
9
+ %i.fa.fa-gears
10
+ / Tab panes
11
+ .tab-content
12
+ / Home tab content
13
+ #control-sidebar-home-tab.tab-pane
14
+ %h3.control-sidebar-heading Recent Activity
15
+ %ul.control-sidebar-menu
16
+ %li
17
+ %a{:href => "javascript:void(0)"}
18
+ %i.menu-icon.fa.fa-birthday-cake.bg-red
19
+ .menu-info
20
+ %h4.control-sidebar-subheading Langdon's Birthday
21
+ %p Will be 23 on April 24th
22
+ %li
23
+ %a{:href => "javascript:void(0)"}
24
+ %i.menu-icon.fa.fa-user.bg-yellow
25
+ .menu-info
26
+ %h4.control-sidebar-subheading Frodo Updated His Profile
27
+ %p New phone +1(800)555-1234
28
+ %li
29
+ %a{:href => "javascript:void(0)"}
30
+ %i.menu-icon.fa.fa-envelope-o.bg-light-blue
31
+ .menu-info
32
+ %h4.control-sidebar-subheading Nora Joined Mailing List
33
+ %p nora@example.com
34
+ %li
35
+ %a{:href => "javascript:void(0)"}
36
+ %i.menu-icon.fa.fa-file-code-o.bg-green
37
+ .menu-info
38
+ %h4.control-sidebar-subheading Cron Job 254 Executed
39
+ %p Execution time 5 seconds
40
+ / /.control-sidebar-menu
41
+ %h3.control-sidebar-heading Tasks Progress
42
+ %ul.control-sidebar-menu
43
+ %li
44
+ %a{:href => "javascript:void(0)"}
45
+ %h4.control-sidebar-subheading
46
+ Custom Template Design
47
+ %span.label.label-danger.pull-right 70%
48
+ .progress.progress-xxs
49
+ .progress-bar.progress-bar-danger{:style => "width: 70%"}
50
+ %li
51
+ %a{:href => "javascript:void(0)"}
52
+ %h4.control-sidebar-subheading
53
+ Update Resume
54
+ %span.label.label-success.pull-right 95%
55
+ .progress.progress-xxs
56
+ .progress-bar.progress-bar-success{:style => "width: 95%"}
57
+ %li
58
+ %a{:href => "javascript:void(0)"}
59
+ %h4.control-sidebar-subheading
60
+ Laravel Integration
61
+ %span.label.label-warning.pull-right 50%
62
+ .progress.progress-xxs
63
+ .progress-bar.progress-bar-warning{:style => "width: 50%"}
64
+ %li
65
+ %a{:href => "javascript:void(0)"}
66
+ %h4.control-sidebar-subheading
67
+ Back End Framework
68
+ %span.label.label-primary.pull-right 68%
69
+ .progress.progress-xxs
70
+ .progress-bar.progress-bar-primary{:style => "width: 68%"}
71
+ / /.control-sidebar-menu
72
+ / /.tab-pane
73
+ / Stats tab content
74
+ #control-sidebar-stats-tab.tab-pane Stats Tab Content
75
+ / /.tab-pane
76
+ / Settings tab content
77
+ #control-sidebar-settings-tab.tab-pane
78
+ %form{:method => "post"}
79
+ %h3.control-sidebar-heading General Settings
80
+ .form-group
81
+ %label.control-sidebar-subheading
82
+ Report panel usage
83
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
84
+ %p
85
+ Some information about this general settings option
86
+ / /.form-group
87
+ .form-group
88
+ %label.control-sidebar-subheading
89
+ Allow mail redirect
90
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
91
+ %p
92
+ Other sets of options are available
93
+ / /.form-group
94
+ .form-group
95
+ %label.control-sidebar-subheading
96
+ Expose author name in posts
97
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
98
+ %p
99
+ Allow the user to show his name in blog posts
100
+ / /.form-group
101
+ %h3.control-sidebar-heading Chat Settings
102
+ .form-group
103
+ %label.control-sidebar-subheading
104
+ Show me as online
105
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
106
+ / /.form-group
107
+ .form-group
108
+ %label.control-sidebar-subheading
109
+ Turn off notifications
110
+ %input.pull-right{:type => "checkbox"}/
111
+ / /.form-group
112
+ .form-group
113
+ %label.control-sidebar-subheading
114
+ Delete chat history
115
+ %a.text-red.pull-right{:href => "javascript:void(0)"}
116
+ %i.fa.fa-trash-o
117
+ / /.form-group
118
+ / /.tab-pane
119
+ / /.control-sidebar
120
+ /
121
+ Add the sidebar's background. This div must be placed
122
+ immediately after the control sidebar
123
+ .control-sidebar-bg
@@ -0,0 +1,154 @@
1
+ %aside.main-sidebar
2
+ %section.sidebar
3
+ .user-panel
4
+ .pull-left.image
5
+ =# %img.img-circle{:alt => "User Image", :src => asset_url("dist/img/user2-160x160.jpg")}/
6
+ - get_login_user_info
7
+ %img.img-circle{:alt => "User Image", src: $user_image}/
8
+ .pull-left.info
9
+ %p #{$user_name}
10
+ %a{:href => "#"}
11
+ %i.fa.fa-circle.text-success
12
+ Online
13
+ / search form
14
+ %form.sidebar-form{:action => "#", :method => "get"}
15
+ .input-group
16
+ %input.form-control{:name => "q", :placeholder => "Search...", :type => "text"}/
17
+ %span.input-group-btn
18
+ %button#search-btn.btn.btn-flat{:name => "search", :type => "submit"}
19
+ %i.fa.fa-search
20
+ / /.search form
21
+ / sidebar menu: : style can be found in sidebar.less
22
+ %ul.sidebar-menu{"data-widget" => "tree"}
23
+ %li.header MAIN NAVIGATION
24
+
25
+ = render 'layouts/lte/menu'
26
+
27
+
28
+ / Control Sidebar
29
+ %aside.control-sidebar.control-sidebar-dark
30
+ / Create the tabs
31
+ %ul.nav.nav-tabs.nav-justified.control-sidebar-tabs
32
+ %li
33
+ %a{"data-toggle" => "tab", :href => "#control-sidebar-home-tab"}
34
+ %i.fa.fa-home
35
+ %li
36
+ %a{"data-toggle" => "tab", :href => "#control-sidebar-settings-tab"}
37
+ %i.fa.fa-gears
38
+ / Tab panes
39
+ .tab-content
40
+ / Home tab content
41
+ #control-sidebar-home-tab.tab-pane
42
+ %h3.control-sidebar-heading Recent Activity
43
+ %ul.control-sidebar-menu
44
+ %li
45
+ %a{:href => "javascript:void(0)"}
46
+ %i.menu-icon.fa.fa-birthday-cake.bg-red
47
+ .menu-info
48
+ %h4.control-sidebar-subheading Langdon's Birthday
49
+ %p Will be 23 on April 24th
50
+ %li
51
+ %a{:href => "javascript:void(0)"}
52
+ %i.menu-icon.fa.fa-user.bg-yellow
53
+ .menu-info
54
+ %h4.control-sidebar-subheading Frodo Updated His Profile
55
+ %p New phone +1(800)555-1234
56
+ %li
57
+ %a{:href => "javascript:void(0)"}
58
+ %i.menu-icon.fa.fa-envelope-o.bg-light-blue
59
+ .menu-info
60
+ %h4.control-sidebar-subheading Nora Joined Mailing List
61
+ %p nora@example.com
62
+ %li
63
+ %a{:href => "javascript:void(0)"}
64
+ %i.menu-icon.fa.fa-file-code-o.bg-green
65
+ .menu-info
66
+ %h4.control-sidebar-subheading Cron Job 254 Executed
67
+ %p Execution time 5 seconds
68
+ / /.control-sidebar-menu
69
+ %h3.control-sidebar-heading Tasks Progress
70
+ %ul.control-sidebar-menu
71
+ %li
72
+ %a{:href => "javascript:void(0)"}
73
+ %h4.control-sidebar-subheading
74
+ Custom Template Design
75
+ %span.label.label-danger.pull-right 70%
76
+ .progress.progress-xxs
77
+ .progress-bar.progress-bar-danger{:style => "width: 70%"}
78
+ %li
79
+ %a{:href => "javascript:void(0)"}
80
+ %h4.control-sidebar-subheading
81
+ Update Resume
82
+ %span.label.label-success.pull-right 95%
83
+ .progress.progress-xxs
84
+ .progress-bar.progress-bar-success{:style => "width: 95%"}
85
+ %li
86
+ %a{:href => "javascript:void(0)"}
87
+ %h4.control-sidebar-subheading
88
+ Laravel Integration
89
+ %span.label.label-warning.pull-right 50%
90
+ .progress.progress-xxs
91
+ .progress-bar.progress-bar-warning{:style => "width: 50%"}
92
+ %li
93
+ %a{:href => "javascript:void(0)"}
94
+ %h4.control-sidebar-subheading
95
+ Back End Framework
96
+ %span.label.label-primary.pull-right 68%
97
+ .progress.progress-xxs
98
+ .progress-bar.progress-bar-primary{:style => "width: 68%"}
99
+ / /.control-sidebar-menu
100
+ / /.tab-pane
101
+ / Stats tab content
102
+ #control-sidebar-stats-tab.tab-pane Stats Tab Content
103
+ / /.tab-pane
104
+ / Settings tab content
105
+ #control-sidebar-settings-tab.tab-pane
106
+ %form{:method => "post"}
107
+ %h3.control-sidebar-heading General Settings
108
+ .form-group
109
+ %label.control-sidebar-subheading
110
+ Report panel usage
111
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
112
+ %p
113
+ Some information about this general settings option
114
+ / /.form-group
115
+ .form-group
116
+ %label.control-sidebar-subheading
117
+ Allow mail redirect
118
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
119
+ %p
120
+ Other sets of options are available
121
+ / /.form-group
122
+ .form-group
123
+ %label.control-sidebar-subheading
124
+ Expose author name in posts
125
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
126
+ %p
127
+ Allow the user to show his name in blog posts
128
+ / /.form-group
129
+ %h3.control-sidebar-heading Chat Settings
130
+ .form-group
131
+ %label.control-sidebar-subheading
132
+ Show me as online
133
+ %input.pull-right{:checked => "checked", :type => "checkbox"}/
134
+ / /.form-group
135
+ .form-group
136
+ %label.control-sidebar-subheading
137
+ Turn off notifications
138
+ %input.pull-right{:type => "checkbox"}/
139
+ / /.form-group
140
+ .form-group
141
+ %label.control-sidebar-subheading
142
+ Delete chat history
143
+ %a.text-red.pull-right{:href => "javascript:void(0)"}
144
+ %i.fa.fa-trash-o
145
+ / /.form-group
146
+ / /.tab-pane
147
+ / /.control-sidebar
148
+ /
149
+ Add the sidebar's background. This div must be placed
150
+ immediately after the control sidebar
151
+ .control-sidebar-bg
152
+ / ./wrapper
153
+
154
+
@@ -0,0 +1,22 @@
1
+ .container
2
+ .signup-form
3
+ = form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do
4
+ %h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign in
5
+ .sign_in
6
+ .label-warning
7
+ = flash[:alert]
8
+ .form-group.form-control
9
+ = label_tag :auth_key, "User name"
10
+ = text_field_tag :auth_key
11
+ .form-group.form-control
12
+ = label_tag :password, "Password"
13
+ = password_field_tag :password
14
+ .form-group
15
+ = label_tag :remember_me
16
+ = check_box_tag :remember_me, 1, params.permit[:remember_me]
17
+ %button.btn.btn-success.btn-block.actions{:type => "submit"}
18
+ %i.fas.fa-sign-in-alt
19
+ Sign in
20
+ = link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'}
21
+ %hr/
22
+
@@ -2,6 +2,19 @@
2
2
  .signup-form
3
3
  = form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do
4
4
  %h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign in
5
+ %p.hint-text Sign in with your social media account or Username
6
+ .social-btn.text-center
7
+ %a.btn.btn-primary.btn-lg{:href => "/auth/facebook"}
8
+ %i.fa.fa-facebook
9
+ Facebook
10
+ %a.btn.btn-info.btn-lg{:href => "#"}
11
+ %i.fa.fa-twitter
12
+ Twitter
13
+ %a.btn.btn-danger.btn-lg{:href => "/auth/google_oauth2"}
14
+ %i.fa.fa-google
15
+ Google
16
+ .or-seperator
17
+ %b or
5
18
  .sign_in
6
19
  .label-warning
7
20
  = flash[:alert]
@@ -1 +1 @@
1
- xOGPelyaT1v3CYb4FMvcnfeMGaZCqYxH+8aLnGqPEUiT3xTZ4p//+p7hk+9nCg4OlSf41OEZ1NXk3i0w0hB1dxEBuRmJ753h8RFqyYpUIRK0spp4IT0yco7a7n5Ga0Mk2GKjI30umX7mIZceXgaYXTGh8eZPBFhnXy7tB3uT8wC2Xj9L14MzgGb4BuVi+ahzJSEyt/4UhkrDDp1Fhp3jkGTl9dANcDQCl3OG1Dm2i9jhpGeJtX+XkPhUNquZ/OxnIYjdKdchiBIsLITsMEff0F/etO4Lhe6C42eqi4jaoiSTtgRht0dRe1IaqajIkq3R4MEf1QYUDZvzBTnJwtpsaBNx5H8nITuhrCa9Mf/kMecjP/qyhsKnJx+cjL7Qf8qm917sCahQr3AKHW8zKFz7MovZfuW6A2u4YxSJ--PIknWU8u9P4xf4A6--0GSRBaYsp1y2hRpDTuQ5GQ==
1
+ rKJOMS7I0Z2/6HTmUtZoHpiofv1hKjyG7PP/xif21dRzKKgCueZV6ImjpU0HdupQYnIheFTCoNdcQmzvzfl0oZaUr03Ox6pf/KGVkEUAwuBPAt76UzNrElzKR1LOctwpmQ6gqCT4AR26lGhpIQDC/XpzT6b4A05C19Xq6vwS4pYBPz119XcKB7dVVGfzhY79NndT1ifklAmWqw2qvoqDp9BdTPpI+HdtjZrbYV8KL0l34lqV/Cf8x2LkvNQjcnCQ8e8tCjNDBFbfQbNrAxQEC832RrQEZ4stK+miW3n+5tEMAwBg7lxyrI8OosHHn5GKnL5geG1NPIosSfgdiFnv0TGGRlaS2d8Is0c0LpWTAMoUN20xl6w6R2HMkumfXLmJLhZEfeZVsLwE11jjSxRLKd8hciqV+W9IqNqV--4BEM1/9dfS1odAZT--IrPmtHRIpZytag1DsyZDSg==