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.
- data/app/views/admin/resources/_actions.html.erb +11 -0
- data/app/views/admin/resources/_records.html.erb +16 -0
- data/app/views/admin/resources/index.html.erb +2 -27
- data/config/locales/cs.yml +2 -1
- data/config/locales/da.yml +2 -1
- data/config/locales/de.yml +2 -1
- data/config/locales/el.yml +2 -1
- data/config/locales/en.yml +2 -1
- data/config/locales/es.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/config/locales/it.yml +2 -1
- data/config/locales/lolcat.yml +2 -1
- data/config/locales/lt.yml +2 -1
- data/config/locales/lv.yml +2 -1
- data/config/locales/nb.yml +2 -1
- data/config/locales/nl.yml +2 -1
- data/config/locales/pl.yml +2 -1
- data/config/locales/pt-BR.yml +2 -1
- data/config/locales/rs.yml +2 -1
- data/config/locales/ru.yml +2 -1
- data/config/locales/sk.yml +2 -1
- data/config/locales/sl.yml +2 -1
- data/config/locales/sv.yml +2 -1
- data/config/locales/vi.yml +2 -1
- data/config/locales/zh-CN.yml +2 -1
- data/config/locales/zh-TW.yml +2 -1
- data/lib/refinerycms-resources.rb +5 -0
- data/refinerycms-resources.gemspec +5 -3
- metadata +5 -3
@@ -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
|
-
|
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
|
-
|
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>
|
data/config/locales/cs.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/da.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/de.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/el.yml
CHANGED
@@ -14,8 +14,9 @@ el:
|
|
14
14
|
maximum_file_size: Το μέγιστο μέγεθος του αρχείου είναι %{megabytes} megabytes.
|
15
15
|
resource:
|
16
16
|
download: Μεταφόρτωση αυτού του αρχείου (%{size})
|
17
|
-
|
17
|
+
actions:
|
18
18
|
upload_new: Ανέβασμα νέου αρχείου
|
19
|
+
records:
|
19
20
|
no_files_yet: Δεν υπαχουν αρχεία. Κάντε κλικ στο "Ανέβασμα αρχείου" για να προσθέσετε το πρώτο σας αρχείο.
|
20
21
|
insert:
|
21
22
|
existing: Υπάρχον αρχείο
|
data/config/locales/en.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/es.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/fr.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/it.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/lolcat.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/lt.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/lv.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/nb.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/nl.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/pl.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/pt-BR.yml
CHANGED
@@ -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
|
-
|
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.
|
data/config/locales/rs.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/ru.yml
CHANGED
@@ -14,8 +14,9 @@ ru:
|
|
14
14
|
maximum_file_size: "Максимальный размер файла — %{megabytes} МБ."
|
15
15
|
resource:
|
16
16
|
download: "Скачать файл (%{size})"
|
17
|
-
|
17
|
+
actions:
|
18
18
|
upload_new: Загрузить новый файл
|
19
|
+
records:
|
19
20
|
no_files_yet: "Здесь пока нет файлов. Нажмите «Загрузить новые файлы», чтобы добавить первый файл."
|
20
21
|
insert:
|
21
22
|
existing: Существующий файл
|
data/config/locales/sk.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/sl.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/sv.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/vi.yml
CHANGED
@@ -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
|
-
|
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
|
data/config/locales/zh-CN.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
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-
|
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.
|
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
|