Sha256: 084d0442962fcaa18fd9bc9e4261bbad052a90757439b7a70659f6e8ba2d82e0

Contents?: true

Size: 334 Bytes

Versions: 9

Compression:

Stored size: 334 Bytes

Contents

- current_incumbency = data.seat_incumbencies.sort{ |inc_a, inc_b| inc_b.start_date <=> inc_a.start_date }.first
- current_incumbency = current_incumbency.current? ? "current" : "former"

= render partial: "pugin/people/list/member/#{current_incumbency}/#{current_incumbency}_member", locals: { data: local_assigns.fetch(:data, []) }

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pugin-0.8.0 app/views/pugin/people/list/member/_member.html.haml
pugin-0.7.1 app/views/pugin/people/list/member/_member.html.haml
pugin-0.7.0 app/views/pugin/people/list/member/_member.html.haml
pugin-0.6.4 app/views/pugin/people/list/member/_member.html.haml
pugin-0.6.3 app/views/pugin/people/list/member/_member.html.haml
pugin-0.6.2 app/views/pugin/people/list/member/_member.html.haml
pugin-0.6.1 app/views/pugin/people/list/member/_member.html.haml
pugin-0.6.0 app/views/pugin/people/list/member/_member.html.haml
pugin-0.5.5.pre app/views/pugin/people/list/member/_member.html.haml