dhatu 0.3.6.pre.materialize → 0.3.7.pre.materialize

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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/android-icon-144x144.png +0 -0
  3. data/app/assets/images/android-icon-192x192.png +0 -0
  4. data/app/assets/images/android-icon-36x36.png +0 -0
  5. data/app/assets/images/android-icon-48x48.png +0 -0
  6. data/app/assets/images/android-icon-72x72.png +0 -0
  7. data/app/assets/images/android-icon-96x96.png +0 -0
  8. data/app/assets/images/apple-icon-114x114.png +0 -0
  9. data/app/assets/images/apple-icon-120x120.png +0 -0
  10. data/app/assets/images/apple-icon-144x144.png +0 -0
  11. data/app/assets/images/apple-icon-152x152.png +0 -0
  12. data/app/assets/images/apple-icon-180x180.png +0 -0
  13. data/app/assets/images/apple-icon-57x57.png +0 -0
  14. data/app/assets/images/apple-icon-60x60.png +0 -0
  15. data/app/assets/images/apple-icon-72x72.png +0 -0
  16. data/app/assets/images/apple-icon-76x76.png +0 -0
  17. data/app/assets/images/apple-icon-precomposed.png +0 -0
  18. data/app/assets/images/apple-icon.png +0 -0
  19. data/app/assets/images/browserconfig.xml +2 -0
  20. data/app/assets/images/favicon-16x16.png +0 -0
  21. data/app/assets/images/favicon-32x32.png +0 -0
  22. data/app/assets/images/favicon-96x96.png +0 -0
  23. data/app/assets/images/favicon.ico +0 -0
  24. data/app/assets/images/favicon.png +0 -0
  25. data/app/assets/images/logo-small.png +0 -0
  26. data/app/assets/images/logo-white-small.png +0 -0
  27. data/app/assets/images/logo-white.png +0 -0
  28. data/app/assets/images/logo.png +0 -0
  29. data/app/assets/images/manifest.json +41 -0
  30. data/app/assets/images/ms-icon-144x144.png +0 -0
  31. data/app/assets/images/ms-icon-150x150.png +0 -0
  32. data/app/assets/images/ms-icon-310x310.png +0 -0
  33. data/app/assets/images/ms-icon-70x70.png +0 -0
  34. data/app/controllers/dhatu/application_controller.rb +2 -2
  35. data/app/controllers/dhatu/career_opportunities_controller.rb +2 -2
  36. data/app/controllers/dhatu/dashboard_controller.rb +165 -0
  37. data/app/controllers/dhatu/products_controller.rb +2 -2
  38. data/app/controllers/dhatu/projects_controller.rb +2 -2
  39. data/app/controllers/dhatu/services_controller.rb +2 -2
  40. data/app/models/dhatu/career_opportunity.rb +1 -1
  41. data/app/models/dhatu/category.rb +2 -10
  42. data/app/views/dhatu/dashboard/bootstrap4/_index.html.erb +41 -0
  43. data/app/views/dhatu/dashboard/index.html.erb +4 -4
  44. data/app/views/dhatu/dashboard/materialize/_index.html.erb +26 -0
  45. data/app/views/dhatu/dashboard/xenon/_index.html.erb +26 -0
  46. data/app/views/layouts/kuppayam/bootstrap4/_footer.html.erb +24 -0
  47. data/app/views/layouts/kuppayam/{_header.html.erb → bootstrap4/_header.html.erb} +0 -0
  48. data/app/views/layouts/kuppayam/bootstrap4/_navbar.html.erb +271 -0
  49. data/app/views/layouts/kuppayam/bootstrap4/_sidebar.html.erb +251 -0
  50. data/app/views/layouts/kuppayam/{_footer.html.erb → materialize/_footer.html.erb} +1 -1
  51. data/app/views/layouts/kuppayam/materialize/_header.html.erb +43 -0
  52. data/app/views/layouts/kuppayam/{_navbar.html.erb → materialize/_navbar.html.erb} +0 -0
  53. data/app/views/layouts/kuppayam/{_sidebar.html.erb → materialize/_sidebar.html.erb} +5 -5
  54. data/app/views/layouts/kuppayam/xenon/_footer.html.erb +25 -0
  55. data/app/views/layouts/kuppayam/xenon/_header.html.erb +43 -0
  56. data/app/views/layouts/kuppayam/xenon/_navbar.html.erb +55 -0
  57. data/app/views/layouts/kuppayam/xenon/_sidebar.html.erb +267 -0
  58. data/app/views/pattana/dashboard/_index.html.erb +1 -1
  59. data/app/views/usman/dashboard/_super_admin_index.html.erb +1 -1
  60. data/lib/dhatu/version.rb +1 -1
  61. metadata +55 -14
  62. data/app/views/dhatu/dashboard/_index.html.erb +0 -141
  63. data/app/views/layouts/dhatu/application.html.erb +0 -14
