refinerycms-images 0.9.9.7 → 0.9.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ <ul>
2
+ <li>
3
+ <%= render :partial => "/shared/admin/search", :locals => {:url => admin_images_url} %>
4
+ </li>
5
+ <li>
6
+ <%= link_to t('.create_new_image'), new_admin_image_url(:dialog => true, :width => 600, :height => 300),
7
+ :class => "add_icon" %>
8
+ </li>
9
+ <% other_image_views.each do |image_view| %>
10
+ <li>
11
+ <%= link_to t('switch_to', :scope => 'admin.images.index.view', :view_name => t("#{image_view}", :scope => 'admin.images.index.view')),
12
+ admin_images_url(:view => image_view, :page => params[:page]),
13
+ :class => "reorder_icon" %>
14
+ </li>
15
+ <% end %>
16
+ </ul>
@@ -0,0 +1,18 @@
1
+ <% if searching? %>
2
+ <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
3
+ <% end %>
4
+ <% if @images.any? %>
5
+ <div class='pagination_container'>
6
+ <%= render :partial => 'images' %>
7
+ </div>
8
+ <% else %>
9
+ <p>
10
+ <% unless searching? %>
11
+ <strong>
12
+ <%= t('.no_images_yet') %>
13
+ </strong>
14
+ <% else %>
15
+ <%= t('no_results', :scope => 'shared.admin.search') %>
16
+ <% end %>
17
+ </p>
18
+ <% end %>
@@ -1,38 +1,6 @@
1
- <div id='records'>
2
- <% if searching? %>
3
- <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
4
- <% end %>
5
- <% if @images.any? %>
6
- <div class='pagination_container'>
7
- <%= render :partial => 'images' %>
8
- </div>
9
- <% else %>
10
- <p>
11
- <% unless searching? %>
12
- <strong>
13
- <%= t('.no_images_yet') %>
14
- </strong>
15
- <% else %>
16
- <%= t('no_results', :scope => 'shared.admin.search') %>
17
- <% end %>
18
- </p>
19
- <% end %>
20
- </div>
21
- <div id='actions'>
22
- <ul>
23
- <li>
24
- <%= render :partial => "/shared/admin/search", :locals => {:url => admin_images_url} %>
25
- </li>
26
- <li>
27
- <%= link_to t('.create_new_image'), new_admin_image_url(:dialog => true, :width => 600, :height => 300),
28
- :class => "add_icon" %>
29
- </li>
30
- <% other_image_views.each do |image_view| %>
31
- <li>
32
- <%= link_to t('switch_to', :scope => 'admin.images.index.view', :view_name => t("#{image_view}", :scope => 'admin.images.index.view')),
33
- admin_images_url(:view => image_view, :page => params[:page]),
34
- :class => "reorder_icon" %>
35
- </li>
36
- <% end %>
37
- </ul>
38
- </div>
1
+ <section id='records'>
2
+ <%= render :partial => 'records' %>
3
+ </section>
4
+ <section id='actions'>
5
+ <%= render :partial => 'actions' %>
6
+ </section>
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
  <% end %>
26
26
  <% else %>
27
- <% flash.now[:error] = t('no_images_yet', :scope => 'admin.images.index').split('.').first.html_safe + "." %>
27
+ <% flash.now[:error] = t('no_images_yet', :scope => 'admin.images.records').split('.').first.html_safe + "." %>
28
28
  <%= render :partial => "/shared/admin/form_actions",
