trusty-clipped-extension 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +22 -0
- data/README.md +191 -0
- data/Rakefile +109 -0
- data/app/assets/flash/ZeroClipboard.swf +0 -0
- data/app/assets/images/admin/add.png +0 -0
- data/app/assets/images/admin/archive_icon.png +0 -0
- data/app/assets/images/admin/audio_icon.png +0 -0
- data/app/assets/images/admin/audio_thumbnail.png +0 -0
- data/app/assets/images/admin/c_icon.png +0 -0
- data/app/assets/images/admin/copy.png +0 -0
- data/app/assets/images/admin/css_icon.png +0 -0
- data/app/assets/images/admin/database_icon.png +0 -0
- data/app/assets/images/admin/delete.png +0 -0
- data/app/assets/images/admin/document_icon.png +0 -0
- data/app/assets/images/admin/document_thumbnail.png +0 -0
- data/app/assets/images/admin/flash_icon.png +0 -0
- data/app/assets/images/admin/flash_thumbnail.png +0 -0
- data/app/assets/images/admin/font_icon.png +0 -0
- data/app/assets/images/admin/gzip_icon.png +0 -0
- data/app/assets/images/admin/html_icon.png +0 -0
- data/app/assets/images/admin/image_icon.png +0 -0
- data/app/assets/images/admin/image_thumbnail.png +0 -0
- data/app/assets/images/admin/java_icon.png +0 -0
- data/app/assets/images/admin/page_edit.png +0 -0
- data/app/assets/images/admin/perl_icon.png +0 -0
- data/app/assets/images/admin/php_icon.png +0 -0
- data/app/assets/images/admin/presentation_icon.png +0 -0
- data/app/assets/images/admin/python_icon.png +0 -0
- data/app/assets/images/admin/reorder_assets.png +0 -0
- data/app/assets/images/admin/ruby_icon.png +0 -0
- data/app/assets/images/admin/script_icon.png +0 -0
- data/app/assets/images/admin/spreadsheet_icon.png +0 -0
- data/app/assets/images/admin/tar_icon.png +0 -0
- data/app/assets/images/admin/unknown_icon.png +0 -0
- data/app/assets/images/admin/unknown_thumbnail.png +0 -0
- data/app/assets/images/admin/video_icon.png +0 -0
- data/app/assets/images/admin/video_thumbnail.png +0 -0
- data/app/assets/images/admin/xml_icon.png +0 -0
- data/app/assets/images/admin/zip_icon.png +0 -0
- data/app/assets/javascripts/admin/assets.js +261 -0
- data/app/assets/javascripts/admin/jquery.fileupload.js +1457 -0
- data/app/assets/javascripts/admin/jquery.iframe-transport.js +214 -0
- data/app/assets/javascripts/admin/jquery.ui.widget.js +558 -0
- data/app/assets/javascripts/admin/prototype_assets.js +166 -0
- data/app/assets/stylesheets/admin/assets.sass +224 -0
- data/app/assets/stylesheets/application.scss +0 -0
- data/app/controllers/admin/assets_controller.rb +67 -0
- data/app/controllers/admin/page_attachments_controller.rb +18 -0
- data/app/helpers/admin/assets_helper.rb +16 -0
- data/app/helpers/admin/page_attachments_helper.rb +2 -0
- data/app/models/asset.rb +241 -0
- data/app/models/asset_type.rb +241 -0
- data/app/models/old_page_attachment.rb +26 -0
- data/app/models/page_attachment.rb +20 -0
- data/app/views/admin/assets/_asset.html.haml +12 -0
- data/app/views/admin/assets/_asset_table.html.haml +30 -0
- data/app/views/admin/assets/_errors.html.haml +3 -0
- data/app/views/admin/assets/_form.html.haml +21 -0
- data/app/views/admin/assets/_page_assets.html.haml +12 -0
- data/app/views/admin/assets/_search.html.haml +17 -0
- data/app/views/admin/assets/_search_results.html.haml +17 -0
- data/app/views/admin/assets/edit.html.haml +40 -0
- data/app/views/admin/assets/index.html.haml +16 -0
- data/app/views/admin/assets/new.html.haml +24 -0
- data/app/views/admin/assets/refresh.html.haml +14 -0
- data/app/views/admin/assets/remove.html.haml +16 -0
- data/app/views/admin/configuration/_clipped_edit.html.haml +8 -0
- data/app/views/admin/configuration/_clipped_show.html.haml +12 -0
- data/app/views/admin/page_attachments/_attachment.html.haml +25 -0
- data/app/views/admin/page_parts/_page_part.html.haml +21 -0
- data/app/views/admin/pages/_asset_popups.html.haml +56 -0
- data/app/views/admin/pages/_assets.html.haml +14 -0
- data/app/views/admin/removed/_assets_bucket.html.haml +8 -0
- data/app/views/admin/removed/_assets_container.html.haml +58 -0
- data/app/views/admin/removed/_bucket.html.haml +11 -0
- data/app/views/admin/removed/_bucket_asset.html.haml +9 -0
- data/app/views/admin/removed/_show_bucket_link.html.haml +4 -0
- data/app/views/admin/removed/_upload_to_page.html.haml +12 -0
- data/app/views/admin/removed/bucket/_iframe.html.haml +1 -0
- data/artwork/icons.png +0 -0
- data/clipped_extension.rb +53 -0
- data/config/initializers/interpolation.rb +6 -0
- data/config/initializers/processors.rb +43 -0
- data/config/initializers/radiant_config.rb +66 -0
- data/config/locales/de.yml +109 -0
- data/config/locales/en.yml +110 -0
- data/config/locales/nl.yml +107 -0
- data/config/locales/ru.yml +110 -0
- data/config/routes.rb +17 -0
- data/cucumber.yml +1 -0
- data/db/migrate/001_create_assets.rb +12 -0
- data/db/migrate/002_create_paperclip_attributes.rb +13 -0
- data/db/migrate/003_create_user_observer.rb +13 -0
- data/db/migrate/004_create_page_attachments.rb +19 -0
- data/db/migrate/005_rename_users.rb +13 -0
- data/db/migrate/20110513205050_asset_uuid.rb +11 -0
- data/db/migrate/20110606111250_update_configuration.rb +34 -0
- data/db/migrate/20110609101438_dimensions.rb +13 -0
- data/features/support/env.rb +11 -0
- data/features/support/paths.rb +22 -0
- data/lib/asset_tags.rb +346 -0
- data/lib/clipped/engine.rb +5 -0
- data/lib/clipped_admin_ui.rb +32 -0
- data/lib/cloud.rb +41 -0
- data/lib/generators/templates/clipped_config.rb +53 -0
- data/lib/page_asset_associations.rb +13 -0
- data/lib/paperclip/frame_grab.rb +73 -0
- data/lib/paperclip/geometry_transformation.rb +80 -0
- data/lib/tasks/clipped_extension_tasks.rake +124 -0
- data/lib/tasks/paperclip_tasks.rake +79 -0
- data/lib/trusty-clipped-extension.rb +8 -0
- data/spec/ci/before_script +23 -0
- data/spec/ci/script +2 -0
- data/spec/controllers/admin/assets_controller_spec.rb +50 -0
- data/spec/controllers/admin/page_attachments_controller_spec.rb +50 -0
- data/spec/datasets/assets_dataset.rb +36 -0
- data/spec/fixtures/5k.png +0 -0
- data/spec/fixtures/test.flv +0 -0
- data/spec/lib/asset_tags_spec.rb +107 -0
- data/spec/lib/frame_grab_spec.rb +17 -0
- data/spec/lib/geometry_transformation_spec.rb +63 -0
- data/spec/models/asset_spec.rb +72 -0
- data/spec/models/asset_type_spec.rb +70 -0
- data/spec/models/post_processing_spec.rb +62 -0
- data/spec/spec.opts +7 -0
- data/spec/spec_helper.rb +36 -0
- data/trusty-clipped-extension.gemspec +29 -0
- data/wireframes/edit-page-assets-2.bmml +453 -0
- data/wireframes/edit-page-assets-2.png +0 -0
- data/wireframes/edit-page-assets-3.bmml +454 -0
- data/wireframes/edit-page-assets-3.png +0 -0
- data/wireframes/edit-page-assets.bmml +433 -0
- data/wireframes/edit-page-assets.png +0 -0
- data/wireframes/edit-page.bmml +174 -0
- data/wireframes/edit-page.png +0 -0
- metadata +265 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
- @stylesheets << 'admin/assets'
|
2
|
+
= javascript_include_tag 'ZeroClipboard'
|
3
|
+
= javascript_include_tag 'admin/assets'
|
4
|
+
= javascript_include_tag 'admin/dragdrop'
|
5
|
+
|
6
|
+
#assets-container
|
7
|
+
#asset-tabs
|
8
|
+
- render_region :asset_tabs do |asset_tabs|
|
9
|
+
- if @page && !@page.new_record?
|
10
|
+
- asset_tabs.attachment_tab do
|
11
|
+
%a.asset-tab{ :href => "#page-attachments", :id => "tab_page-attachments" }
|
12
|
+
= t("clipped_extension.attached_assets")
|
13
|
+
- asset_tabs.upload_tab do
|
14
|
+
%a.asset-tab{ :href => "#upload_assets", :id => "tab_upload_assets" }
|
15
|
+
= t("clipped_extension.upload")
|
16
|
+
- asset_tabs.bucket_tab do
|
17
|
+
%a.asset-tab{ :href => "#bucket", :id => "tab_bucket" }
|
18
|
+
= t("clipped_extension.bucket")
|
19
|
+
- asset_tabs.search_tab do
|
20
|
+
%a.asset-tab{ :href => "#search-assets" }
|
21
|
+
= t("clipped_extension.search")
|
22
|
+
- else
|
23
|
+
- asset_tabs.bucket_tab do
|
24
|
+
%a.asset-tab.here{ :href => "#" }
|
25
|
+
= t("clipped_extension.bucket")
|
26
|
+
|
27
|
+
- if @page && !@page.new_record?
|
28
|
+
- render_region :asset_panes do |asset_panes|
|
29
|
+
|
30
|
+
- asset_panes.page_attachments do
|
31
|
+
#page-attachments.pane
|
32
|
+
%p
|
33
|
+
%span.note
|
34
|
+
!= t("clipped_extension.asset_note")
|
35
|
+
%ul#attachments
|
36
|
+
= render :partial => "admin/assets/page_assets"
|
37
|
+
.clear
|
38
|
+
|
39
|
+
- asset_panes.upload do
|
40
|
+
#upload_assets.pane
|
41
|
+
%p
|
42
|
+
%span.note
|
43
|
+
!= t("clipped_extension.asset_page_upload_note")
|
44
|
+
= render :partial => "admin/assets/upload_to_page"
|
45
|
+
.clear
|
46
|
+
|
47
|
+
- asset_panes.search do
|
48
|
+
#search-assets.pane
|
49
|
+
- form_tag do
|
50
|
+
%p
|
51
|
+
%label.note{ :for => 'search' }
|
52
|
+
= t("clipped_extension.search_assets")
|
53
|
+
%input{ :type => "hidden", :name => "search", :value => @page.id }
|
54
|
+
%input{ :type => "search", :id => "search", :name => "search" }
|
55
|
+
= submit_tag t("clipped_extension.search")
|
56
|
+
#search-results
|
57
|
+
.clear
|
58
|
+
= observe_field 'search', :frequency => 1, :update => 'search-results', :url => admin_assets_path(:asset_page => @page), :method => 'get', :with => "'search=' + escape(value)"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%ul#bucket_list
|
2
|
+
- if session[:bucket]
|
3
|
+
- session[:bucket].each do |url, info|
|
4
|
+
= render :partial => 'admin/assets/bucket_asset', :locals => { :asset_url => url, :asset_id => info[:id], :asset_type => info[:type], :asset_title => info[:title], :asset_thumbnail =>info[:thumbnail], :page => @page }
|
5
|
+
- else
|
6
|
+
%li
|
7
|
+
%p.note
|
8
|
+
= t("clipped_extension.empty_bucket")
|
9
|
+
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
%li
|
2
|
+
|
3
|
+
%div{ :class => "#{asset_type} asset", :id => "bucket_#{asset_id}" }
|
4
|
+
= link_to image_tag(asset_thumbnail), asset_url, :title => asset_title, :class => "bucket_link"
|
5
|
+
|
6
|
+
.info{ :id => "#{asset_id}_info" }
|
7
|
+
= link_to image('assets/edit'), edit_admin_asset_url(asset_id), :class => "edit_asset", :title => t("clipped_extension.edit_asset", :asset => asset_title)
|
8
|
+
- if page && !page.new_record?
|
9
|
+
= link_to image('assets/add'), attach_page_asset_url(:asset => asset_id, :page => page.id), :class => "add_asset", :title => t("clipped_extension.attach_to_page")
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#upload-form
|
2
|
+
- form_for :asset, :url => admin_assets_path(:page => @page, :format => 'js'), :html => { :id => 'asset-upload', :method => "post", :multipart => true, :target => 'ulframe' } do |form|
|
3
|
+
%div.file
|
4
|
+
%label.upload
|
5
|
+
= t("clipped_extension.choose_upload")
|
6
|
+
= form.file_field :asset, :class => "", :style => "width: 100%"
|
7
|
+
|
8
|
+
.upload-buttons
|
9
|
+
= form.submit t("clipped_extension.save_and_upload"), :class => "button"
|
10
|
+
%div.spinner
|
11
|
+
|
12
|
+
%iframe{:id => 'ulframe', :name => "ulframe", :src => "about:blank"}
|
@@ -0,0 +1 @@
|
|
1
|
+
= render :partial => 'admin/assets/asset', :object => asset, :locals => {:dom_id => "attachment_#{asset.id}" }
|
data/artwork/icons.png
ADDED
Binary file
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'trusty-clipped-extension'
|
2
|
+
require 'acts_as_list'
|
3
|
+
require 'uuidtools'
|
4
|
+
require 'cloud'
|
5
|
+
require 'paperclip'
|
6
|
+
require 'will_paginate/array'
|
7
|
+
|
8
|
+
class ClippedExtension < TrustyCms::Extension
|
9
|
+
version TrustyCmsClippedExtension::VERSION
|
10
|
+
description TrustyCmsClippedExtension::DESCRIPTION
|
11
|
+
url TrustyCmsClippedExtension::URL
|
12
|
+
|
13
|
+
migrate_from 'Paperclipped', 20100327111216
|
14
|
+
|
15
|
+
def activate
|
16
|
+
if Asset.table_exists?
|
17
|
+
Page.send :include, PageAssetAssociations # defines page-asset associations. likely to be generalised soon.
|
18
|
+
TrustyCms::AdminUI.send :include, ClippedAdminUI unless defined? admin.asset # defines shards for extension of the asset-admin interface
|
19
|
+
Admin::PagesController.send :helper, Admin::AssetsHelper # currently only provides a description of asset sizes
|
20
|
+
Page.send :include, AssetTags # radius tags for selecting sets of assets and presenting each one
|
21
|
+
UserActionObserver.instance.send :add_observer!, Asset # the usual creator- and updater-stamping
|
22
|
+
|
23
|
+
AssetType.new :image, :icon => 'image', :default_radius_tag => 'image', :processors => [:thumbnail], :styles => :standard, :extensions => %w[jpg jpeg png gif], :mime_types => %w[image/png image/x-png image/jpeg image/pjpeg image/jpg image/gif]
|
24
|
+
AssetType.new :video, :icon => 'video', :processors => [:frame_grab], :styles => :standard, :mime_types => %w[application/x-mp4 video/mpeg video/quicktime video/x-la-asf video/x-ms-asf video/x-msvideo video/x-sgi-movie video/x-flv flv-application/octet-stream video/3gpp video/3gpp2 video/3gpp-tt video/BMPEG video/BT656 video/CelB video/DV video/H261 video/H263 video/H263-1998 video/H263-2000 video/H264 video/JPEG video/MJ2 video/MP1S video/MP2P video/MP2T video/mp4 video/MP4V-ES video/MPV video/mpeg4 video/mpeg4-generic video/nv video/parityfec video/pointer video/raw video/rtx video/ogg video/webm]
|
25
|
+
AssetType.new :audio, :icon => 'audio', :mime_types => %w[audio/mpeg audio/mpg audio/ogg application/ogg audio/x-ms-wma audio/vnd.rn-realaudio audio/x-wav]
|
26
|
+
AssetType.new :font, :icon => 'font', :extensions => %w[ttf otf eot woff]
|
27
|
+
AssetType.new :flash, :icon => 'flash', :default_radius_tag => 'flash', :extensions => %w{swf}, :mime_types => %w[application/x-shockwave-flash]
|
28
|
+
AssetType.new :pdf, :icon => 'pdf', :processors => [:thumbnail], :extensions => %w{pdf}, :mime_types => %w[application/pdf application/x-pdf], :styles => :standard
|
29
|
+
AssetType.new :document, :icon => 'document', :mime_types => %w[application/msword application/rtf application/vnd.ms-excel application/vnd.ms-powerpoint application/vnd.ms-project application/vnd.ms-works text/plain text/html]
|
30
|
+
AssetType.new :other, :icon => 'unknown'
|
31
|
+
|
32
|
+
admin.asset ||= TrustyCms::AdminUI.load_default_asset_regions # loads the shards defined in AssetsAdminUI
|
33
|
+
admin.page.edit.add :form, 'assets', :after => :edit_page_parts # adds the asset-attachment picker to the page edit view
|
34
|
+
admin.page.edit.add :main, 'asset_popups', :after => :edit_popups # adds the asset-attachment picker to the page edit view
|
35
|
+
admin.page.edit.asset_popups.concat %w{upload_asset attach_asset}
|
36
|
+
admin.configuration.show.add :trusty_config, 'admin/configuration/clipped_show', :after => 'defaults'
|
37
|
+
admin.configuration.edit.add :form, 'admin/configuration/clipped_edit', :after => 'edit_defaults'
|
38
|
+
|
39
|
+
if TrustyCms::Config.table_exists? && TrustyCms::config["paperclip.command_path"] # This is needed for testing if you are using mod_rails
|
40
|
+
Paperclip.options[:command_path] = TrustyCms::config["paperclip.command_path"]
|
41
|
+
end
|
42
|
+
|
43
|
+
tab "Assets", :after => "Content" do
|
44
|
+
add_item "All", "/admin/assets/"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def deactivate
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'paperclip'
|
2
|
+
|
3
|
+
if TrustyCms.config.table_exists?
|
4
|
+
if TrustyCms.config['assets.create_image_thumbnails?']
|
5
|
+
# Check that we can run convert
|
6
|
+
begin
|
7
|
+
output = Paperclip.run('convert', '-version')
|
8
|
+
Rails.logger.info %{[Clipped] Using image thumbnailer: #{output.split("\n").first.sub(/^Version: /i, '')}}
|
9
|
+
rescue Cocaine::CommandNotFoundError
|
10
|
+
TrustyCms.config['assets.create_image_thumbnails?'] = false
|
11
|
+
TrustyCms.config['assets.create_pdf_thumbnails?'] = false
|
12
|
+
Rails.logger.warn "ImageMagick 'convert' executable not found: image and pdf thumbnailing disabled."
|
13
|
+
rescue Cocaine::ExitStatusError => e
|
14
|
+
Rails.logger.warn "ImageMagick is present but calling 'convert -version' returns an error: #{e}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
if TrustyCms.config['assets.create_pdf_thumbnails?']
|
19
|
+
# Check that we can run ghostscript
|
20
|
+
begin
|
21
|
+
output = Paperclip.run('gs', '-v')
|
22
|
+
Rails.logger.info %{[Clipped] Using PDF thumbnailer: #{output.split("\n").first}}
|
23
|
+
rescue Cocaine::CommandNotFoundError
|
24
|
+
TrustyCms.config['assets.create_pdf_thumbnails?'] = false
|
25
|
+
Rails.logger.warn "Ghostscript 'gs' executable not found: pdf thumbnailing disabled."
|
26
|
+
rescue Cocaine::ExitStatusError => e
|
27
|
+
Rails.logger.warn "Ghostscript is present but calling 'gs -v' returns an error: #{e}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
if TrustyCms.config['assets.create_video_thumbnails?']
|
32
|
+
# Check that we can run ffmpeg
|
33
|
+
begin
|
34
|
+
output = Paperclip.run('ffmpeg', '-version 2> /dev/null')
|
35
|
+
Rails.logger.info %{[Clipped] Using video frame grabber: #{output.split("\n").first}}
|
36
|
+
rescue Cocaine::CommandNotFoundError
|
37
|
+
TrustyCms.config['assets.create_video_thumbnails?'] = false
|
38
|
+
Rails.logger.warn "FFmpeg executable not found: video thumbnailing disabled."
|
39
|
+
rescue Cocaine::ExitStatusError => e
|
40
|
+
Rails.logger.warn "FFmpeg is present but calling 'ffmpeg -L' returns an error: #{e}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'clipped/engine'
|
2
|
+
TrustyCms.config do |config|
|
3
|
+
config.namespace 'paperclip' do |pc|
|
4
|
+
pc.define 'url', :default => '/system/:attachment/:id/:style/:basename:no_original_style.:extension', :allow_change => true
|
5
|
+
pc.define 'path', :default => ':rails_root/public/system/:attachment/:id/:style/:basename:no_original_style.:extension', :allow_change => true
|
6
|
+
pc.define 'skip_filetype_validation', :default => true, :type => :boolean
|
7
|
+
pc.define 'storage', :default => 'filesystem',
|
8
|
+
:select_from => {
|
9
|
+
'File System' => 'filesystem',
|
10
|
+
'Amazon S3' => 'fog',
|
11
|
+
'Google Storage' => 'fog',
|
12
|
+
'Rackspace Cloud Files' => 'fog'
|
13
|
+
},
|
14
|
+
:allow_blank => false,
|
15
|
+
:allow_display => false
|
16
|
+
|
17
|
+
pc.namespace 'fog' do |fog|
|
18
|
+
fog.define 'provider', :select_from => {
|
19
|
+
'Amazon S3' => 'AWS',
|
20
|
+
'Google Storage' => 'Google',
|
21
|
+
'Rackspace Cloud Files' => 'Rackspace'
|
22
|
+
}
|
23
|
+
fog.define 'directory'
|
24
|
+
fog.define 'public?', :default => true
|
25
|
+
fog.define 'host'
|
26
|
+
end
|
27
|
+
|
28
|
+
pc.namespace 'google_storage' do |gs|
|
29
|
+
gs.define 'access_key_id'
|
30
|
+
gs.define 'secret_access_key'
|
31
|
+
end
|
32
|
+
|
33
|
+
pc.namespace 'rackspace' do |rs|
|
34
|
+
rs.define 'username'
|
35
|
+
rs.define 'api_key'
|
36
|
+
end
|
37
|
+
|
38
|
+
pc.namespace 's3' do |s3|
|
39
|
+
s3.define 'key'
|
40
|
+
s3.define 'secret'
|
41
|
+
s3.define 'region', :select_from => {
|
42
|
+
'Asia North East' => 'ap-northeast-1',
|
43
|
+
'Asia South East' => 'ap-southeast-1',
|
44
|
+
'EU West' => 'eu-west-1',
|
45
|
+
'US East' => 'us-east-1',
|
46
|
+
'US West' => 'us-west-1'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
config.namespace 'assets', :allow_display => false do |assets|
|
52
|
+
assets.define 'create_image_thumbnails?', :default => 'true'
|
53
|
+
assets.define 'create_video_thumbnails?', :default => 'true'
|
54
|
+
assets.define 'create_pdf_thumbnails?', :default => 'true'
|
55
|
+
|
56
|
+
assets.namespace 'thumbnails' do |thumbs| # NB :icon and :thumbnail are already defined as fixed formats for use in the admin interface and can't be changed
|
57
|
+
thumbs.define 'image', :default => 'normal:size=640x640>|small:size=320x320>'
|
58
|
+
thumbs.define 'video', :default => 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
|
59
|
+
thumbs.define 'pdf', :default => 'normal:size=640x640>,format=jpg|small:size=320x320>,format=jpg'
|
60
|
+
end
|
61
|
+
|
62
|
+
assets.define 'max_asset_size', :default => 5, :type => :integer, :units => 'MB'
|
63
|
+
assets.define 'display_size', :default => 'normal', :allow_blank => true
|
64
|
+
assets.define 'insertion_size', :default => 'normal', :allow_blank => true
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
assets: 'Assets'
|
4
|
+
asset_types:
|
5
|
+
all: 'Alle'
|
6
|
+
documents: 'Dokumente'
|
7
|
+
fonts: 'Schriftarten'
|
8
|
+
images: 'Bilder'
|
9
|
+
others: 'Andere'
|
10
|
+
audios: 'Audio'
|
11
|
+
flashes: 'Flash'
|
12
|
+
videos: 'Video'
|
13
|
+
pdfs: 'PDF'
|
14
|
+
swfs: 'Flash'
|
15
|
+
|
16
|
+
activerecord:
|
17
|
+
errors:
|
18
|
+
models:
|
19
|
+
asset:
|
20
|
+
attributes:
|
21
|
+
asset:
|
22
|
+
blank: 'Sie müssen eine Datei zum hochladen auswählen!'
|
23
|
+
|
24
|
+
clipped_extension:
|
25
|
+
actions: Aktionen
|
26
|
+
all: 'Alle'
|
27
|
+
all_thumbnails_refreshed: 'Alle Voransichten wurden aktualisiert.'
|
28
|
+
alt_text_or_title: 'Bildbeschreibung oder Titel <span class="hint">(optional)</span>'
|
29
|
+
asset: 'Asset'
|
30
|
+
asset_edit_title: Asset bearbeiten
|
31
|
+
asset_errors: 'Ein Fehler ist aufgetreten. {{errors}}'
|
32
|
+
asset_page_attachment_note: 'Angehangene Assets. Diese können per drag&drop eingefügt oder mit dem <code><r:assets:each /></code> tag angezeigt werden.'
|
33
|
+
asset_note: 'Angehangene assets. '
|
34
|
+
assets: 'Assets'
|
35
|
+
assets_explanation: 'Assets und Bilder können hochgeladen und dann an Seiten angehangen oder eingefügt werden. Klicken sie auf den Namen, um das Asset zu bearbeiten, oder <code>Löschen</code> um es zu entfernen.'
|
36
|
+
assets_title: 'Assets'
|
37
|
+
asset_page_upload_note: 'Hier hochgeladene Assets werden automatisch mit dieser Seite verknüpft sein.'
|
38
|
+
asset_upload_note: 'Wählen sie ein Assets aus, um es hochzuladen. Wenn der <code>Titel</code> leer ist, wird statt dessen der Dateiname ohne Endung verwendet. Mit <code>Mehr</code> können Sie auch einen Untertitel angeben.'
|
39
|
+
attached_assets: 'Angehangene Assets'
|
40
|
+
attach: Anhängen
|
41
|
+
attach_asset: 'Asset anhängen'
|
42
|
+
attach_assets: 'Assets anhängen'
|
43
|
+
attach_existing: Bestehendes anhängen
|
44
|
+
attach_to_page: 'Mit Seite verknüpfen'
|
45
|
+
audio: 'Audio'
|
46
|
+
cancel_attachment: 'Anhang lösen'
|
47
|
+
copy: 'kopieren'
|
48
|
+
copy_alt: 'Radius Tag in die Zwischenablage'
|
49
|
+
choose_file: Datei auswählen
|
50
|
+
documents: 'Dokumente'
|
51
|
+
caption: Untertitel
|
52
|
+
confirm_refresh_assets: 'Sind sie sicher, alle Voransichten aktualisieren zu wollen? Dies wird voraussichtlich eine lange Zeit und erhebliche Serverressourcen in Anspruch nehmen. <strong class="warning">Die Leistung der Webseite wird währenddessen beeinflusst sein</strong> und ihr Browser könnte die Verbindung schließen, bevor der Vorgang abgeschlossen ist. Wir empfehlen dies nur, wenn der Umfang der Asset-Bibliothek klein ist.'
|
53
|
+
confirm_remove_asset: 'Sind sie sicher, dieses Asset <strong class="warning">dauerhaft entfernen</strong> zu wollen?'
|
54
|
+
confirm_remove_from_page: 'Sind sie sicher, dieses Assets von der Seite entfernen zu wollen?'
|
55
|
+
delete_asset: 'Asset löschen'
|
56
|
+
detach: 'Verknüpfung lösen'
|
57
|
+
edit: Bearbeiten
|
58
|
+
edit_asset: 'Bearbeite {{asset}}'
|
59
|
+
filename: Dateiname
|
60
|
+
find_assets: Assets finden
|
61
|
+
images: 'Bilder'
|
62
|
+
images_automatically_created: 'Bilder werden automatisch angelegt'
|
63
|
+
insert: Einsetzen
|
64
|
+
modify: 'Bearbeiten'
|
65
|
+
movies: 'Filme'
|
66
|
+
need_to_upload: 'Möchten Sie etwas hochladen?'
|
67
|
+
new_asset: Neues Asset anlegen
|
68
|
+
no_assets_found: 'Es wurden keine Assets gefunden.'
|
69
|
+
no_assets: 'Keine Assets'
|
70
|
+
no_attached_assets: Keine Assets angehangen
|
71
|
+
others: 'Andere'
|
72
|
+
refresh_assets: Alle Assets aktualisieren
|
73
|
+
regenerate: Neu anlegen
|
74
|
+
regenerate_thumbnails: Vorschau neu anlegen
|
75
|
+
remove_asset: 'Asset entfernen'
|
76
|
+
remove_from_page: 'Von der Seite entfernen'
|
77
|
+
reorder: 'Anordnen'
|
78
|
+
remove: Löschen
|
79
|
+
refresh_assets_rake_task: 'Es ist empfehlenswert, sich auf dem Server anzumelden und das Kommando <code>rake paperclip:refresh class=Asset</code> auszuführen.'
|
80
|
+
replace_file: Datei ersetzen
|
81
|
+
save_and_upload: 'Speichern und hochladen'
|
82
|
+
search_assets: 'Assets suchen'
|
83
|
+
search: 'Suchen'
|
84
|
+
select: 'Auswählen'
|
85
|
+
thumbnails_refreshed: Voransichten wurden neu angelegt
|
86
|
+
title: Titel
|
87
|
+
type: 'Typ'
|
88
|
+
types_to_find: 'Zu suchender Typ'
|
89
|
+
upload: Hochladen
|
90
|
+
upload_asset: Asset hochladen
|
91
|
+
|
92
|
+
config:
|
93
|
+
assets:
|
94
|
+
additional_thumbnails: 'Weitere Voransichten'
|
95
|
+
content_types: 'Inhaltstypen'
|
96
|
+
create_image_thumbnails?: 'Bilder zeigen'
|
97
|
+
create_pdf_thumbnails?: 'PDF zeigen'
|
98
|
+
create_video_thumbnails?: 'Video zeigen'
|
99
|
+
display_size: 'Anzeigegröße'
|
100
|
+
insertion_size: 'Einfügegröße'
|
101
|
+
max_asset_size: 'Max Assetgröße'
|
102
|
+
path: 'Pfad'
|
103
|
+
s3:
|
104
|
+
bucket: 'Bucket'
|
105
|
+
key: 'Schlüssel'
|
106
|
+
secret: 'Secret'
|
107
|
+
skip_filetype_validation: 'Typerkennung überspringen?'
|
108
|
+
storage: 'Speicherung'
|
109
|
+
url: 'Url'
|
@@ -0,0 +1,110 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
assets: 'Assets'
|
4
|
+
asset_types:
|
5
|
+
all: 'All'
|
6
|
+
documents: 'Documents'
|
7
|
+
fonts: 'Fonts'
|
8
|
+
images: 'Images'
|
9
|
+
others: 'Others'
|
10
|
+
audios: 'Audio'
|
11
|
+
flashes: 'Flash'
|
12
|
+
fonts: 'Fonts'
|
13
|
+
videos: 'Video'
|
14
|
+
pdfs: 'PDFs'
|
15
|
+
swfs: 'Flash'
|
16
|
+
|
17
|
+
activerecord:
|
18
|
+
errors:
|
19
|
+
models:
|
20
|
+
asset:
|
21
|
+
attributes:
|
22
|
+
asset:
|
23
|
+
blank: 'You must choose a file to upload!'
|
24
|
+
|
25
|
+
clipped_extension:
|
26
|
+
actions: Actions
|
27
|
+
all: 'All'
|
28
|
+
all_thumbnails_refreshed: 'All asset thumbnails refreshed.'
|
29
|
+
alt_text_or_title: 'Set Asset Title <span class="hint">(optional)</span>'
|
30
|
+
asset: 'Asset'
|
31
|
+
asset_edit_title: 'Edit Asset'
|
32
|
+
asset_errors: 'Sorry. {{errors}}'
|
33
|
+
asset_page_attachment_note: 'Attached assets. These can be inserted with drag and drop or shown with the <code><r:assets:each /></code> tag.'
|
34
|
+
asset_note: 'Attached assets. '
|
35
|
+
assets: 'Assets'
|
36
|
+
assets_explanation: 'Assets and images can be uploaded and then attached or inserted into pages, snippets and layouts. Click on a asset name above to edit it or click <code>Remove</code> to delete it.'
|
37
|
+
assets_title: 'Assets'
|
38
|
+
asset_page_upload_note: 'Assets uploaded here will be automatically associated with this page.'
|
39
|
+
asset_upload_note: 'Choose an asset to upload here. If the <code>Title</code> field is left blank, the filename (without the file type) will be automatically added. By clicking on <code>More</code>, you can add a caption as well.'
|
40
|
+
attached_assets: 'Attached Assets'
|
41
|
+
attach: 'Attach'
|
42
|
+
attach_asset: 'attach asset'
|
43
|
+
attach_assets: 'Attach assets'
|
44
|
+
attach_existing: 'Attach Existing Assets'
|
45
|
+
attach_to_page: 'Attach to page'
|
46
|
+
audio: 'Audio'
|
47
|
+
cancel_attachment: 'Unattach'
|
48
|
+
copy: 'Copy'
|
49
|
+
copy_alt: 'copy radius tag to clipboard'
|
50
|
+
choose_file: 'Choose File'
|
51
|
+
documents: 'Documents'
|
52
|
+
caption: 'Caption'
|
53
|
+
confirm_refresh_assets: 'Are you sure you want to regenerate every asset thumbnail? This is likely to take a long time and use a lot of server resources: <strong class="warning">the performance of your site is very likely to be affected</strong> and your browser may time out before the operation is complete. This is only recommended if your asset collection is small!'
|
54
|
+
confirm_remove_asset: 'Are you sure you want to <strong class="warning">permanently remove</strong> the following asset?'
|
55
|
+
confirm_remove_from_page: 'Are you sure you want to remove this assets from the page?'
|
56
|
+
delete_asset: 'Delete Asset'
|
57
|
+
detach: 'Detach'
|
58
|
+
edit: 'Edit'
|
59
|
+
edit_asset: 'Edit {{asset}}'
|
60
|
+
filename: 'Filename'
|
61
|
+
find_assets: 'Find Assets'
|
62
|
+
images: 'Images'
|
63
|
+
images_automatically_created: 'images are automatically created'
|
64
|
+
insert: 'Insert'
|
65
|
+
modify: 'Modify'
|
66
|
+
movies: 'Movies'
|
67
|
+
need_to_upload: 'Need to upload?'
|
68
|
+
new_asset: 'New Asset'
|
69
|
+
no_assets_found: 'There were no assets found'
|
70
|
+
no_assets: 'No Assets'
|
71
|
+
no_attached_assets: 'No assets attached.'
|
72
|
+
others: 'Others'
|
73
|
+
refresh_assets: 'Regenerate all thumbnails'
|
74
|
+
regenerate: 'Regenerate'
|
75
|
+
regenerate_thumbnails: 'Regenerate Thumbnails'
|
76
|
+
remove_asset: 'Remove Asset'
|
77
|
+
remove_from_page: 'Remove from page'
|
78
|
+
reorder: 'Reorder'
|
79
|
+
remove: 'Remove'
|
80
|
+
refresh_assets_rake_task: 'For better results please log into your server and run <code>rake paperclip:refresh class=Asset</code>.'
|
81
|
+
replace_file: 'Replace File'
|
82
|
+
save_and_upload: 'Save and Upload'
|
83
|
+
search_assets: 'Search for assets'
|
84
|
+
search: 'Search'
|
85
|
+
select: 'Select'
|
86
|
+
thumbnails_refreshed: "Thumbnails refreshed."
|
87
|
+
title: 'Title'
|
88
|
+
type: 'Type'
|
89
|
+
types_to_find: 'Types to find'
|
90
|
+
upload: 'Upload'
|
91
|
+
upload_asset: 'Upload Asset'
|
92
|
+
|
93
|
+
trusty_config:
|
94
|
+
assets:
|
95
|
+
additional_thumbnails: 'Additional Thumbnails'
|
96
|
+
content_types: 'Content Types'
|
97
|
+
create_image_thumbnails?: 'Image thumbnails'
|
98
|
+
create_pdf_thumbnails?: 'PDF thumbnails'
|
99
|
+
create_video_thumbnails?: 'Video thumbnails'
|
100
|
+
display_size: 'Display Size'
|
101
|
+
insertion_size: 'Insertion Size'
|
102
|
+
max_asset_size: 'Max Asset Size'
|
103
|
+
path: 'Path'
|
104
|
+
s3:
|
105
|
+
bucket: 'Bucket'
|
106
|
+
key: 'Key'
|
107
|
+
secret: 'Secret'
|
108
|
+
skip_filetype_validation: 'Skip Filetype Validation'
|
109
|
+
storage: 'Storage'
|
110
|
+
url: 'Url'
|