refinerycms-news 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +1 -0
- data/.travis.yml +23 -10
- data/Gemfile +23 -54
- data/Rakefile +2 -0
- data/app/controllers/refinery/news/items_controller.rb +8 -11
- data/app/helpers/refinery/news/items_helper.rb +14 -17
- data/app/models/refinery/news/item.rb +9 -4
- data/app/views/refinery/news/admin/items/_form.html.erb +9 -16
- data/app/views/refinery/news/admin/items/_item.html.erb +6 -3
- data/app/views/refinery/news/admin/items/edit.html.erb +1 -1
- data/app/views/refinery/news/admin/items/index.html.erb +1 -1
- data/app/views/refinery/news/admin/items/new.html.erb +1 -1
- data/app/views/refinery/news/items/archive.html.erb +6 -6
- data/app/views/refinery/news/items/index.html.erb +3 -3
- data/app/views/refinery/news/items/show.html.erb +3 -3
- data/app/views/refinery/news/items/widgets/_news_archive.html.erb +1 -5
- data/app/views/refinery/news/shared/_body_content_right.html.erb +1 -1
- data/config/locales/bg.yml +18 -18
- data/config/locales/cs.yml +19 -19
- data/config/locales/da.yml +47 -0
- data/config/locales/de.yml +18 -18
- data/config/locales/en.yml +3 -2
- data/config/locales/es-MX.yml +18 -18
- data/config/locales/es.yml +19 -19
- data/config/locales/fr.yml +31 -19
- data/config/locales/it.yml +18 -18
- data/config/locales/ja.yml +48 -0
- data/config/locales/lv.yml +20 -18
- data/config/locales/nb.yml +18 -18
- data/config/locales/nl.yml +30 -18
- data/config/locales/pl.yml +29 -18
- data/config/locales/ru.yml +18 -18
- data/config/locales/sk.yml +31 -19
- data/config/locales/sl.yml +0 -2
- data/config/locales/zh-CN.yml +18 -18
- data/config/locales/zh-TW.yml +29 -29
- data/config/routes.rb +2 -2
- data/readme.md +51 -2
- data/refinerycms-news.gemspec +4 -5
- data/spec/controllers/refinery/news/items_controller_spec.rb +67 -0
- data/spec/{requests → features}/manage_news_items_spec.rb +6 -6
- data/spec/{requests → features}/news_archive.rb +0 -0
- data/spec/{requests → features}/visit_news_items_spec.rb +5 -7
- data/spec/helpers/refinery/news/items_helper_spec.rb +34 -0
- data/spec/models/refinery/news/item_spec.rb +38 -14
- data/spec/spec_helper.rb +20 -46
- metadata +26 -30
- data/Guardfile +0 -20
- data/app/views/refinery/news/admin/items/_locale_picker.html.erb +0 -11
- data/config/locales/jp.yml +0 -36
data/config/locales/bg.yml
CHANGED
@@ -6,26 +6,26 @@ bg:
|
|
6
6
|
description: Осигурява опростена секция за новини
|
7
7
|
news:
|
8
8
|
admin:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Преглед на тази новина <br/><em>(ще се отвори се в нов прозорец)</em>"
|
12
|
+
edit: "Редакция на тази новина"
|
13
|
+
delete: "Премахване на тази новина завинаги"
|
14
|
+
published: Публикувано на
|
15
|
+
index:
|
16
|
+
create: "Добавяне на новина"
|
17
|
+
item: Новини
|
18
|
+
no_items_yet: 'Все още няма новини. Натиснете "Добавяне на новина", за да въведете новина.'
|
19
|
+
items:
|
20
|
+
show:
|
21
|
+
back_to_index: "Обратно към всички новини"
|
13
22
|
published: Публикувано на
|
23
|
+
recent_posts:
|
24
|
+
recent_posts: Последни публикации
|
14
25
|
index:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
no_items: "За съжаление нищо не бе намерено."
|
19
|
-
no_items_yet: 'Все още няма новини. Натиснете "Добавяне на новина", за да въведете новина.'
|
20
|
-
show:
|
21
|
-
back_to_index: "Обратно към всички новини"
|
22
|
-
published: Публикувано на
|
23
|
-
recent_posts:
|
24
|
-
recent_posts: Последни публикации
|
25
|
-
index:
|
26
|
-
published: Публикувано на
|
27
|
-
read_more: Цялата новина
|
28
|
-
no_items_yet: Все още няма публикувани новини.
|
26
|
+
published: Публикувано на
|
27
|
+
read_more: Цялата новина
|
28
|
+
no_items_yet: Все още няма публикувани новини.
|
29
29
|
activerecord:
|
30
30
|
attributes:
|
31
31
|
'refinery/news/item':
|
data/config/locales/cs.yml
CHANGED
@@ -6,26 +6,26 @@ cs:
|
|
6
6
|
description: Poskytuje jednoduchou správu novinek
|
7
7
|
news:
|
8
8
|
admin:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Zobrazit novinku v novém okně"
|
12
|
+
edit: "Editovať novinku"
|
13
|
+
delete: "Smazat novinku"
|
14
|
+
published: Zveřejněna
|
15
|
+
index:
|
16
|
+
create: "Přidat novinku"
|
17
|
+
item: Novinka
|
18
|
+
no_items_yet: 'Momentálně nejsou žádné novinky. Klikni na "Přidat novinku" pro vytvoření první.'
|
19
|
+
items:
|
20
|
+
show:
|
21
|
+
back_to_index: "Návrat na seznam novinek"
|
22
|
+
published: Zveřejněné
|
23
|
+
recent_posts:
|
24
|
+
recent_posts: Poslední příspěvky
|
14
25
|
index:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
no_items: "Litujeme, žádné výsledky nenalezeny."
|
19
|
-
no_items_yet: 'Momentálně nejsou žádné novinky. Klikni na "Přidat novinku" pro vytvoření první.'
|
20
|
-
show:
|
21
|
-
back_to_index: "Návrat na seznam novinek"
|
22
|
-
published: Zveřejněné
|
23
|
-
recent_posts:
|
24
|
-
recent_posts: Poslední příspěvky
|
25
|
-
index:
|
26
|
-
published: Zveřejněné
|
27
|
-
read_more: Číst dále
|
28
|
-
no_items_yet: Neexistují žádné záznamy novinek.
|
26
|
+
published: Zveřejněné
|
27
|
+
read_more: Číst dále
|
28
|
+
no_items_yet: Neexistují žádné záznamy novinek.
|
29
29
|
activerecord:
|
30
30
|
attributes:
|
31
31
|
'refinery/news/item':
|
@@ -0,0 +1,47 @@
|
|
1
|
+
da:
|
2
|
+
refinery:
|
3
|
+
plugins:
|
4
|
+
refinerycms_news:
|
5
|
+
title: Nyheder
|
6
|
+
description: Giver en simpel nyhedssektion
|
7
|
+
news:
|
8
|
+
admin:
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Vis nyheden live <br /><em>(åbner i et nyt vindue)</em>"
|
12
|
+
edit: "Redigér nyheden"
|
13
|
+
delete: "Slet nyheden permanent"
|
14
|
+
published: Offentliggjort
|
15
|
+
index:
|
16
|
+
create: "Tilføj nyhed"
|
17
|
+
item: Nyheder
|
18
|
+
no_items_yet: 'Der er ingen nyheder endnu. Klik "Tilføj nyhed" for at oprette den første.'
|
19
|
+
shared:
|
20
|
+
items:
|
21
|
+
created_at: 'Oprettet %{when}'
|
22
|
+
archives: Arkiver
|
23
|
+
items:
|
24
|
+
show:
|
25
|
+
back_to_index: "Tilbage til nyheder"
|
26
|
+
published: Offentliggjort
|
27
|
+
source: Kilde
|
28
|
+
recent_posts:
|
29
|
+
recent_posts: "Seneste indlæg"
|
30
|
+
index:
|
31
|
+
published: Offentliggjort
|
32
|
+
read_more: "Læs mere"
|
33
|
+
no_items_yet: "Der er ingen nyheder endnu."
|
34
|
+
source: Kilde
|
35
|
+
archive:
|
36
|
+
news_item_archive_for: 'Arkiv for %{date}'
|
37
|
+
no_news_articles_posted: 'Der er ingen nyhedsartikler oprettet for %{date}.'
|
38
|
+
activerecord:
|
39
|
+
attributes:
|
40
|
+
'refinery/news/item':
|
41
|
+
title: Titel
|
42
|
+
body: Krop
|
43
|
+
publish_date: Offentliggørelsesdato
|
44
|
+
expiration_date: Udløbsdato
|
45
|
+
source: Kilde
|
46
|
+
models:
|
47
|
+
'refinery/news/item': Nyhed
|
data/config/locales/de.yml
CHANGED
@@ -6,26 +6,26 @@ de:
|
|
6
6
|
description: Bietet einen einfachen Newsbereich an
|
7
7
|
news:
|
8
8
|
admin:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Diesen News-Eintrag live anschauen <br/><em>(Öffnet sich in eine neuen Fenster)</em>"
|
12
|
+
edit: "Diesen News-Eintrag editieren"
|
13
|
+
delete: "Diesen News-Eintrag endgültig löschen"
|
14
|
+
published: Veröffentlicht
|
15
|
+
index:
|
16
|
+
create: "News-Eintrag hinzufügen"
|
17
|
+
item: News
|
18
|
+
no_items_yet: 'Es sind keine News-Einträge vorhanden. Klick auf "News-Eintrag hinzufügen" um den ersten Eintrag zu machen.'
|
19
|
+
items:
|
20
|
+
show:
|
21
|
+
back_to_index: "Zurück zur Übersicht"
|
13
22
|
published: Veröffentlicht
|
23
|
+
recent_posts:
|
24
|
+
recent_posts: Aktuelle Einträge
|
14
25
|
index:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
no_items: "Entschuldigung, es wurde nichts gefunden."
|
19
|
-
no_items_yet: 'Es sind keine News-Einträge vorhanden. Klick auf "News-Eintrag hinzufügen" um den ersten Eintrag zu machen.'
|
20
|
-
show:
|
21
|
-
back_to_index: "Zurück zur Übersicht"
|
22
|
-
published: Veröffentlicht
|
23
|
-
recent_posts:
|
24
|
-
recent_posts: Aktuelle Einträge
|
25
|
-
index:
|
26
|
-
published: Veröffentlicht
|
27
|
-
read_more: Weiterlesen
|
28
|
-
no_items_yet: Zur Zeit gibt es keine News.
|
26
|
+
published: Veröffentlicht
|
27
|
+
read_more: Weiterlesen
|
28
|
+
no_items_yet: Zur Zeit gibt es keine News.
|
29
29
|
activerecord:
|
30
30
|
attributes:
|
31
31
|
'refinery/news/item':
|
data/config/locales/en.yml
CHANGED
@@ -17,7 +17,8 @@ en:
|
|
17
17
|
item: News
|
18
18
|
no_items_yet: 'There are no news items yet. Click "Add News Item" to add your first news item.'
|
19
19
|
shared:
|
20
|
-
items:
|
20
|
+
items:
|
21
|
+
read_more: Read more
|
21
22
|
created_at: 'Created at %{when}'
|
22
23
|
archives: Archives
|
23
24
|
items:
|
@@ -34,7 +35,7 @@ en:
|
|
34
35
|
source: Source
|
35
36
|
archive:
|
36
37
|
news_item_archive_for: 'Archive for %{date}'
|
37
|
-
|
38
|
+
no_news_item_articles_posted: 'There are no news articles posted for %{date}. Stay tuned.'
|
38
39
|
activerecord:
|
39
40
|
attributes:
|
40
41
|
'refinery/news/item':
|
data/config/locales/es-MX.yml
CHANGED
@@ -5,25 +5,25 @@ es-MX:
|
|
5
5
|
title: Noticias
|
6
6
|
news:
|
7
7
|
admin:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
items:
|
9
|
+
item:
|
10
|
+
view_live: "View this news item live <br/><em>(opens in a new window)</em>"
|
11
|
+
edit: "Modificar esta noticia"
|
12
|
+
delete: "Eliminar esta noticia"
|
13
|
+
index:
|
14
|
+
create: "Crear una noticia"
|
15
|
+
item: Noticias
|
16
|
+
no_items_yet: 'Aun no hay noticias. Haga click en "Crear una noticia" para agregar la primera noticia.'
|
17
|
+
items:
|
18
|
+
show:
|
19
|
+
back_to_index: "Regresar a noticias"
|
20
|
+
published: Publicada
|
21
|
+
no_items: "Lo sentimos, aun no ha publicado noticias."
|
22
|
+
recent_posts:
|
23
|
+
recent_posts: Publicaciones recientes
|
12
24
|
index:
|
13
|
-
|
14
|
-
|
15
|
-
item: Noticias
|
16
|
-
no_items: "Lo sentimos no hay resultados."
|
17
|
-
no_items_yet: 'Aun no hay noticias. Haga click en "Crear una noticia" para agregar la primera noticia.'
|
18
|
-
show:
|
19
|
-
back_to_index: "Regresar a noticias"
|
20
|
-
published: Publicada
|
21
|
-
no_items: "Lo sentimos, aun no ha publicado noticias."
|
22
|
-
recent_posts:
|
23
|
-
recent_posts: Publicaciones recientes
|
24
|
-
index:
|
25
|
-
published: Publicada
|
26
|
-
read_more: Leer mas
|
25
|
+
published: Publicada
|
26
|
+
read_more: Leer mas
|
27
27
|
activerecord:
|
28
28
|
attributes:
|
29
29
|
'refinery/news/item':
|
data/config/locales/es.yml
CHANGED
@@ -6,26 +6,26 @@ es:
|
|
6
6
|
description: Proporciona una seccion de noticias similar a un blog
|
7
7
|
news:
|
8
8
|
admin:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Ver este elemento en tu web <br/><em>(abre una nueva ventana)</em>"
|
12
|
+
edit: "Editar esta noticia"
|
13
|
+
delete: "Borrar completamente esta noticia"
|
14
|
+
published: Publicada
|
15
|
+
index:
|
16
|
+
create: "Crear noticia"
|
17
|
+
item: Noticia
|
18
|
+
no_items_yet: 'Aún no hay noticias. Haz click en "Crear noticia" para añadir la primera.'
|
19
|
+
items:
|
20
|
+
show:
|
21
|
+
back_to_index: "Volver al listado de noticias"
|
13
22
|
published: Publicada
|
23
|
+
recent_posts:
|
24
|
+
recent_posts: Artículos recientes
|
14
25
|
index:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
no_items: "Lo sentimos, no se ha encontrado ningún resultado"
|
19
|
-
no_items_yet: 'Aún no hay noticias. Haz click en "Crear noticia" para añadir la primera.'
|
20
|
-
show:
|
21
|
-
back_to_index: "Volver al listado de noticias"
|
22
|
-
published: Publicada
|
23
|
-
recent_posts:
|
24
|
-
recent_posts: Posts recientes
|
25
|
-
index:
|
26
|
-
published: Publicada
|
27
|
-
read_more: Leer mas
|
28
|
-
no_items_yet: Aún no hay ninguna noticia.
|
26
|
+
published: Publicada
|
27
|
+
read_more: Leer más
|
28
|
+
no_items_yet: Aún no hay ninguna noticia.
|
29
29
|
activerecord:
|
30
30
|
attributes:
|
31
31
|
'refinery/news/item':
|
@@ -33,6 +33,6 @@ es:
|
|
33
33
|
body: Contenido
|
34
34
|
content: Contenido
|
35
35
|
publish_date: Fecha de publicación
|
36
|
-
expiration_date:
|
36
|
+
expiration_date: Fecha de expiración
|
37
37
|
models:
|
38
38
|
'refinery/news/item': Noticia
|
data/config/locales/fr.yml
CHANGED
@@ -6,31 +6,43 @@ fr:
|
|
6
6
|
description: 'Fournit une rubrique "Actualités"'
|
7
7
|
news:
|
8
8
|
admin:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Visualiser cette nouvelle <br/><em>(ouvre une nouvelle fenêtre)</em>"
|
12
|
+
edit: "Modifier cette actualité"
|
13
|
+
delete: "Détruire cette actualité à tout jamais"
|
14
|
+
published: Publiée
|
15
|
+
index:
|
16
|
+
create: "Créer une actualité"
|
17
|
+
item: Actualité
|
18
|
+
no_items_yet: 'Aucune actualité. Cliquer sur "Créer une actualité" pour créer votre première actualité.'
|
19
|
+
shared:
|
20
|
+
items:
|
21
|
+
read_more: Lire la suite
|
22
|
+
created_at: 'Créée le %{when}'
|
23
|
+
archives: Archives
|
24
|
+
items:
|
25
|
+
show:
|
26
|
+
back_to_index: "Retour à la liste des actualités"
|
27
|
+
published: Publiée le
|
28
|
+
source: Source
|
29
|
+
recent_posts:
|
30
|
+
recent_posts: Dernières actualités
|
14
31
|
index:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
published: Publiée le
|
23
|
-
recent_posts:
|
24
|
-
recent_posts: Dernières actualités
|
25
|
-
index:
|
26
|
-
published: Publiée le
|
27
|
-
read_more: Plus
|
28
|
-
no_items_yet: Aucune actualité pour le moment.
|
32
|
+
published: Publiée le
|
33
|
+
read_more: Plus
|
34
|
+
no_items_yet: Aucune actualité pour le moment.
|
35
|
+
source: Source
|
36
|
+
archive:
|
37
|
+
news_item_archive_for: 'À archiver le %{date}'
|
38
|
+
no_news_item_articles_posted: "Aucune actualité en date du %{date}. Restez à l'écoute !"
|
29
39
|
activerecord:
|
30
40
|
attributes:
|
31
41
|
'refinery/news/item':
|
32
42
|
title: Titre
|
33
43
|
body: Texte
|
34
44
|
publish_date: Date de publication
|
45
|
+
expiration_date: Date d'expiration
|
46
|
+
source: Source
|
35
47
|
models:
|
36
48
|
'refinery/news/item': Nouvelle
|
data/config/locales/it.yml
CHANGED
@@ -6,26 +6,26 @@ it:
|
|
6
6
|
description: Fornisce una sezione notizie in stile blog
|
7
7
|
news:
|
8
8
|
admin:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: "Visualzza questa notizia live <br/><em>(si apre in una nuova finestra)</em>"
|
12
|
+
edit: "Modifica questa notizia"
|
13
|
+
delete: "Rimuovi questa notizia per sempre"
|
14
|
+
published: Pubblicata
|
15
|
+
index:
|
16
|
+
create: "Crea Notizia"
|
17
|
+
item: Notizia
|
18
|
+
no_items_yet: 'Non ci sono ancora notizie. Fare clic su "Crea Notizia" per aggiungere la prima notizia.'
|
19
|
+
items:
|
20
|
+
show:
|
21
|
+
back_to_index: "Torna a tutte le notizie"
|
13
22
|
published: Pubblicata
|
23
|
+
recent_posts:
|
24
|
+
recent_posts: Messaggi Recenti
|
14
25
|
index:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
no_items: "Spiacente, nessun risultato trovato."
|
19
|
-
no_items_yet: 'Non ci sono ancora notizie. Fare clic su "Crea Notizia" per aggiungere la prima notizie.'
|
20
|
-
show:
|
21
|
-
back_to_index: "Torna a tutte le notizie"
|
22
|
-
published: Pubblicata
|
23
|
-
recent_posts:
|
24
|
-
recent_posts: Messaggi Recenti
|
25
|
-
index:
|
26
|
-
published: Pubblicata
|
27
|
-
read_more: Per saperne di più
|
28
|
-
no_items_yet: Non ci sono ancora notizie.
|
26
|
+
published: Pubblicata
|
27
|
+
read_more: Per saperne di più
|
28
|
+
no_items_yet: Non ci sono ancora notizie.
|
29
29
|
activerecord:
|
30
30
|
attributes:
|
31
31
|
'refinery/news/item':
|
@@ -0,0 +1,48 @@
|
|
1
|
+
ja:
|
2
|
+
refinery:
|
3
|
+
plugins:
|
4
|
+
refinerycms_news:
|
5
|
+
title: 'ニュース'
|
6
|
+
description: '簡単なニュースを投稿出来るプラグイン'
|
7
|
+
news:
|
8
|
+
admin:
|
9
|
+
items:
|
10
|
+
item:
|
11
|
+
view_live_html: 'このニュースを見る<br/><em>(新規ウインドウで開かれます)</em>'
|
12
|
+
edit: 'このニュースを編集'
|
13
|
+
delete: 'このニュースを削除'
|
14
|
+
published: '公開日時'
|
15
|
+
index:
|
16
|
+
create: '新規ニュースを追加'
|
17
|
+
item: 'ニュース'
|
18
|
+
no_items_yet: 'まだニュースが何もありません。「新規ニュースを追加」をクリックしてニュースを追加して下さい。'
|
19
|
+
shared:
|
20
|
+
items:
|
21
|
+
read_more: '続きを読む'
|
22
|
+
created_at: '作成日時:%{when}'
|
23
|
+
archives: 記録
|
24
|
+
items:
|
25
|
+
show:
|
26
|
+
back_to_index: 'ニュース一覧に戻る'
|
27
|
+
published: '公開日時'
|
28
|
+
source: '参照元'
|
29
|
+
recent_posts:
|
30
|
+
recent_posts: '最近のニュース'
|
31
|
+
index:
|
32
|
+
published: '公開日時'
|
33
|
+
read_more: '続きを読む'
|
34
|
+
no_items_yet: 'まだニュースが何もありません。'
|
35
|
+
source: '参照元'
|
36
|
+
archive:
|
37
|
+
news_item_archive_for: '記録日時 %{date}'
|
38
|
+
no_news_item_articles_posted: '%{date}からニュースが追加されていません。'
|
39
|
+
activerecord:
|
40
|
+
attributes:
|
41
|
+
'refinery/news/item':
|
42
|
+
title: '題名'
|
43
|
+
body: '本文'
|
44
|
+
publish_date: '公開日時'
|
45
|
+
expiration_date: '公開終了日時'
|
46
|
+
source: '参照元'
|
47
|
+
models:
|
48
|
+
'refinery/news/item': 'ニュース'
|