29
29
  :locals => {
30
30
  :f => nil,
@@ -14,9 +14,11 @@ cs:
14
14
  replace_image: " nahradit jej tímto..."
15
15
  current_image: Vybraný obrázek
16
16
  maximum_image_size: Maximální velikost obrázku je %{megabytes} MB.
17
- index:
17
+ actions:
18
18
  create_new_image: Přidat nový obrázek
19
+ records:
19
20
  no_images_yet: Zatím nebyl nahraný žádný obrázek.
21
+ index:
20
22
  view:
21
23
  switch_to: "Přepnout pohled na: %{view_name}"
22
24
  list: seznam
@@ -14,9 +14,11 @@ da:
14
14
  replace_image: " erstat med dette..."
15
15
  current_image: Nuværende billede
16
16
  maximum_image_size: Billedet må maksimalt fylde %{megabytes} megabytes.
17
- index:
17
+ actions:
18
18
  create_new_image: Tilføj et nyt billede
19
+ records:
19
20
  no_images_yet: Der er ingen billeder endnu. Klik "Tilføj et nyt billede" for at oprette det første.
21
+ index:
20
22
  view:
21
23
  switch_to: Skift til %{view_name}visning
22
24
  list: liste
@@ -14,9 +14,11 @@ de:
14
14
  replace_image: " mit diesem ersetzen..."
15
15
  current_image: Aktuelles Bild
16
16
  maximum_image_size: Die maximale Größe eines Bildes beträgt %{megabytes} Megabytes.
17
- index:
17
+ actions:
18
18
  create_new_image: Neues Bild anlegen
19
+ records:
19
20
  no_images_yet: Es sind noch keine Bilder vorhanden. Klicken Sie auf "Neues Bild anlegen", um Ihr estes Bild hinzuzufügen.
21
+ index:
20
22
  view:
21
23
  switch_to: Zur %{view_name}-Ansicht wechseln
22
24
  list: Listen
@@ -14,9 +14,11 @@ el:
14
14
  replace_image: " αλλαγή με αυτήν..."
15
15
  current_image: Τρέχουσα εικόνα
16
16
  maximum_image_size: Το μέγιστο μέγεθος εικόνας είναι %{megabytes} megabytes.
17
- index:
17
+ actions:
18
18
  create_new_image: Προσθήκη νέας εικόνας
19
+ records:
19
20
  no_images_yet: Δεν υπάρχουν εικόνες. Κάντε κλικ στο "Προσθήκη εικόνας" για να προσθέτε την πρώτη εικόνα.
21
+ index:
20
22
  view:
21
23
  switch_to: Αλλαγή σε %{view_name} view
22
24
  list: λίστα
@@ -14,9 +14,11 @@ en:
14
14
  replace_image: " replace it with this one..."
15
15
  current_image: Current Image
16
16
  maximum_image_size: The maximum image size is %{megabytes} megabytes.
17
- index:
17
+ actions:
18
18
  create_new_image: Add new image
19
+ records:
19
20
  no_images_yet: There are no images yet. Click "Add new image" to add your first image.
21
+ index:
20
22
  view:
21
23
  switch_to: Switch to %{view_name} view
22
24
  list: list
@@ -15,9 +15,11 @@ es:
15
15
  replace_image: " reemplazarla con esta otra..."
16
16
  current_image: Imagen actual
17
17
  maximum_image_size: El peso máximo para una imagen son %{megabytes} megabytes.
18
- index:
18
+ actions:
19
19
  create_new_image: Crear nueva imagen
20
+ records:
20
21
  no_images_yet: Aún no hay imágenes. Haz click en "Crear nueva imagen" para añadir la primera.
22
+ index:
21
23
  view:
22
24
  switch_to: Cambiar a vista %{view_name}
23
25
  list: lista
@@ -14,9 +14,11 @@ fr:
14
14
  replace_image: " la remplacer par celle-ci..."
15
15
  current_image: Image actuelle
16
16
  maximum_image_size: "La taille de l'image ne doit pas excéder %{megabytes} megaoctets."
17
- index:
17
+ actions:
18
18
  create_new_image: Ajouter une image
19
+ records:
19
20
  no_images_yet: "Il n'y a pas encore d'image. Cliquer sur 'Ajouter une image' pour en ajouter une."
21
+ index:
20
22
  view:
21
23
  switch_to: Afficher sous forme de %{view_name}
22
24
  list: liste
@@ -13,12 +13,14 @@ it:
13
13
  or: o
14
14
  replace_image: Sostituirla con questa...
15
15
  current_image: Immagine corrente
16
- maximum_image_size: "La dimensione massima per l'immagine è %{megabytes} megabytes."
17
- index:
16
+ maximum_image_size: "La dimensione massima per l'immagine è di %{megabytes} megabytes."
17
+ actions:
18
18
  create_new_image: Carica una nuova immagine
19
+ records:
19
20
  no_images_yet: "Nessuna immagine presente. Fare clic su \"Carica una nuova immagine\" per aggiungere un'immagine."
21
+ index:
20
22
  view:
21
- switch_to: Passa alla modalità di visualizzazione "%{view_name}"
23
+ switch_to: 'Passa alla modalità di visualizzazione "%{view_name}"'
22
24
  list: Lista
23
25
  grid: Griglia
24
26
  grid_view:
@@ -43,5 +45,5 @@ it:
43
45
  models:
44
46
  image:
45
47
  blank: "Devi selezionare un'immagine da caricare"
46
- too_long: I file devono essere di dimensioni inferiori a %{count}
48
+ too_long: 'I files devono essere di dimensioni inferiori a %{count}'
47
49
  incorrect_format: "L'immagine deve essere in formato JPEG, PNG o GIF"
@@ -14,9 +14,11 @@ lolcat:
14
14
  replace_image: " REPLACE IT WIF DIS WAN..."
15
15
  current_image: CURRENT IMAGE
16
16
  maximum_image_size: TEH MAXIMUM IMAGE SIZE IZ %{megabytes} MEGABYTEZ.
17
- index:
17
+ actions:
18
18
  create_new_image: ADD NEW IMAGE
19
+ records:
19
20
  no_images_yet: THAR R NO IMAGEZ YET. CLICK "ADD NEW IMAGE" 2 ADD UR FURST IMAGE.
21
+ index:
20
22
  view:
21
23
  switch_to: SWITCH 2 %{view_name} VIEW
22
24
  list: LIST
@@ -14,9 +14,11 @@ lt:
14
14
  replace_image: " pakeisti jį šiuo..."
15
15
  current_image: Pasirinktas paveikslėlis
16
16
  maximum_image_size: Maksimalus paveikslėlio dydis yra %{megabytes} megabaitų.
17
- index:
17
+ actions:
18
18
  create_new_image: Pridėti naują paveikslėlį
19
+ records:
19
20
  no_images_yet: Dar nėra paveikslėlių. Paspauskite "Pridėti naują paveikslėlį" norėdami sukurti jūsų pirmą paveikslėlį.
21
+ index:
20
22
  view:
21
23
  switch_to: Persijungti į %{view_name} vaizdą
22
24
  list: sąrašo
@@ -14,9 +14,11 @@ lv:
14
14
  replace_image: " aizstāt to ar šo..."
15
15
  current_image: Pašreizējā Bilde
16
16
  maximum_image_size: Maksimāli pieļaujamais bildes izmērs ir %{megabytes} megabaiti.
17
- index:
17
+ actions:
18
18
  create_new_image: Augšupielādēt bildi
19
+ records:
19
20
  no_images_yet: Vēl nav nevienas bildes. Spied "Augšupielādēt bildi", lai ielādētu bildi.
21
+ index:
20
22
  view:
21
23
  switch_to: Pārslēgt uz %{view_name} skatu
22
24
  list: saraksta
@@ -14,9 +14,11 @@ nb:
14
14
  replace_image: Erstatt det med dette ...
15
15
  current_image: Gjeldende bilde
16
16
  maximum_image_size: "Den største tillatte størrelsen på et bilde er %{megabytes} MB."
17
- index:
17
+ actions:
18
18
  create_new_image: Lag et nytt bilde
19
+ records:
19
20
  no_images_yet: Det er ingen bilder her enda. Trykk på "Lag et nytt bilde" for å legge til ditt første bilde.
21
+ index:
20
22
  view:
21
23
  switch_to: "Endre til %{view_name} visning"
22
24
  list: liste
@@ -13,9 +13,11 @@ nl:
13
13
  replace_image: Vervang de afbeelding door deze
14
14
  current_image: Huidige afbeelding
15
15
  maximum_image_size: "The maximum image size is %{megabytes} megabytes."
16
- index:
16
+ actions:
17
17
  create_new_image: Upload een nieuwe afbeelding
18
+ records:
18
19
  no_images_yet: Er zijn nog geen afbeeldingen. Klik op "Upload een nieuwe afbeelding" om uw eerste afbleelding toe te voegen.
20
+ index:
19
21
  view:
20
22
  switch_to: Bekijk de %{view_name} versie
21
23
  list: lijst
@@ -15,9 +15,11 @@ pl:
15
15
  replace_image: " zastąp go tym..."
16
16
  current_image: Obecny obraz
17
17
  maximum_image_size: Maksymalny rozmiar obrazu to %{megabytes} megabajtów.
18
- index:
18
+ actions:
19
19
  create_new_image: Dodaj nowy obraz
20
+ records:
20
21
  no_images_yet: Nie ma jeszcze żadnych obrazów. Kliknij "Dodaj nowy obraz" aby dodać pierwszy.
22
+ index:
21
23
  view:
22
24
  switch_to: Przełącz do widoku %{view_name}
23
25
  list: lista
@@ -15,9 +15,11 @@ pt-BR:
15
15
  replace_image: " substituir por esta..."
16
16
  current_image: Imagem atual
17
17
  maximum_image_size: "O tamanho máximo permitido é de %{megabytes} megabytes."
18
- index:
18
+ actions:
19
19
  create_new_image: Criar Nova Imagem
20
+ records:
20
21
  no_images_yet: Ainda não existem imagens. Clique em "Criar Nova Imagem" para adicionar sua primeira imagem.
22
+ index:
21
23
  view:
22
24
  switch_to: Trocar para visão em %{view_name}
23
25
  list: lista
@@ -14,9 +14,11 @@ rs:
14
14
  replace_image: " zameni sa ovom..."
15
15
  current_image: Trenutna slika
16
16
  maximum_image_size: Maksimalna veličina slike je %{megabytes} megabajta.
17
- index:
17
+ actions:
18
18
  create_new_image: Dodaj novu sliku
19
+ records:
19
20
  no_images_yet: Ne postoje slike. Klikni "Dodaj novu sliku" da dodaš.
21
+ index:
20
22
  view:
21
23
  switch_to: Prebaci na %{view_name}
22
24
  list: listu
@@ -23,9 +23,11 @@ ru:
23
23
  replace_image: " заменить его этим"
24
24
  current_image: Текущее изображение
25
25
  maximum_image_size: "Максимальный размер изображения — %{megabytes} МБ."
26
- index:
26
+ actions:
27
27
  create_new_image: Создать новое изображение
28
+ records:
28
29
  no_images_yet: "Изображений пока что нет. Нажмите «Создать новое изображение», чтобы добавить ваше первое изображение."
30
+ index:
29
31
  view:
30
32
  switch_to: Показать %{view_name}
31
33
  list: списком
@@ -14,9 +14,11 @@ sk:
14
14
  replace_image: " nahradiť ho týmto..."
15
15
  current_image: Vybraný obrázok
16
16
  maximum_image_size: Maximálna veľkosť obrázku je %{megabytes}MB.
17
- index:
17
+ actions:
18
18
  create_new_image: Pridať nový obrázok
19
+ records:
19
20
  no_images_yet: Zatiaľ nebol nahraný žiadny obrázok. Klikni na "Pridať nový obrázok" pre pridanie.
21
+ index:
20
22
  view:
21
23
  switch_to: Prepnúť pohľad na %{view_name}
22
24
  list: zoznam
@@ -13,9 +13,11 @@ sl:
13
13
  replace_image: " zamenjaj jo s tole..."
14
14
  current_image: Trenutna Slika
15
15
  maximum_image_size: "Največja dovoljena velikost slike je lahko %{megabytes} megabajtov."
16
- index:
16
+ actions:
17
17
  create_new_image: Ustvari Novo Sliko
18
+ records:
18
19
  no_images_yet: Trenutno še ni nobene slike. Za prenos prve slike kliknite "Ustvari Novo Sliko".
20
+ index:
19
21
  view:
20
22
  switch_to: Preklopi pogled v %{view_name}
21
23
  list: seznam
@@ -14,9 +14,11 @@ sv:
14
14
  replace_image: " ersätt den med den här..."
15
15
  current_image: Denna bild
16
16
  maximum_image_size: Maximal filstorlek för bilden är %{megabytes} megabytes.
17
- index:
17
+ actions:
18
18
  create_new_image: Ladda upp en bild
19
+ records:
19
20
  no_images_yet: Det finns inga bilder än. Klicka på "Ladda upp en bild" för att ladda upp en bild.
21
+ index:
20
22
  view:
21
23
  switch_to: Byt till %{view_name} vyn
22
24
  list: lista
@@ -14,9 +14,11 @@ vi:
14
14
  replace_image: " thay bằng ảnh khác..."
15
15
  current_image: Ảnh hiện tại
16
16
  maximum_image_size: Dung lượng ảnh tối đa là %{megabytes} megabytes.
17
- index:
17
+ actions:
18
18
  create_new_image: Tạo ảnh mới
19
+ records:
19
20
  no_images_yet: Hiện chưa có ảnh nào. Ấn vào "Tạo ảnh mới" để tạo ảnh.
21
+ index:
20
22
  view:
21
23
  switch_to: Đổi sang kiểu xem %{view_name}
22
24
  list: danh sách
@@ -14,9 +14,11 @@ zh-CN:
14
14
  replace_image: " 使用这个去覆盖..."
15
15
  current_image: 当前图片
16
16
  maximum_image_size: 最大的图片大小为 %{megabytes} MB.
17
- index:
17
+ actions:
18
18
  create_new_image: 添加新图片
19
+ records:
19
20
  no_images_yet: 这里还没有图片. 点击 "添加新图片" 去添加您的第一张图片.
21
+ index:
20
22
  view:
21
23
  switch_to: 切换到 %{view_name} 视图
22
24
  list: 列表
@@ -14,9 +14,11 @@ zh-TW:
14
14
  replace_image: " 用這個來取代..."
15
15
  current_image: 目前圖片
16
16
  maximum_image_size: 圖片大小限制為 %{megabytes} MB.
17
- index:
17
+ actions:
18
18
  create_new_image: 新增圖片
19
+ records:
19
20
  no_images_yet: 目前沒有任何圖片. 點選 "新增圖片" 來加入您的第一張圖片.
21
+ index:
20
22
  view:
21
23
  switch_to: 切換到%{view_name}模式
22
24
  list: 列表
@@ -13,6 +13,11 @@ module Refinery
13
13
  end
14
14
 
15
15
  class Engine < ::Rails::Engine
16
+
17
+ initializer "serve static assets" do |app|
18
+ app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
19
+ end
20
+
16
21
  initializer 'images-with-dragonfly' do |app|
17
22
  app_images = Dragonfly[:images]
18
23
  app_images.configure_with(:imagemagick)
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-images}
5
- s.version = %q{0.9.9.7}
5
+ s.version = %q{0.9.9.8}
6
6
  s.summary = %q{Images engine for Refinery CMS}