@@ -30,6 +30,6 @@
30
30
  </h3>
31
31
  <hr class="mb-30" style="border-top:1px solid #ddd;">
32
32
 
33
- <%= render partial: "/layouts/dashboard/items", locals: { items: pattana_items } %>
33
+ <%= render partial: "/layouts/dashboard/xenon/items", locals: { items: pattana_items } %>
34
34
 
35
35
  <% end %>
@@ -17,6 +17,6 @@
17
17
  </h3>
18
18
  <hr class="mb-30" style="border-top:1px solid #ddd;">
19
19
 
20
- <%= render partial: "/layouts/dashboard/items", locals: { items: super_admin_items } %>
20
+ <%= render partial: "/layouts/dashboard/xenon/items", locals: { items: super_admin_items } %>
21
21
 
22
22
  <% end %>
@@ -1,5 +1,5 @@
1
1
  module Dhatu
2
- VERSION = '0.3.6.pre.materialize'
2
+ VERSION = '0.3.7.pre.materialize'
3
3
  # The old version to migrate existing applications
4
4
  # VERSION = '0.1.25'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dhatu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6.pre.materialize
4
+ version: 0.3.7.pre.materialize
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-08 00:00:00.000000000 Z
11
+ date: 2018-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -104,42 +104,42 @@ dependencies:
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: 0.2.7.pre.materialize
107
+ version: 0.2.8.pre.materialize
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 0.2.7.pre.materialize
114
+ version: 0.2.8.pre.materialize
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: pattana
117
117
  requirement: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- version: 0.2.5.pre.materialize
121
+ version: 0.2.6.pre.materialize
122
122
  type: :runtime
123
123
  prerelease: false
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: 0.2.5.pre.materialize
128
+ version: 0.2.6.pre.materialize
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: usman
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- version: 0.4.7.pre.materialize
135
+ version: 0.4.8.pre.materialize
136
136
  type: :runtime
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: 0.4.7.pre.materialize
142
+ version: 0.4.8.pre.materialize
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: bcrypt
145
145
  requirement: !ruby/object:Gem::Requirement
@@ -385,10 +385,42 @@ files:
385
385
  - README.md
386
386
  - Rakefile
387
387
  - app/assets/config/dhatu_manifest.js
388
+ - app/assets/images/android-icon-144x144.png
389
+ - app/assets/images/android-icon-192x192.png
390
+ - app/assets/images/android-icon-36x36.png
391
+ - app/assets/images/android-icon-48x48.png
392
+ - app/assets/images/android-icon-72x72.png
393
+ - app/assets/images/android-icon-96x96.png
394
+ - app/assets/images/apple-icon-114x114.png
395
+ - app/assets/images/apple-icon-120x120.png
396
+ - app/assets/images/apple-icon-144x144.png
397
+ - app/assets/images/apple-icon-152x152.png
398
+ - app/assets/images/apple-icon-180x180.png
399
+ - app/assets/images/apple-icon-57x57.png
400
+ - app/assets/images/apple-icon-60x60.png
401
+ - app/assets/images/apple-icon-72x72.png
402
+ - app/assets/images/apple-icon-76x76.png
403
+ - app/assets/images/apple-icon-precomposed.png
404
+ - app/assets/images/apple-icon.png
405
+ - app/assets/images/browserconfig.xml
388
406
  - app/assets/images/dhatu/category-large.png
389
407
  - app/assets/images/dhatu/category-medium.png
390
408
  - app/assets/images/dhatu/category-small.png
391
409
  - app/assets/images/dhatu/category-tiny.png
