phcmembers 6.7.1 → 6.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f11370f653f858cb8cd20fb232702921944810a
4
- data.tar.gz: a0d78c85def1b3f514bd79d71f407d984dc0d471
3
+ metadata.gz: f551a85b3451e69282cc8c707b4bf7babf5d17d4
4
+ data.tar.gz: abff67ffed703f2fe4749e250535b06bbb634c92
5
5
  SHA512:
6
- metadata.gz: 4c15acdc8664fc9aa84a5cedc2ac5161b6446106fc007d87f6707c8a550ca4f48503142114053be3876ac879fbd7f9cbdf9c3bd67f8a83957a916d3a99777208
7
- data.tar.gz: 6acd3ad0ca096ed400b504ad497b594ecd906f5bdcba0e9e85b046be4fc82f5e034e3ef2365d513d1632aa03623bf72035c7f3ef0a2a97727f4985dfbab7a67f
6
+ metadata.gz: ce4debd58e8741ce646c9da88a2dbf11d43ac321b5ea9075769b8d079b3d63fd8a789e9197b9982bf8c0e54b12bb5eb9573df90380e6988bf3e4699ee12363ff
7
+ data.tar.gz: 02ddb1832141a866bf7c4611e20e90677436eacc0bfa6cc025c960f6257db5c99f10d66e3c75a1a6af1be5fd50c01594d8711bb0a206859952d1a23d597ca904
data/MIT-LICENSE CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
17
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
19
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -15,7 +15,7 @@ PHCMembers(6) rails engine to manage membership information and directory listin
15
15
 
16
16
  #### Step 1 - Add PHCMembers to your gemfile and run command
17
17
 
18
- gem 'phcmembers', '~> 6.5'
18
+ gem 'phcmembers', '~> 6.7'
19
19
  bundle install
20
20
 
21
21
  #### Step 2 - Add PHCMembers Database Tables
@@ -42,4 +42,4 @@ Generate views for customization and app integration.
42
42
 
43
43
  #### Additional Information
44
44
 
