pattana 0.2.5.pre.materialize → 0.2.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9ccb65d7c648302b9aa401a8f0f7a9f18bb7f6244bb433d708a5de818c35620
4
- data.tar.gz: d75001ef8bab47479698938575e2233a397254e1bae120c2a5108dfb4710d2c0
3
+ metadata.gz: 64b385638435d362d1d1b19ed19646553f5738e9f41ba5210773dc0a7a129cbe
4
+ data.tar.gz: 97ccd7bff955188ccd853eda453280656b1a97625372bfc39005d04e8d98c2d8
5
5
  SHA512:
6
- metadata.gz: d7b71052a67fe1f8a7976a628743577d572c19a0d6dd00356ce0ae671427191b0def3ee1b5a2a6f0ce7540eabc9066fac339e4a68012ed488d2154c931c37346
7
- data.tar.gz: 01ec6583bce06277e28d38c0081974f0243cd93cc42e1901d67cc2ed67bead1f10d1b725d6f667024ea810d2df2adfed968334486855f316e6acf311fbebbfbd
6
+ metadata.gz: 166b3b6848e09c8e2c0a83ee0e9db29f81bc0f3da82114a34f7a83532a6759f83bebcd0a92bcf22435133e23aeeeea22d7be77081eb91a63d339a952a1be3df2
7
+ data.tar.gz: 8a73da86917ab49de6b0b6d133cfeed8a6b982a15861ece079af279bcd94d1a3c2aa304b160dcdf739bc6e921705aa014160b05803a9145b4c2e36b0c1a6a57f
@@ -1,20 +1,10 @@
1
1
  module Pattana
2
2
  class ApplicationController < Kuppayam::BaseController
3
3
 
4
- layout 'kuppayam/xenon/admin'
5
-
6
4
  helper_method :breadcrumb_home_path
7
5
 
8
6
  private
9
7
 
10
- def stylesheet_filename
11
- @stylesheet_filename = "kuppayam-xenon"
12
- end
13
-
14
- def javascript_filename
15
- @javascript_filename = "kuppayam-xenon"
16
- end
17
-
18
8
  def set_default_title
19
9
  set_title("Pattana Admin - Database of Countries, Regions and Cities")
20
10
  end
@@ -28,6 +18,6 @@ module Pattana
28
18
  def breadcrumb_home_path
29
19
  pattana.dashboard_path
30
20
  end
31
-
21
+
32
22
  end
33
23
  end
