pugin 1.6.5 → 1.6.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9f565852633fa169d1c666b5dd8205be7dc0b4c
|
4
|
+
data.tar.gz: 0164d98d45b09f27805dbac1eebbd1f05c5214ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a174ec474f38e0ea358cb3920e9bf67d632d3ef5460af5039c936779399a969309e72a310ff9a1206b941b5eaf02bcdb0840e06ea0fb8b8de7d3a43c73c9801c
|
7
|
+
data.tar.gz: 10c540dca1664473ef60d8312a3a0e4b343bba24ce5b2934638b9f935fd13cd3707af2f8e963488b6c12a61aeb500bc92a22909938f3a1b199b2eba22249b49e
|
@@ -1,4 +1,4 @@
|
|
1
|
-
- person_type = people.
|
1
|
+
- person_type = people.current_mp? ? "member" : "lord"
|
2
2
|
|
3
3
|
%li
|
4
4
|
= render partial: "pugin/people/list/#{person_type}/#{person_type}", locals: { "#{person_type}": local_assigns.fetch(:people, []), as: person_type }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
- current_incumbency = lord.
|
1
|
+
- current_incumbency = lord.seat_incumbencies.sort{ |inc_a, inc_b| inc_b.start_date <=> inc_a.start_date }.first
|
2
2
|
- if Pugin::Feature::Bandiera.show_list_images?
|
3
3
|
%figure
|
4
4
|
%a{href: "/people/#{lord.graph_id}", tabindex: "-1"}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
.list--details
|
12
12
|
- if !instance_variable_get("@parliament").nil? # parliament lord
|
13
13
|
|
14
|
-
- elsif current_incumbency
|
14
|
+
- elsif current_incumbency&.current? # current lord
|
15
15
|
%h2
|
16
16
|
%a{href: "/people/#{lord.graph_id}"}= lord.display_name
|
17
17
|
- unless lord.statuses[:house_membership_status].empty? && !lord.statuses[:house_membership_status].include?('Current MP')
|
data/lib/pugin/version.rb
CHANGED