45
- - [Past Security Patch Notes](https://github.com/PHCNetworks/phc-members/wiki/Critical-Security-Updates)
45
+ - [Past Security Patch Notes](https://github.com/PHCNetworks/phc-members/wiki/Critical-Security-Updates)
@@ -15,4 +15,4 @@ module Phcmembers
15
15
  end
16
16
 
17
17
  end
18
- end
18
+ end
@@ -1,17 +1,17 @@
1
1
  module Phcmembers
2
2
  class ApplicationController < ActionController::Base
3
-
3
+
4
4
  # Security Filters
5
5
  protect_from_forgery with: :exception
6
-
6
+
7
7
  # Grab Member Information
8
8
  def get_member_profile_info
9
9
  @members_profile_info = Member::Profile.find(params[:profile_id])
10
10
  end
11
-
11
+
12
12
  # Load Helpers
13
13
  helper Phctitleseo::Engine.helpers
14
14
  helper Phcnotifi::Engine.helpers
15
-
15
+
16
16
  end
17
- end
17
+ end
@@ -65,6 +65,4 @@ module Phcmembers
65
65
  end
66
66
 
67
67
  end
68
- end
69
-
70
-
68
+ end
@@ -72,4 +72,4 @@ module Phcmembers
72
72
  end
73
73
 
74
74
  end
75
- end
75
+ end
@@ -74,4 +74,4 @@ module Phcmembers
74
74
  end
75
75
 
76
76
  end
77
- end
77
+ end
@@ -65,4 +65,4 @@ module Phcmembers
65
65
  end
66
66
 
67
67
  end
68
- end
68
+ end
@@ -0,0 +1,17 @@
1
+ require_dependency "phcmembers/application_controller"
2
+
3
+ module Phcmembers
4
+ class Modules::DashboardsController < ApplicationController
5
+
6
+ # Security & Action Filters
7
+ before_action :membership_info
8
+
9
+ def index
10
+ @member_profile = Member::Profile.where(oganization_id: membership_info.org_id)
11
+ @member_listing = Member::Listing.where(oganization_id: membership_info.org_id)
12
+ @member_address = Member::Address.where(oganization_id: membership_info.org_id)
13
+ @directory_category = Directory::Category.where(oganization_id: membership_info.org_id)
14
+ end
15
+
16
+ end
17
+ end
@@ -11,4 +11,4 @@ module Phcmembers
11
11
  end
12
12
 
13
13
  end
14
- end
14
+ end
@@ -1,5 +1,4 @@
1
1
  module Phcmembers
2
2
  class ApplicationJob < ActiveJob::Base
3
-
4
3
  end
5
- end
4
+ end
@@ -5,4 +5,4 @@ module Phcmembers
5
5
  layout 'mailer'
6
6
  end
7
7
 
8
- end
8
+ end
@@ -1,7 +1,5 @@
1
1
  module Phcmembers
2
-
3
2
  class ApplicationRecord < ActiveRecord::Base
4
3
  self.abstract_class = true
5
4
  end
6
-
7
- end
5
+ end
@@ -1,9 +1,7 @@
1
1
  module Phcmembers
2
2
  module Connections
3
-
4
3
  def self.table_name_prefix
5
4
  'phcmembers_connections_'
6
5
  end
7
-
8
6
  end
9
- end
7
+ end
@@ -1,9 +1,7 @@
1
1
  module Phcmembers
2
2
  module Directory
3
-
4
3
  def self.table_name_prefix
5
4
  'phcmembers_directory_'
6
5
  end
7
-
8
6
  end
9
- end
7
+ end
@@ -8,4 +8,4 @@ module Phcmembers
8
8
  belongs_to :profile, class_name: 'Phcmembers::Member::Profile'
9
9
 
10
10
  end
11
- end
11
+ end
@@ -10,4 +10,4 @@ module Phcmembers
10
10
  has_many :categories, class_name: 'Phcmembers::Directory::Category', :through => :categorylistings
11
11
 
12
12
  end
13
- end
13
+ end
@@ -33,4 +33,4 @@ module Phcmembers
33
33
  format: { with: /\A(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}\z/, message: "Please Follow this Phone Number Format: xxx-xxx-xxxx" }
34
34
 
35
35
  end
36
- end
36
+ end
@@ -1,9 +1,7 @@
1
1
  module Phcmembers
2
2
  module Member
3
-
4
3
  def self.table_name_prefix
5
4
  'phcmembers_member_'
6
5
  end
7
-
8
6
  end
9
- end
7
+ end
@@ -1,4 +1,4 @@
1
1
  <div class="pull-right hidden-xs">
2
- <b>Version</b> 6.7.1 - 03-07-<%= Date.today.year %>
2
+ <b>Version</b> 6.7.2 - 03-08-<%= Date.today.year %>
3
3
  </div>
4
4
  <strong>&copy; 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
@@ -0,0 +1,68 @@
1
+ <div class="row border-bottom white-bg dashboard-header">
2
+
3
+ </div>
4
+ <div class="row">
5
+ <div class="col-lg-12">
6
+ <div class="wrapper wrapper-content">
7
+
8
+ <div class="row">
9
+ <div class="col-lg-3">
10
+ <div class="widget style1 navy-bg">
11
+ <div class="row">
12
+ <div class="col-xs-4">
13
+ <i class="fa fa-users fa-5x"></i>
14
+ </div>
15
+ <div class="col-xs-8 text-right">
16
+ <span> <%= "Member".pluralize(2) %> </span>
17
+ <h2 class="font-bold"><%= @member_profile.count(:all) %></h2>
18
+ </div>
19
+ </div>
20
+ </div>
21
+ </div>
22
+
23
+ <div class="col-lg-3">
24
+ <div class="widget style1 lazur-bg">
25
+ <div class="row">
26
+ <div class="col-xs-4">
27
+ <i class="fa fa-list fa-5x"></i>
28
+ </div>
29
+ <div class="col-xs-8 text-right">
30
+ <span> Member <%= "Listing".pluralize(2) %> </span>
31
+ <h2 class="font-bold"><%= @member_listing.count(:all) %></h2>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="col-lg-3">
38
+ <div class="widget style1 yellow-bg">
39
+ <div class="row">
40
+ <div class="col-xs-4">
41
+ <i class="fa fa-envelope fa-5x"></i>
42
+ </div>
43
+ <div class="col-xs-8 text-right">
44
+ <span> Member <%= "Address".pluralize(2) %> </span>
45
+ <h2 class="font-bold"><%= @member_address.count(:all) %></h2>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+
51
+ <div class="col-lg-3">
52
+ <div class="widget style1 red-bg">
53
+ <div class="row">
54
+ <div class="col-xs-4">
55
+ <i class="fa fa-sitemap fa-5x"></i>
56
+ </div>
57
+ <div class="col-xs-8 text-right">
58
+ <span> Directory <%= "Category".pluralize(2) %> </span>
59
+ <h2 class="font-bold"><%= @directory_category.count(:all) %></h2>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+
66
+ </div>
67
+ </div>
68
+ </div>
data/config/routes.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  Phcmembers::Engine.routes.draw do
2
2
 
3
3
  # Dashboard (Engine Root)
4
- get 'dashboard/mains/index', :path => "dashboard"
4
+ get 'modules/dashboards/index'
5
5
 
6
6
  # Application API
7
7
  namespace :api do
@@ -33,6 +33,4 @@ Phcmembers::Engine.routes.draw do
33
33
  resources :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting'
34
34
  end
35
35
 
36
- end
37
-
38
-
36
+ end
@@ -1,3 +1,3 @@
1
1
  module Phcmembers
2
- VERSION = "6.7.1"
2
+ VERSION = "6.7.2"
3
3
  end
data/lib/phcmembers.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  require "phcmembers/engine"
2
2
 
3
3
  module Phcmembers
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  # desc "Explaining what the task does"
2
2
  # task :phcmembers do
3
3
  # # Task goes here
4
- # end
4
+ # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmembers
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.1
4
+ version: 6.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -558,16 +558,15 @@ files:
558
558
  - app/assets/stylesheets/phcmembers/application.scss
559
559
  - app/controllers/phcmembers/api/directories_controller.rb
560
560
  - app/controllers/phcmembers/application_controller.rb
561
- - app/controllers/phcmembers/dashboard/mains_controller.rb
562
561
  - app/controllers/phcmembers/directory/categories_controller.rb
563
562
  - app/controllers/phcmembers/directory/categorylistings_controller.rb
564
563
  - app/controllers/phcmembers/member/addresses_controller.rb
565
564
  - app/controllers/phcmembers/member/listings_controller.rb
566
565
  - app/controllers/phcmembers/member/profiles_controller.rb
566
+ - app/controllers/phcmembers/modules/dashboards_controller.rb
567
567
  - app/helpers/phcmembers/application_helper.rb
568
568
  - app/jobs/phcmembers/application_job.rb
569
569
  - app/mailers/phcmembers/application_mailer.rb
570
- - app/models/phcmembers/api.rb
571
570
  - app/models/phcmembers/application_record.rb
572
571
  - app/models/phcmembers/connections.rb
573
572
  - app/models/phcmembers/directory.rb
@@ -617,6 +616,7 @@ files:
617
616
  - app/views/phcmembers/member/profiles/index.html.erb
618
617
  - app/views/phcmembers/member/profiles/new.html.erb
619
618
  - app/views/phcmembers/member/profiles/show.html.erb
619
+ - app/views/phcmembers/modules/dashboards/index.html.erb
620
620
  - config/routes.rb
621
621
  - db/migrate/20160707154842_create_versions.rb
622
622
  - db/migrate/20160724220339_create_phcmembers_member_profiles.rb
@@ -1,18 +0,0 @@
1
- require_dependency "phcmembers/application_controller"
2
-
3
- module Phcmembers
4
- class Dashboard::MainsController < ApplicationController
5
-
6
- # Dashboard Index
7
- def index
8
- @members_main = Phcmembers::Members::Main
9
- @members_business = Phcmembers::Members::Business
10
- @members_contact = Phcmembers::Members::Contact
11
- @directory_category = Phcmembers::Directory::Category
12
- @directory_catlists = Phcmembers::Directory::Listing
13
- end
14
-
15
- private
16
-
17
- end
18
- end
@@ -1,9 +0,0 @@
1
- module Phcmembers
2
- module Api
3
-
4
- def self.table_name_prefix
5
- 'phcmembers_api_'
6
- end
7
-
8
- end
9
- end