410
+ - app/assets/images/favicon-16x16.png
411
+ - app/assets/images/favicon-32x32.png
412
+ - app/assets/images/favicon-96x96.png
413
+ - app/assets/images/favicon.ico
414
+ - app/assets/images/favicon.png
415
+ - app/assets/images/logo-small.png
416
+ - app/assets/images/logo-white-small.png
417
+ - app/assets/images/logo-white.png
418
+ - app/assets/images/logo.png
419
+ - app/assets/images/manifest.json
420
+ - app/assets/images/ms-icon-144x144.png
421
+ - app/assets/images/ms-icon-150x150.png
422
+ - app/assets/images/ms-icon-310x310.png
423
+ - app/assets/images/ms-icon-70x70.png
392
424
  - app/assets/javascripts/dhatu/application.js
393
425
  - app/assets/stylesheets/dhatu/application.css
394
426
  - app/controllers/dhatu/application_controller.rb
@@ -472,8 +504,10 @@ files:
472
504
  - app/views/dhatu/categories/_show.html.erb
473
505
  - app/views/dhatu/categories/choose_category_type.html.erb
474
506
  - app/views/dhatu/categories/index.html.erb
475
- - app/views/dhatu/dashboard/_index.html.erb
507
+ - app/views/dhatu/dashboard/bootstrap4/_index.html.erb
476
508
  - app/views/dhatu/dashboard/index.html.erb
509
+ - app/views/dhatu/dashboard/materialize/_index.html.erb
510
+ - app/views/dhatu/dashboard/xenon/_index.html.erb
477
511
  - app/views/dhatu/events/_form.html.erb
478
512
  - app/views/dhatu/events/_index.html.erb
479
513
  - app/views/dhatu/events/_row.html.erb
@@ -567,11 +601,18 @@ files:
567
601
  - app/views/dhatu/testimonials/_row.html.erb
568
602
  - app/views/dhatu/testimonials/_show.html.erb
569
603
  - app/views/dhatu/testimonials/index.html.erb
570
- - app/views/layouts/dhatu/application.html.erb
571
- - app/views/layouts/kuppayam/_footer.html.erb
572
- - app/views/layouts/kuppayam/_header.html.erb
573
- - app/views/layouts/kuppayam/_navbar.html.erb
574
- - app/views/layouts/kuppayam/_sidebar.html.erb
604
+ - app/views/layouts/kuppayam/bootstrap4/_footer.html.erb
605
+ - app/views/layouts/kuppayam/bootstrap4/_header.html.erb
606
+ - app/views/layouts/kuppayam/bootstrap4/_navbar.html.erb
607
+ - app/views/layouts/kuppayam/bootstrap4/_sidebar.html.erb
608
+ - app/views/layouts/kuppayam/materialize/_footer.html.erb
609
+ - app/views/layouts/kuppayam/materialize/_header.html.erb
610
+ - app/views/layouts/kuppayam/materialize/_navbar.html.erb
611
+ - app/views/layouts/kuppayam/materialize/_sidebar.html.erb
612
+ - app/views/layouts/kuppayam/xenon/_footer.html.erb
613
+ - app/views/layouts/kuppayam/xenon/_header.html.erb
614
+ - app/views/layouts/kuppayam/xenon/_navbar.html.erb
615
+ - app/views/layouts/kuppayam/xenon/_sidebar.html.erb
575
616
  - app/views/pattana/dashboard/_index.html.erb
576
617
  - app/views/usman/dashboard/_super_admin_index.html.erb
577
618
  - config/routes.rb