@@ -0,0 +1,25 @@
1
+ <footer class="main-footer sticky footer-type-1">
2
+
3
+ <div class="footer-inner">
4
+
5
+ <!-- Add your copyright text here -->
6
+ <div class="footer-text">
7
+ &copy; 2017
8
+ <strong>Pattana</strong>
9
+
10
+ All rights reserved. <br>developed, maintained and hosted by <a href="http://rightsolutions.io" target="_blank" style="color:red">Right Solutions</a>
11
+ </div>
12
+
13
+
14
+ <!-- Go to Top Link, just add rel="go-top" to any link to add this functionality -->
15
+ <div class="go-up">
16
+
17
+ <a href="#" rel="go-top">
18
+ <i class="fa-angle-up"></i>
19
+ </a>
20
+
21
+ </div>
22
+
23
+ </div>
24
+
25
+ </footer>
@@ -0,0 +1,43 @@
1
+ <div class="top-bar">
2
+ <div class="top-bar-left">
3
+ <ul class="dropdown menu" data-dropdown-menu>
4
+ <li class="menu-text">Site Title</li>
5
+ <li>
6
+ <a href="#">One</a>
7
+ <ul class="menu vertical">
8
+ <li><a href="#">One</a></li>
9
+ <li><a href="#">Two</a></li>
10
+ <li><a href="#">Three</a></li>
11
+ </ul>
12
+ </li>
13
+ <li><a href="#">Two</a></li>
14
+ <li><a href="#">Three</a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="top-bar-right">
18
+ <ul class="menu">
19
+ <li><input type="search" placeholder="Search"></li>
20
+ <li><button type="button" class="button">Search</button></li>
21
+ </ul>
22
+ </div>
23
+ </div>
24
+
25
+ <div class="header mb-40">
26
+
27
+ <div class="visible-xs pull-left mt-10">
28
+ <a href="#menu-toggle" class="btn btn-default" id="menu-toggle"><i class="fa fa-list"></i></a>
29
+ <%#= theme_button('', 'list', "#menu-toggle", btn_type: "default", id: "menu-toggle", classes: "") %>
30
+ </div>
31
+
32
+ <div class="pull-right mt-10">
33
+ <% if @current_user %>
34
+ <span style="color:#898989;">Welcome</span> <span style="color:#4b4b4b;"><%= @current_user.name %></span>
35
+ &nbsp;&nbsp;|&nbsp;&nbsp;
36
+ <%= link_to raw("Sign Out"), usman.sign_out_path, method: :delete %>
37
+ <% else %>
38
+ <%= link_to raw("Sign In"), "#" %>
39
+ <% end %>
40
+ </div>
41
+ <div class="cl-10"></div>
42
+ </div>
43
+
@@ -0,0 +1,55 @@
1
+ <nav class="navbar user-info-navbar" role="navigation"><!-- User Info, Notifications and Menu Bar -->
2
+
3
+ <!-- Left links for user info navbar -->
4
+ <ul class="user-info-menu left-links list-inline list-unstyled">
5
+
6
+ <li class="hidden-sm hidden-xs">
7
+ <a href="#" data-toggle="sidebar">
8
+ <i class="fa-bars"></i>
9
+ </a>
10
+ </li>
11
+
12
+ </ul>
13
+
14
+ <!-- Right links for user info navbar -->
15
+ <ul class="user-info-menu right-links list-inline list-unstyled">
16
+ <li class="dropdown user-profile">
17
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">
18
+
19
+ <%#= display_image(@current_user, "profile_picture.image.small.url", width: "32", height: "auto", class: "img-circle img-inline userpic-32", alt: @current_user.display_name) %>
20
+
21
+ <span>
22
+ <%#= @current_user.display_name %>
23
+ <i class="fa-angle-down"></i>
24
+ </span>
25
+
26
+ </a>
27
+
28
+ <ul class="dropdown-menu user-profile-menu list-unstyled">
29
+ <li>
30
+ <a href="#settings">
31
+ <i class="fa-wrench"></i>
32
+ Settings
33
+ </a>
34
+ </li>
35
+ <li>
36
+ <a href="#profile">
37
+ <i class="fa-user"></i>
38
+ Profile
39
+ </a>
40
+ </li>
41
+ <li>
42
+ <a href="#help">
43
+ <i class="fa-info"></i>
44
+ Help
45
+ </a>
46
+ </li>
47
+ <li class="last">
48
+ <%#= link_to raw("<i class='fa-lock'></i>Sign Out"), usman.sign_out_path, method: :delete %>
49
+ </li>
50
+ </ul>
51
+ </li>
52
+
53
+ </ul>
54
+
55
+ </nav>
@@ -0,0 +1,90 @@
1
+ <%
2
+ pattana_items = {
3
+ countries: {
4
+ text: "Manage Countries",
5
+ icon_class: "fa-flag-checkered",
6
+ url: pattana.countries_url,
7
+ has_permission: true
8
+ },
9
+ regions: {
10
+ text: "Manage Regions",
11
+ icon_class: "fa-globe",
12
+ url: pattana.regions_url,
13
+ has_permission: true
14
+ },
15
+ cities: {
16
+ text: "Manage Cities",
17
+ icon_class: "fa-map-marker",
18
+ url: pattana.cities_url,
19
+ has_permission: true
20
+ }
21
+ }
22
+ %>
23
+
24
+ <div class="sidebar-menu toggle-others collapsed">
25
+
26
+ <div class="sidebar-menu-inner">
27
+
28
+ <header class="logo-env">
29
+ <!-- logo -->
30
+ <div class="logo">
31
+ <a href="/" class="logo-expanded">
32
+ <%= image_tag("logo-white.png", width: "180") %>
33
+ </a>
34
+ <a href="/" class="logo-collapsed">
35
+ <%= image_tag("logo-small.png", width: "40") %>
36
+ </a>
37
+ </div>
38
+
39
+ <!-- This will toggle the mobile menu and will be visible only on mobile devices -->
40
+ <div class="mobile-menu-toggle visible-xs">
41
+ <!-- <a href="#" data-toggle="notifications-menu">
42
+ <i class="fa-bell-o"></i><span class="badge badge-success">7</span>
43
+ </a> -->
44
+ <a href="#" data-toggle="user-info-menu">
45
+ </a>
46
+ <a href="#" data-toggle="mobile-menu"><i class="fa-bars"></i></a>
47
+ </div>
48
+ </header>
49
+
50
+ <!-- add class "multiple-expanded" to allow multiple submenus to open -->
51
+ <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
52
+ <ul id="main-menu" class="main-menu multiple-expanded auto-inherit-active-class">
53
+ <!-- Admin Dashboard -->
54
+ <li class="<%= nav_active?('profile/dashboard') ? 'active' : '' %>">
55
+ <%= link_to raw("<i class=\"fa-desktop\"></i> <span class='title'>Dashboard</span>"), breadcrumb_home_path %>
56
+ </li>
57
+
58
+ <li class="">
59
+ <a href="#">
60
+ <i class="fa-globe"></i>
61
+ <span class="title">Manage Location</span>
62
+ </a>
63
+ <ul>
64
+ <% pattana_items.each do |key, values| %>
65
+ <% next unless values[:has_permission] %>
66
+ <li class="">
67
+ <%= link_to raw("<i class=\"#{values[:icon_class]}\"></i> <span class='title'>#{values[:text]}</span>"), values[:url] %>
68
+ </li>
69
+ <% end %>
70
+ </ul>
71
+ </li>
72
+
73
+ <!-- API Documentation -->
74
+ <li class="<%= nav_include?('docs/pattana') ? 'active' : '' %>">
75
+ <a href="#"><i class="fa-file-code-o"></i><span class="title">API Documentation</span></a>
76
+ <ul>
77
+ <li class="">
78
+ <a href="/docs/api/v1/countries">
79
+ <i class="fa-file-code-o"></i>
80
+ <span class="title">Location APIs</span>
81
+ </a>
82
+ </li>
83
+ </ul>
84
+ </li>
85
+
86
+ </ul>
87
+
88
+ </div>
89
+
90
+ </div>
@@ -0,0 +1,35 @@
1
+ <%
2
+ pattana_items = {
3
+ countries: {
4
+ text: "Countries",
5
+ icon_class: "fa-flag-checkered",
6
+ url: pattana.countries_url,
7
+ has_permission: true
8
+ },
9
+ regions: {
10
+ text: "Regions",
11
+ icon_class: "fa-globe",
12
+ url: pattana.regions_url,
13
+ has_permission: true
14
+ },
15
+ cities: {
16
+ text: "Cities",
17
+ icon_class: "fa-map-marker",
18
+ url: pattana.cities_url,
19
+ has_permission: true
20
+ },
21
+
22
+ }
23
+ %>
24
+
25
+ <% if (pattana_items.map{|x, y| y[:has_permission] }).compact.uniq.any? %>
26
+
27
+ <h3 class="text-gray mt-50 mb-10">
28
+ Manage Locations <br>
29
+ <small class="text-muted">Configure Countries, Regions, Cities & Locality</small>
30
+ </h3>
31
+ <hr class="mb-30" style="border-top:1px solid #ddd;">
32
+
33
+ <%= render partial: "/layouts/dashboard/bootstrap4/items", locals: { items: pattana_items } %>
34
+
35
+ <% end %>
@@ -0,0 +1,35 @@
1
+ <%
2
+ pattana_items = {
3
+ countries: {
4
+ text: "Countries",
5
+ icon_class: "fa-flag-checkered",
6
+ url: pattana.countries_url,
7
+ has_permission: true
8
+ },
9
+ regions: {
10
+ text: "Regions",
11
+ icon_class: "fa-globe",
12
+ url: pattana.regions_url,
13
+ has_permission: true
14
+ },
15
+ cities: {
16
+ text: "Cities",
17
+ icon_class: "fa-map-marker",
18
+ url: pattana.cities_url,
19
+ has_permission: true
20
+ },
21
+
22
+ }
23
+ %>
24
+
25
+ <% if (pattana_items.map{|x, y| y[:has_permission] }).compact.uniq.any? %>
26
+
27
+ <h3 class="text-gray mt-50 mb-10">
28
+ Manage Locations <br>
29
+ <small class="text-muted">Configure Countries, Regions, Cities & Locality</small>
30
+ </h3>
31
+ <hr class="mb-30" style="border-top:1px solid #ddd;">
32
+
33
+ <%= render partial: "/layouts/dashboard/materialize/items", locals: { items: pattana_items } %>
34
+
35
+ <% end %>
@@ -0,0 +1,11 @@
1
+ <%= render partial: "index" %>
2
+
3
+ <div style="border-top:1px solid #FFF;margin-top:50px;margin-bottom:70px;"></div>
4
+
5
+ <div class="dx-warning">
6
+ <div>
7
+ <h2>Pattana - API Documentation</h2>
8
+ <p>All APIs are documented with all cases and examples.</p>
9
+ <a class="btn btn-success" href="/docs/api/v1/register" target="_blank">Go to the API Documentation</a>
10
+ </div>
11
+ </div>
@@ -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 %>
@@ -0,0 +1,11 @@
1
+ <%= render partial: "index" %>
2
+
3
+ <div style="border-top:1px solid #FFF;margin-top:50px;margin-bottom:70px;"></div>
4
+
5
+ <div class="dx-warning">
6
+ <div>
7
+ <h2>Pattana - API Documentation</h2>
8
+ <p>All APIs are documented with all cases and examples.</p>
9
+ <a class="btn btn-success" href="/docs/api/v1/register" target="_blank">Go to the API Documentation</a>
10
+ </div>
11
+ </div>
@@ -1,3 +1,3 @@
1
1
  module Pattana