7
7
  s.description = %q{Handles all image upload and processing functionality in Refinery CMS.}
8
- s.date = %q{2011-03-10}
8
+ s.date = %q{2011-03-11}
9
9
  s.email = %q{info@refinerycms.com}
10
10
  s.homepage = %q{http://refinerycms.com}
11
11
  s.rubyforge_project = %q{refinerycms}
@@ -27,12 +27,14 @@ Gem::Specification.new do |s|
27
27
  'app/views',
28
28
  'app/views/admin',
29
29
  'app/views/admin/images',
30
+ 'app/views/admin/images/_actions.html.erb',
30
31
  'app/views/admin/images/_existing_image.html.erb',
31
32
  'app/views/admin/images/_form.html.erb',
32
33
  'app/views/admin/images/_grid_view.html.erb',
33
34
  'app/views/admin/images/_images.html.erb',
34
35
  'app/views/admin/images/_list_view.html.erb',
35
36
  'app/views/admin/images/_list_view_image.html.erb',
37
+ 'app/views/admin/images/_records.html.erb',
36
38
  'app/views/admin/images/edit.html.erb',
37
39
  'app/views/admin/images/index.html.erb',
38
40
  'app/views/admin/images/insert.html.erb',
@@ -91,7 +93,7 @@ Gem::Specification.new do |s|
91
93
  'spec/uploads/beach.jpeg'
92
94
  ]
