ecm_news2 5.0.1 → 5.1.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: 25699f35b73281b88213a9e2174751b24afcc27d
4
- data.tar.gz: 31e2f9fffa164ba47513bfd87548d0ecf7799b5c
3
+ metadata.gz: d4a809de0c9cea31e1673e342d6bb24f5ba9841e
4
+ data.tar.gz: af8ac5e0402bca6ba6686aa025fae53f465317bf
5
5
  SHA512:
6
- metadata.gz: 77157a941fca025596c0e1973dd33f3672e4fc44aae92a3ee158a0217f597b4d3dacc098fed4b0664d9bb4c1762d58e39c9fdc5b34a44713413a788bffcde233
7
- data.tar.gz: dde510ff8cc4f35e1ea9cc0cda797d5bef775fc6ed2d134825de181c1f394161463e7942de679317084a3238875bb06ef9d5772659229c71399c975fff30d71c
6
+ metadata.gz: 0ff980868dd49381df64e4b7e497796dc18984fe33afa0fa6419d8d8184e24b1b61e921162a01805ba9a49a9cd175fb8a714cbdf4212bad412c5a03bcb509d8a
7
+ data.tar.gz: 1072c3e13ad31047b87bd30e8a9d74ff402cfd72d6f9c467cedce7b83c2a6c37c3cbf4fdd31e8677e7cf7063dec8e28c1aa9f492d3d930c65ae20057c0ad4cfa
@@ -1,2 +1,2 @@
1
- <%= link_to(t('ecm.news.item.actions.all'), main_app.ecm_news_items_path, :class => 'btn btn-default list-link') %>
1
+ <%= link_to(t('ecm.news.item.actions.all'), ecm_news.items_path, :class => 'btn btn-default list-link') %>
2
2
 
@@ -1,5 +1,6 @@
1
1
  = bootstrap_responsive_media_object(image_options: { src: item.preview_picture_image_url(:media_object) }) do
2
2
  %h4= item.title
3
- = mu(item, :body)
3
+ .news-body.truncate.lines-3.bottom-margin-1
4
+ = mu(item, :body)
4
5
  = bootstrap_button(to: ecm_news.url_for(item)) do
5
6
  = t('.more')
@@ -1,12 +1,17 @@
1
1
  - content_for :meta_description, t('.title')
2
2
  - content_for :title, t('.title')
3
+ .row
4
+ .col-lg-12
5
+ %h1= t('.title')
3
6
 
4
- %h1= t('.title')
7
+ .col-lg-12
8
+ - @items.each_with_index do |item, index|
9
+ = render partial: 'item_in_list', locals: { item: item, index: (index + 1) }
5
10
 
6
- - @items.each_with_index do |item, index|
7
- = render partial: 'item_in_list', locals: { item: item, index: (index + 1) }
11
+ .col-lg-12
12
+ = paginate @items, theme: 'twitter-bootstrap-3'
8
13
 
9
- = paginate @items, theme: 'twitter-bootstrap-3'
10
-
11
- = bootstrap_button(to: main_app.root_path, context: :primary) do
12
- = t('.back')
14
+ .col-lg-12
15
+ .well.page-actions
16
+ = bootstrap_button(to: main_app.root_path, context: 'secondary btn-default') do
17
+ = t('.back')
@@ -1,4 +1,24 @@
1
1
  de:
2
+ activerecord:
3
+ models:
4
+ ecm/news/item:
5
+ one: Newseintrag
6
+ other: Newseinträge
7
+ attributes:
8
+ ecm/news/item:
9
+ id: ID
10
+ body: Inhalt
11
+ created_at: Erstellt am
12
+ link_to_more: Vorschau verlinken
13
+ locale: Sprache
14
+ markup_language: Markup Sprache
15
+ pictures: Bilder
16
+ preview_picture: Vorschau
17
+ published: Veröffentlicht?
18
+ published_at: Veröffentlicht am
19
+ slug: Freundliche ID
20
+ title: Titel
21
+ updated_at: Aktualisiert am
2
22
  ecm:
3
23
  news:
4
24
  item:
@@ -31,4 +51,3 @@ de:
31
51
  previous: "&lsaquo; Zurück"
32
52
  next: "Vor &rsaquo;"
33
53
  truncate: "..."
34
-
@@ -1,4 +1,24 @@
1
1
  en:
2
+ activerecord:
3
+ models:
4
+ ecm/news/item:
5
+ one: news item
6
+ other: news items
7
+ attributes:
8
+ ecm/news/item:
9
+ id: ID
10
+ body: body
11
+ created_at: created at
12
+ link_to_more: link to more?
13
+ locale: language
14
+ markup_language: markup language
15
+ pictures: pictures
16
+ preview_picture: preview
17
+ published: published?
18
+ published_at: published at
19
+ slug: friendly id
20
+ title: title
21
+ updated_at: updated at
2
22
  ecm:
3
23
  news:
4
24
  item:
@@ -31,4 +51,3 @@ en:
31
51
  previous: "&lsaquo; Prev"
32
52
  next: "Next &rsaquo;"
33
53
  truncate: "..."
34
-
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '5.0.1'
3
+ VERSION = '5.1.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_news2
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.1.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-07-16 00:00:00.000000000 Z
11
+ date: 2018-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -326,10 +326,8 @@ files:
326
326
  - app/views/ecm/news/items/_item_in_list.haml
327
327
  - app/views/ecm/news/items/index.haml
328
328
  - app/views/ecm/news/items/show.haml
329
- - config/locales/ecm.news.de.yml
330
- - config/locales/ecm.news.en.yml
331
- - config/locales/ecm.news.item.de.yml
332
- - config/locales/ecm.news.item.en.yml
329
+ - config/locales/de.yml
330
+ - config/locales/en.yml
333
331
  - config/routes.rb
334
332
  - db/migrate/001_create_ecm_news_items.rb
335
333
  - lib/ecm/news/configuration.rb
@@ -1,23 +0,0 @@
1
- de:
2
- activerecord:
3
- models:
4
- ecm/news/item:
5
- one: Newseintrag
6
- other: Newseinträge
7
- attributes:
8
- ecm/news/item:
9
- body: Inhalt
10
- created_at: Erstellt am
11
- link_to_more: Vorschau verlinken
12
- locale: Sprache
13
- markup_language: Markup Sprache
14
- pictures: Bilder
15
- preview_picture: Vorschau
16
- published: Veröffentlicht?
17
- published_at: Veröffentlicht am
18
- slug: Freundliche ID
19
- title: Titel
20
- updated_at: Aktualisiert am
21
- routes:
22
- items: 'eintraege'
23
-
@@ -1,23 +0,0 @@
1
- en:
2
- activerecord:
3
- models:
4
- ecm/news/item:
5
- one: news item
6
- other: news items
7
- attributes:
8
- ecm/news/item:
9
- body: body
10
- created_at: created at
11
- link_to_more: link to more?
12
- locale: language
13
- markup_language: markup language
14
- pictures: pictures
15
- preview_picture: preview
16
- published: published?
17
- published_at: published at
18
- slug: friendly id
19
- title: title
20
- updated_at: updated at
21
- routes:
22
- ecm_news_items: items
23
-