2
- VERSION = '0.2.5.pre.materialize'
2
+ VERSION = '0.2.6.pre.materialize'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pattana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5.pre.materialize
4
+ version: 0.2.6.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,14 +104,14 @@ 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: bcrypt
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -385,6 +385,10 @@ files:
385
385
  - app/serializers/flag_image_serializer.rb
386
386
  - app/serializers/region_preview_serializer.rb
387
387
  - app/uploaders/flag_image_uploader.rb
388
+ - app/views/layouts/kuppayam/materialize/_footer.html.erb
389
+ - app/views/layouts/kuppayam/materialize/_header.html.erb
390
+ - app/views/layouts/kuppayam/materialize/_navbar.html.erb
391
+ - app/views/layouts/kuppayam/materialize/_sidebar.html.erb
388
392
  - app/views/layouts/kuppayam/xenon/_footer.html.erb
389
393
  - app/views/layouts/kuppayam/xenon/_header.html.erb
390
394
  - app/views/layouts/kuppayam/xenon/_navbar.html.erb
@@ -428,8 +432,12 @@ files:
428
432
  - app/views/pattana/country_regions/_form.html.erb
429
433
  - app/views/pattana/country_regions/_index.html.erb
430
434
  - app/views/pattana/country_regions/_row.html.erb
431
- - app/views/pattana/dashboard/_index.html.erb
432
- - app/views/pattana/dashboard/index.html.erb
435
+ - app/views/pattana/dashboard/bootstrap4/_index.html.erb
436
+ - app/views/pattana/dashboard/bootstrap4/index.html.erb
437
+ - app/views/pattana/dashboard/materialize/_index.html.erb
438
+ - app/views/pattana/dashboard/materialize/index.html.erb
439
+ - app/views/pattana/dashboard/xenon/_index.html.erb
440
+ - app/views/pattana/dashboard/xenon/index.html.erb
433
441
  - app/views/pattana/region_cities/_action_buttons.html.erb
434
442
  - app/views/pattana/region_cities/_index.html.erb
435
443
  - app/views/pattana/region_cities/_row.html.erb