@@ -1,141 +0,0 @@
1
- <%
2
- dhatu_items = {
3
- pages: {
4
- text: "Pages",
5
- icon_class: "fa-file",
6
- url: dhatu.pages_url,
7
- has_permission: @current_user.has_read_permission?(Dhatu::Page)
8
- },
9
- categories: {
10
- text: "Categories",
11
- icon_class: "fa-sitemap",
12
- url: dhatu.choose_category_type_url,
13
- has_permission: @current_user.has_read_permission?(Dhatu::Category)
14
- },
15
- projects: {
16
- text: "Projects",
17
- icon_class: "fa-rocket",
18
- url: dhatu.projects_url,
19
- has_permission: @current_user.has_read_permission?(Dhatu::Project)
20
- },
21
- manufacturers: {
22
- text: "Manufacturers",
23
- icon_class: "fa-institution",
24
- url: dhatu.manufacturers_url,
25
- has_permission: @current_user.has_read_permission?(Dhatu::Manufacturer)
26
- },
27
- products: {
28
- text: "Products",
29
- icon_class: "linecons-shop",
30
- url: dhatu.products_url,
31
- has_permission: @current_user.has_read_permission?(Dhatu::Product)
32
- },
33
- services: {
34
- text: "Services",
35
- icon_class: "fa-glass",
36
- url: dhatu.services_url,
37
- has_permission: @current_user.has_read_permission?(Dhatu::Service)
38
- },
39
- photo_albums: {
40
- text: "Photo Gallery",
41
- icon_class: "fa-image",
42
- url: dhatu.photo_albums_url,
43
- has_permission: @current_user.has_read_permission?(Dhatu::PhotoAlbum)
44
- },
45
- prices: {
46
- text: "Prices",
47
- icon_class: "fa-dollar",
48
- url: dhatu.prices_url,
49
- has_permission: @current_user.has_read_permission?(Dhatu::Price)
50
- },
51
- branches: {
52
- text: "Branches",
53
- icon_class: "fa-location-arrow",
54
- url: dhatu.branches_url,
55
- has_permission: @current_user.has_read_permission?(Dhatu::Branch)
56
- },
57
- events: {
58
- text: "Events",
59
- icon_class: "fa-calendar",
60
- url: dhatu.events_url,
61
- has_permission: @current_user.has_read_permission?(Dhatu::Event)
62
- },
63
- testimonials: {
64
- text: "Testimonials",
65
- icon_class: "fa-comment",
66
- url: dhatu.testimonials_url,
67
- has_permission: @current_user.has_read_permission?(Dhatu::Testimonial)
68
- },
69
- careers: {
70
- text: "Careers",
71
- icon_class: "fa-comment",
72
- url: dhatu.career_opportunities_url,
73
- has_permission: @current_user.has_read_permission?(Dhatu::CareerOpportunity)
74
- },
75
- team: {
76
- text: "Team",
77
- icon_class: "fa-group",
78
- url: dhatu.team_members_url,
79
- has_permission: @current_user.has_read_permission?(Dhatu::TeamMember)
80
- }
81
- }
82
- %>
83
-
84
- <% if (dhatu_items.map{|x, y| y[:has_permission] }).compact.uniq.any? %>
85
-
86
- <h3 class="text-gray mt-50 mb-10">
87
- Website Elements <br>
88
- <small class="text-muted">Manage All Elements of your websites and much more ...</small>
89
- </h3>
90
- <hr class="mb-30" style="border-top:1px solid #ddd;">
91
-
92
- <%= render partial: "/layouts/dashboard/items", locals: { items: dhatu_items } %>
93
- <% end %>
94
-
95
-
96
- <%
97
- dhatu_marketing_items = {
98
- promotions: {
99
- text: "Promotions",
100
- icon_class: "fa-gift",
101
- url: dhatu.promotions_url,
102
- has_permission: @current_user.has_read_permission?(Dhatu::Promotion)
103
- },
104
- promotion_enquiries: {
105
- text: "Promotional Enquiries",
106
- icon_class: "fa-bullhorn",
107
- url: dhatu.promotion_enquiries_url,
108
- has_permission: @current_user.has_read_permission?(Dhatu::PromotionEnquiry)
109
- },
110
- bookings: {
111
- text: "Bookings",
112
- icon_class: "fa-calendar",
113
- url: dhatu.bookings_url,
114
- has_permission: @current_user.has_read_permission?(Dhatu::Booking)
115
- },
116
- blog_posts: {
117
- text: "Blog",
118
- icon_class: "fa-newspaper-o",
119
- url: dhatu.blog_posts_url,
120
- has_permission: @current_user.has_read_permission?(Dhatu::BlogPost)
121
- },
122
- offers: {
123
- text: "Offers",
124
- icon_class: "fa-gift",
125
- url: dhatu.offers_url,
126
- has_permission: @current_user.has_read_permission?(Dhatu::Offer)
127
- }
128
- }
129
- %>
130
-
131
- <% if (dhatu_marketing_items.map{|x, y| y[:has_permission] }).compact.uniq.any? %>
132
-
133
- <h3 class="text-gray mt-50 mb-10">
134
- Marketing Elements <br>
135
- <small class="text-muted">Manage All Elements of your websites and much more ...</small>
136
- </h3>
137
- <hr class="mb-30" style="border-top:1px solid #ddd;">
138
-
139
- <%= render partial: "/layouts/dashboard/items", locals: { items: dhatu_marketing_items } %>
140
-
141
- <% end %>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dhatu</title>
5
- <%= stylesheet_link_tag "dhatu/application", media: "all" %>
6
- <%= javascript_include_tag "dhatu/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>