refinerycms-resources 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,11 @@
1
+ <ul>
2
+ <li>
3
+ <%= render :partial => "/shared/admin/search", :locals => {:url => admin_resources_url} %>
4
+ </li>
5
+ <li>
6
+ <%= link_to t('.upload_new'), new_admin_resource_url(:dialog => true,
7
+ :width => 600,
8
+ :height => 300),
9
+ :class => "add_icon" %>
10
+ </li>
11
+ </ul>
@@ -0,0 +1,16 @@
1
+ <% if searching? %>
2
+ <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
3
+ <% end %>
4
+ <% if @resources.any? %>
5
+ <div class='pagination_container'>
6
+ <%= render :partial => 'resources' %>
7
+ </div>
8
+ <% else %>
9
+ <p>
10
+ <% unless searching? %>
11
+ <strong><%= t('.no_files_yet') %></strong>
12
+ <% else %>
13
+ <%= t('no_results', :scope => 'shared.admin.search') %>
14
+ <% end %>
15
+ </p>
16
+ <% end %>
@@ -1,31 +1,6 @@
1
1
  <div id='records' class='files'>
2
- <% if searching? %>
3
- <h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
4
- <% end %>
5
- <% if @resources.any? %>
6
- <div class='pagination_container'>
7
- <%= render :partial => 'resources' %>
8
- </div>
9
- <% else %>
10
- <p>
11
- <% unless searching? %>
12
- <strong><%= t('.no_files_yet') %></strong>
13
- <% else %>
14
- <%= t('no_results', :scope => 'shared.admin.search') %>
15
- <% end %>
16
- </p>
17
- <% end %>
2
+ <%= render :partial => 'records' %>
18
3
  </div>
19
4
  <div id='actions'>
20
- <ul>
21
- <li>
22
- <%= render :partial => "/shared/admin/search", :locals => {:url => admin_resources_url} %>
23
- </li>
24
- <li>
25
- <%= link_to t('.upload_new'), new_admin_resource_url(:dialog => true,
26
- :width => 600,
27
- :height => 300),
28
- :class => "add_icon" %>
29
- </li>
30
- </ul>
5
+ <%= render :partial => 'actions' %>
31
6
  </div>
@@ -14,8 +14,9 @@ cs:
14
14
  maximum_file_size: Maximální velikost souboru je %{megabytes} MB.
15
15
  resource:
