add the missing index view for theme assets + update the 2 locomotive.rb files (generator + default)
This commit is contained in:
parent
68e1a543bf
commit
abcc61a8e6
50
app/views/admin/theme_assets/index.html.haml
Normal file
50
app/views/admin/theme_assets/index.html.haml
Normal file
@ -0,0 +1,50 @@
|
||||
- title t('.title')
|
||||
|
||||
- content_for :submenu do
|
||||
= render 'admin/shared/menu/settings'
|
||||
|
||||
- content_for :buttons do
|
||||
= admin_button_tag t('admin.theme_assets.index.all'), all_admin_theme_assets_url, :class => 'show'
|
||||
= admin_button_tag t('admin.snippets.index.new'), new_admin_snippet_url, :class => 'new'
|
||||
= admin_button_tag :new, new_admin_theme_asset_url, :class => 'new'
|
||||
|
||||
%p!= t('.help')
|
||||
|
||||
%h3!= t('.snippets')
|
||||
- if @snippets.empty?
|
||||
%p.no-items!= t('admin.snippets.index.no_items', :url => new_admin_snippet_url)
|
||||
- else
|
||||
%ul.list.theme-assets
|
||||
= render @snippets
|
||||
|
||||
%br
|
||||
|
||||
%h3!= t('.css_and_js')
|
||||
- if @js_and_css_assets.empty?
|
||||
%p.no-items!= t('.no_items', :url => new_admin_theme_asset_url)
|
||||
- else
|
||||
%ul.list.theme-assets
|
||||
= render :partial => 'asset', :collection => @js_and_css_assets
|
||||
|
||||
%br
|
||||
|
||||
%h3!= t('.images')
|
||||
- if @assets[:images].nil?
|
||||
%p.no-items!= t('.no_items', :url => new_admin_theme_asset_url)
|
||||
- else
|
||||
%ul.list.theme-assets
|
||||
= render :partial => 'asset', :collection => @assets[:images]
|
||||
|
||||
- if @assets[:fonts]
|
||||
%br
|
||||
|
||||
%h3!= t('.fonts')
|
||||
%ul.list.theme-assets
|
||||
= render :partial => 'asset', :collection => @assets[:fonts]
|
||||
|
||||
- if @assets[:medias]
|
||||
%br
|
||||
|
||||
%h3!= t('.medias')
|
||||
%ul.list.theme-assets
|
||||
= render :partial => 'asset', :collection => @assets[:medias]
|
@ -10,7 +10,7 @@ Locomotive.configure do |config|
|
||||
# during the installation wizzard.
|
||||
# Ex:
|
||||
# config.default_domain = Rails.env.production? ? 'heroku.com' : 'example.com'
|
||||
config.default_domain = 'getbenga.dev'
|
||||
config.default_domain = 'example.com'
|
||||
|
||||
# configure how many items we display in sub menu in the "Contents" section.
|
||||
config.lastest_items_nb = 5
|
||||
|
@ -171,7 +171,7 @@ de:
|
||||
css_and_js: Style und Javascript
|
||||
fonts: Fonts
|
||||
images: Bilder
|
||||
media: Medien
|
||||
medias: Medien
|
||||
no_items: "Momentan gibt es keine Dateien. Klicke einfach <a href='%{url}'>hier</a>, um die erste Datei zu erstellen."
|
||||
asset:
|
||||
updated_at: Aktualisiert am
|
||||
|
@ -35,7 +35,7 @@ Locomotive.configure do |config|
|
||||
# If you do not mind about importing theme without DelayedJob, disable it.
|
||||
config.delayed_job = false
|
||||
|
||||
# default locale (for now, only en, fr and pt-BR are supported)
|
||||
# default locale (for now, only en, de, fr and pt-BR are supported)
|
||||
config.default_locale = :en
|
||||
|
||||
# Configure the e-mail address which will be shown in the DeviseMailer, NotificationMailer, ...etc
|
||||
|
Loading…
Reference in New Issue
Block a user