ecm_staff2 0.0.3 → 1.0.0

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
  SHA1:
3
- metadata.gz: f672dcf328e382e337a3bacc2914fec386698c58
4
- data.tar.gz: dbf7ff6f56bd442607c1dce88d4ac47d3d6beee6
3
+ metadata.gz: 9a41d9c23266ee78446b7dd0388659df2cb692f5
4
+ data.tar.gz: 070733f746e18c2b6ac5f67112114cbbf59a58ad
5
5
  SHA512:
6
- metadata.gz: 6d833e08627c225917ce7d5d6456f699576838dd2c6d627cecda5544668aeec20e84eff9912b4b5e2ebda1b7838df87feaaac334cc8167ded96d76b15d0681c3
7
- data.tar.gz: 82d9bd89a7bc20e00eaf262b37d9f6c6e5b797fca22b0c76bdf56129c55a5d98932b8ecb1083ec188f297b5b5780d688b24bdb00252451d0a290c48768792894
6
+ metadata.gz: 89c37d915844343eee9d34713698f798f6dbe3554f8855f70a2c31577b40db6a930405e7e3b0115f76fb654db76ae48bbfd9998c4c02f64d592447a0660a89f9
7
+ data.tar.gz: 43c04949941e667233d424be63e1d3f0417a7b8dfe0773160fa14ce430923eae8c4b925345d0c3de43a15d561f8f8ed8abbf20c226c2ea58240c0ab31e74a0cf
@@ -0,0 +1,8 @@
1
+ module Ecm
2
+ module StaffHelper
3
+ def render_people
4
+ @collection = Ecm::Staff::Person.all
5
+ render partial: 'ecm/staff/people/person_in_index', collection: @collection, as: :person, locals: { view: self }
6
+ end
7
+ end
8
+ end
@@ -1,12 +1,9 @@
1
- .media.person-preview.well{:id => dom_id(person)}
2
- .preview-picture.pull-left
3
- - if person.preview_picture.present?
4
- = image_tag(person.preview_picture_image_url(:medium_thumb))
5
- - else
6
- .preview-picture-placeholder.well
7
- ☺
8
- .media-heading
9
- .person-description
10
- = person.description.to_html.html_safe if person.description.present?
11
- .person-positions
12
- = render 'person_positions_table', person: person if person.person_positions.present?
1
+ .row
2
+ .col-lg-12
3
+ .news-item.show
4
+ %h1= person.fullname_with_prefix
5
+
6
+ - if person.preview_picture.present?
7
+ %img.img-responsive.bottom-margin-2{:alt => person.preview_picture.description, :src => person.preview_picture.image.url, :title => person.preview_picture.description}/
8
+
9
+ .item-body= mu(person, :description)
@@ -1,13 +1,6 @@
1
- .media.person-preview.well{ id: dom_id(person) }
2
- .preview-picture.pull-left
3
- - if person.preview_picture.present?
4
- = link_to person do
5
- = image_tag(person.preview_picture_image_url(:medium_thumb))
6
- - else
7
- .preview-picture-placeholder.well= link_to "☺".html_safe, person
8
- .media-heading
9
- %h4= link_to person.fullname_with_prefix, person
10
- .person-description
11
- = person.description.to_html.html_safe if person.description.present?
12
- .person-positions
13
- = render 'person_positions_table', person: person if person.person_positions.present?
1
+ = bootstrap_responsive_media_object(image_options: { src: person.preview_picture_image_url(:medium_thumb)}) do
2
+ %h4= person.fullname_with_prefix
3
+ .truncate.lines-5
4
+ = person.description.to_html.html_safe
5
+ = bootstrap_button(to: ecm_staff.url_for(person), context: :primary) do
6
+ - t('.more')
@@ -1,5 +1,11 @@
1
- %h1= @resource
1
+ - content_for :meta_description, @resource.fullname_with_prefix
2
+ - content_for :title, @resource.fullname_with_prefix
3
+
2
4
  = render @resource
3
- = link_to :back, class: "btn btn-primary link-back" do
4
- %i.icon-arrow-left
5
- = t('.back')
5
+
6
+ .row
7
+ .col-lg-12
8
+ .page-actions
9
+ = bootstrap_button_group do
10
+ = bootstrap_button(to: :back, context: :default) do
11
+ = t('.back')
@@ -52,6 +52,8 @@ de:
52
52
  ecm:
53
53
  staff:
54
54
  people:
55
+ person_in_index:
56
+ more: 'Mehr'
55
57
  show:
56
58
  back: 'Zurück'
57
59
  routes:
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Staff
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '1.0.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_staff2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-01 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -95,6 +95,7 @@ files:
95
95
  - app/controllers/ecm/staff/application_controller.rb
96
96
  - app/controllers/ecm/staff/people_controller.rb
97
97
  - app/helpers/ecm/staff/application_helper.rb
98
+ - app/helpers/ecm/staff_helper.rb
98
99
  - app/models/ecm/staff/base.rb
99
100
  - app/models/ecm/staff/business_unit.rb
100
101
  - app/models/ecm/staff/organisation.rb