16
16
  download: Stáhnout soubor (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Nahrát nový soubor
19
+ records:
19
20
  no_files_yet: Zatím nebyly nahrány žádné soubory.
20
21
  insert:
21
22
  existing: Existující soubor
@@ -14,8 +14,9 @@ da:
14
14
  maximum_file_size: Filen må maksimalt fylde %{megabytes} megabytes.
15
15
  resource:
16
16
  download: Download fil (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Tilføj en ny fil
19
+ records:
19
20
  no_files_yet: Der er ingen filer endnu. Klik på "Tilføj en ny fil" for at oprette den første.
20
21
  insert:
21
22
  existing: Eksisterende fil
@@ -14,8 +14,9 @@ de:
14
14
  maximum_file_size: "Die maximale Dateigröße beträgt %{megabytes} Megabyte."
15
15
  resource:
16
16
  download: Diese Datei herunterladen (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Neue Datei Hochladen
19
+ records:
19
20
  no_files_yet: Keine Dateien vorhanden. Klicken Sie auf "Neue Datei Hochladen" um Ihre erste Datei hinzuzufügen.
20
21
  insert:
21
22
  existing: Vorhandene Datei
@@ -14,8 +14,9 @@ el:
14
14
  maximum_file_size: Το μέγιστο μέγεθος του αρχείου είναι %{megabytes} megabytes.
15
15
  resource:
16
16
  download: Μεταφόρτωση αυτού του αρχείου (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Ανέβασμα νέου αρχείου
19
+ records:
19
20
  no_files_yet: Δεν υπαχουν αρχεία. Κάντε κλικ στο "Ανέβασμα αρχείου" για να προσθέσετε το πρώτο σας αρχείο.
20
21
  insert:
21
22
  existing: Υπάρχον αρχείο
@@ -14,8 +14,9 @@ en:
14
14
  maximum_file_size: The maximum file size is %{megabytes} megabytes.
15
15
  resource:
16
16
  download: Download this file (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Upload new file
19
+ records:
19
20
  no_files_yet: There are no files yet. Click "Upload new file" to add your first file.
20
21
  insert:
21
22
  existing: Existing File
@@ -15,8 +15,9 @@ es:
15
15
  maximum_file_size: El peso máximo para el archivo es de %{megabytes} megabytes.
16
16
  resource:
17
17
  download: Descargar este archivo (%{size})
18
- index:
18
+ actions:
19
19
  upload_new: Subir nuevo archivo
20
+ records:
20
21
  no_files_yet: Aún no hay archivos. Pulsa "Subir nuevo archivo" para añadir tu primer archivo.
21
22
  insert:
22
23
  existing: Archivo existente
@@ -14,8 +14,9 @@ fr:
14
14
  maximum_file_size: "La taille du fichier ne doit pas excéder %{megabytes} megaoctets."
15
15
  resource:
16
16
  download: Télécharger ce fichier (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Ajouter un nouveau fichier
19
+ records:
19
20
  no_files_yet: Il n'y a actuellement aucun fichier. Cliquez sur 'Ajouter un nouveau fichier' afin d'en ajouter un.
20
21
  insert:
21
22
  existing: Fichier existant
@@ -18,8 +18,9 @@ it:
18
18
  delete:
19
19
  message: Sei sicuro di voler eliminare '%{title}'?
20
20
  title: Elimina il file corrente
21
- index:
21
+ actions:
22
22
  upload_new: Carica un nuovo file
23
+ records:
23
24
  no_files_yet: Nessun file presente. Fai clic su "Carica un nuovo file" per aggiungere un file.
24
25
  insert:
25
26
  existing: File esistente
@@ -14,8 +14,9 @@ lolcat:
14
14
  maximum_file_size: TEH MAXIMUM FILE SIZE IZ %{megabytes} MEGABYTEZ.
15
15
  resource:
16
16
  download: DOWNLOAD DIS FILE (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: UPLOAD NEW FILE
19
+ records:
19
20
  no_files_yet: THAR R NO FILEZ YET. CLICK "UPLOAD NEW FILEZ" 2 ADD UR FURST FILE.
20
21
  insert:
21
22
  existing: EXISTIN FILE
@@ -14,8 +14,9 @@ lt:
14
14
  maximum_file_size: Maksimalus failo dydis yra %{megabytes} megabaitų.
15
15
  resource:
16
16
  download: Parsisiųsti failą (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Įkelti naują failą
19
+ records:
19
20
  no_files_yet: Dar nėra failų. Paspauskite "Įkelti naują failą" norėdami pridėti pirmąjį failą.
20
21
  insert:
21
22
  existing: Egzistuojantis failas
@@ -14,8 +14,9 @@ lv:
14
14
  maximum_file_size: Maksimāli pieļaujamais faila izmērs ir %{megabytes} megabaiti.
15
15
  resource:
16
16
  download: Lejupielādēt šo failu (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Augšupielādēt failu
19
+ records:
19
20
  no_files_yet: Vēl nav neviena faila. Spied "Augšupielādēt failu", lai ielādētu failu.
20
21
  insert:
21
22
  existing: Esošs Fails
@@ -14,8 +14,9 @@ nb:
14
14
  maximum_file_size: Største tillatte filstørrelse er %{megabytes} MB.
15
15
  resource:
16
16
  download: Last ned denne filen (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Last opp en ny fil
19
+ records:
19
20
  no_files_yet: Det er ingen filer her enda. Klikk på "Last opp en ny fil" for å legge til din første fil.
20
21
  insert:
21
22
  existing: Eksisterende fil
@@ -13,8 +13,9 @@ nl:
13
13
  maximum_file_size: "The maximum file size is %{megabytes} megabytes."
14
14
  resource:
15
15
  download: Download dit bestand (%{size})
16
- index:
16
+ actions:
17
17
  upload_new: Upload een nieuw bestand.
18
+ records:
18
19
  no_files_yet: Er zijn nog geen bestanden. Klik op "Upload een nieuw bestand" om uw eerste bestand toe te voegen.
19
20
  insert:
20
21
  existing: Bestaand bestand
@@ -15,8 +15,9 @@ pl:
15
15
  maximum_file_size: Maksymalny rozmiaj plik to %{megabytes} megabajtów.
16
16
  resource:
17
17
  download: Pobierz ten plik (%{size})
18
- index:
18
+ actions:
19
19
  upload_new: Wgraj nowe pliki
20
+ records:
20
21
  no_files_yet: Nie ma jeszcze żadnych plików. Kliknij "Wgraj nowe pliki" aby dodać pierwszy.
21
22
  insert:
22
23
  existing: Istniejący plik
@@ -14,8 +14,9 @@ pt-BR:
14
14
  maximum_file_size: "O tamanho máximo permitido é de %{megabytes} megabytes."
15
15
  resource:
16
16
  download: Baixar este arquivo (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Enviar Novo Arquivo
19
+ records:
19
20
  no_files_yet: Ainda não existem arquivos. Clique em "Enviar Novo Arquivo" para adicionar seu primeiro arquivo.
20
21
  insert:
21
22
  existing: O Arquivo já existe.
@@ -14,8 +14,9 @@ rs:
14
14
  maximum_file_size: Maksimalna veličina fajla je %{megabytes} megabajta.
15
15
  resource:
16
16
  download: Download-uj fajl (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Upload-uj novi fajl
19
+ records:
19
20
  no_files_yet: Ne postoje fajlovi. Klikni "Upload-uj novi fajl" da dodaš.
20
21
  insert:
21
22
  existing: Postojeći fajl
@@ -14,8 +14,9 @@ ru:
14
14
  maximum_file_size: "Максимальный размер файла — %{megabytes} МБ."
15
15
  resource:
16
16
  download: "Скачать файл (%{size})"
17
- index:
17
+ actions:
18
18
  upload_new: Загрузить новый файл
19
+ records:
19
20
  no_files_yet: "Здесь пока нет файлов. Нажмите «Загрузить новые файлы», чтобы добавить первый файл."
20
21
  insert:
21
22
  existing: Существующий файл
@@ -14,8 +14,9 @@ sk:
14
14
  maximum_file_size: Maximálna veľkosť súboru je %{megabytes} MB.
15
15
  resource:
16
16
  download: Stiahnuť súbor (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Nahrať nový súbor
19
+ records:
19
20
  no_files_yet: Zatiaľ neboli nahraté žiadne súbory.
20
21
  insert:
21
22
  existing: Existujúci súbor
@@ -13,8 +13,9 @@ sl:
13
13
  maximum_file_size: "Največja dovoljena velikost datoteke je %{megabytes} megabajtov."
14
14
  resource:
15
15
  download: Prenesi datoteko (%{size})
16
- index:
16
+ actions:
17
17
  upload_new: Prenesi Novo Datoteko
18
+ records:
18
19
  no_files_yet: Trenutno še ni nobene datoteke. Za prenos prve datoteke kliknite "Prenesi Novo Datoteko".
19
20
  insert:
20
21
  existing: Obstoječo Datoteko
@@ -14,8 +14,9 @@ sv:
14
14
  maximum_file_size: Maximal storlek är %{megabytes} megabytes.
15
15
  resource:
16
16
  download: Ladda ner den här filen (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Ladda upp en fil
19
+ records:
19
20
  no_files_yet: Det finns inga filer ännu. Klicka på "Ladda upp en fil" för att ladda upp din första fil.
20
21
  insert:
21
22
  existing: Redan existerande fil
@@ -14,8 +14,9 @@ vi:
14
14
  maximum_file_size: Kích thước file tối đa là %{megabytes} megabytes.
15
15
  resource:
16
16
  download: Tải về file này (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: Tải lên tập tin mới
19
+ records:
19
20
  no_files_yet: Chưa có tập tin nào. Nhấp vào "Tải lên tập tin mới" để thêm tập tin đầu tiên của bạn.
20
21
  insert:
21
22
  existing: Tập tin đang tồn tại
@@ -14,8 +14,9 @@ zh-CN:
14
14
  maximum_file_size: 最大的文件大小是 %{megabytes} MB.
15
15
  resource:
16
16
  download: 下载此文件 (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: 上传新文件
19
+ records:
19
20
  no_files_yet: 这里还没有文件. 点击 "上传新文件" 去添加您第一个文件.
20
21
  insert:
21
22
  existing: 已存在的文件
@@ -14,8 +14,9 @@ zh-TW:
14
14
  maximum_file_size: 檔案大小限制為 %{megabytes} MB.
15
15
  resource:
16
16
  download: 下載這個檔案 (%{size})
17
- index:
17
+ actions:
18
18
  upload_new: 上傳新檔案
19
+ records:
19
20
  no_files_yet: 目前沒有任何的檔案. 點選 "上傳新檔案" 來加入您的第一個檔案.
20
21
  insert:
21
22
  existing: 已存在的檔案
@@ -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 'resources-with-dragonfly' do |app|
17
22
  app_resources = Dragonfly[:resources]
18
23
  app_resources.configure_with(:rails) do |c|
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{refinerycms-resources}
5
- s.version = %q{0.9.9.7}
5
+ s.version = %q{0.9.9.8}
6
6
  s.summary = %q{Resources engine for Refinery CMS}
7
7
  s.description = %q{Handles all file 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}
@@ -24,8 +24,10 @@ Gem::Specification.new do |s|
24
24
  'app/views',
25
25
  'app/views/admin',
26
26
  'app/views/admin/resources',
27
+ 'app/views/admin/resources/_actions.html.erb',
27
28
  'app/views/admin/resources/_existing_resource.html.erb',
28
29
  'app/views/admin/resources/_form.html.erb',
30
+ 'app/views/admin/resources/_records.html.erb',
29
31
  'app/views/admin/resources/_resource.html.erb',
30
32
  'app/views/admin/resources/_resources.html.erb',
31
33
  'app/views/admin/resources/edit.html.erb',
@@ -84,7 +86,7 @@ Gem::Specification.new do |s|
84
86
  'spec/uploads/refinery_is_awesome.txt'
85
87
  ]
86
88
 
87
- s.add_dependency 'refinerycms-core', '~> 0.9.9.7'
89
+ s.add_dependency 'refinerycms-core', '~> 0.9.9.8'
88
90
  s.add_dependency 'dragonfly', '~> 0.8.2'
89
91
  s.add_dependency 'rack-cache', '>= 0.5.3'
90
92
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: refinerycms-resources
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
@@ -60,8 +60,10 @@ extra_rdoc_files: []
60
60
  files:
61
61
  - app/controllers/admin/resources_controller.rb
62
62
  - app/models/resource.rb
63
+ - app/views/admin/resources/_actions.html.erb
63
64
  - app/views/admin/resources/_existing_resource.html.erb
64
65
  - app/views/admin/resources/_form.html.erb
66
+ - app/views/admin/resources/_records.html.erb
65
67
  - app/views/admin/resources/_resource.html.erb
66
68
  - app/views/admin/resources/_resources.html.erb
67
69
  - app/views/admin/resources/edit.html.erb