93
95
 
94
- s.add_dependency 'refinerycms-core', '~> 0.9.9.7'
96
+ s.add_dependency 'refinerycms-core', '~> 0.9.9.8'
95
97
  s.add_dependency 'dragonfly', '~> 0.8.2'
96
98
  s.add_dependency 'rack-cache', '>= 0.5.3'
97
99
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-images
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.7
5
+ version: 0.9.9.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Resolve Digital
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2011-03-10 00:00:00 +13:00
16
+ date: 2011-03-11 00:00:00 +13:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 0.9.9.7
27
+ version: 0.9.9.8
28
28
  type: :runtime
29
29
  version_requirements: *id001
30
30
  - !ruby/object:Gem::Dependency
@@ -61,12 +61,14 @@ files:
61
61
  - app/controllers/admin/images_controller.rb
62
62
  - app/helpers/admin/images_helper.rb
63
63
  - app/models/image.rb
64
+ - app/views/admin/images/_actions.html.erb
64
65
  - app/views/admin/images/_existing_image.html.erb
65
66
  - app/views/admin/images/_form.html.erb
66
67
  - app/views/admin/images/_grid_view.html.erb
67
68
  - app/views/admin/images/_images.html.erb
68
69
  - app/views/admin/images/_list_view.html.erb
69
70
  - app/views/admin/images/_list_view_image.html.erb
71
+ - app/views/admin/images/_records.html.erb
70
72
  - app/views/admin/images/edit.html.erb
71
73
  - app/views/admin/images/index.html.erb
72
74
  - app/views/admin/images/insert.html.erb