small typo in the index page of the content types + merge Gemfile as well as the gemspec
This commit is contained in:
commit
49c451ea54
@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/assets'
|
= render 'admin/shared/menu/assets'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/assets'
|
||||||
|
|
||||||
%p!= t('.help')
|
%p!= t('.help')
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/assets'
|
= render 'admin/shared/menu/assets'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/assets'
|
||||||
|
|
||||||
%p!= t('.help')
|
%p!= t('.help')
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/assets'
|
= render 'admin/shared/menu/assets'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/assets'
|
||||||
|
|
||||||
%p!= t('.help')
|
%p!= t('.help')
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/assets'
|
= render 'admin/shared/menu/assets'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/assets'
|
||||||
|
|
||||||
- content_for :buttons do
|
- content_for :buttons do
|
||||||
= admin_button_tag t('admin.asset_collections.edit.add_asset'), new_admin_asset_url(@asset_collection), :class => 'new'
|
= admin_button_tag t('admin.asset_collections.edit.add_asset'), new_admin_asset_url(@asset_collection), :class => 'new'
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/assets'
|
= render 'admin/shared/menu/assets'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/assets'
|
||||||
|
|
||||||
%p!= t('.help')
|
%p!= t('.help')
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
- content_for :buttons do
|
- content_for :buttons do
|
||||||
= admin_button_tag :show_items, admin_contents_url(@content_type.slug), :class => 'show'
|
= admin_button_tag :show_items, admin_contents_url(@content_type.slug), :class => 'show'
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
%p!= t('.help')
|
%p!= t('.help')
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
- title t('.title', :type => @content_type.name.capitalize)
|
- title t('.title', :type => @content_type.name.capitalize)
|
||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
- content_for :buttons do
|
- content_for :buttons do
|
||||||
= admin_button_tag t('admin.contents.index.edit'), edit_admin_content_type_url(@content_type), :class => 'edit'
|
= admin_button_tag t('admin.contents.index.edit'), edit_admin_content_type_url(@content_type), :class => 'edit'
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
- content_for :head do
|
- content_for :head do
|
||||||
= include_javascripts :contents
|
= include_javascripts :contents
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
- content_for :buttons do
|
- content_for :buttons do
|
||||||
= admin_button_tag t('admin.contents.index.edit'), edit_admin_content_type_url(@content_type), :class => 'edit'
|
= admin_button_tag t('admin.contents.index.edit'), edit_admin_content_type_url(@content_type), :class => 'edit'
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
- ordered_custom_fields = form.object.send(:"ordered_#{collection_name}")
|
- ordered_custom_fields = form.object.send(:"ordered_#{collection_name}")
|
||||||
- field_klass = "#{form.object.class.name}#{collection_name.classify}".gsub(/CustomField$/, 'Field').constantize
|
- field_klass = "#{form.object.class.name}#{collection_name.classify}".gsub(/CustomField$/, 'Field').constantize
|
||||||
|
|
||||||
= form.foldable_inputs :name => :custom_fields, :class => 'editable-list fields' do
|
= form.foldable_inputs :name => defined?(form_name) ? form_name : :custom_fields, :class => 'editable-list fields' do
|
||||||
|
|
||||||
%script{ :type => 'text/x-mustache-template', :name => 'template', :'data-base-input-name' => "#{form.object.class.name.underscore}[#{collection_name}_attributes]" }
|
%script{ :type => 'text/x-mustache-template', :name => 'template', :'data-base-input-name' => "#{form.object.class.name.underscore}[#{collection_name}_attributes]" }
|
||||||
%li{ :class => "item {{behaviour_flag}} {{new_record_flag}} {{errors_flag}} {{required_flag}}" }
|
%li{ :class => "item {{behaviour_flag}} {{new_record_flag}} {{errors_flag}} {{required_flag}}" }
|
||||||
|
@ -11,7 +11,12 @@
|
|||||||
= render 'admin/shared/menu'
|
= render 'admin/shared/menu'
|
||||||
|
|
||||||
#submenu
|
#submenu
|
||||||
= yield :submenu
|
%ul
|
||||||
|
= yield :submenu
|
||||||
|
|
||||||
|
- if content_for? :actions
|
||||||
|
.action
|
||||||
|
= yield :actions
|
||||||
|
|
||||||
#content
|
#content
|
||||||
.inner
|
.inner
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
- content_for :buttons do
|
- content_for :buttons do
|
||||||
= admin_button_tag :show, "/#{@page.fullpath}", :class => 'show'
|
= admin_button_tag :show, "/#{@page.fullpath}", :class => 'show'
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
- content_for :buttons do
|
- content_for :buttons do
|
||||||
= admin_button_tag :new, new_admin_page_url, :class => 'new'
|
= admin_button_tag :new, new_admin_page_url, :class => 'new'
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
- content_for :submenu do
|
- content_for :submenu do
|
||||||
= render 'admin/shared/menu/contents'
|
= render 'admin/shared/menu/contents'
|
||||||
|
|
||||||
|
- content_for :actions do
|
||||||
|
= render 'admin/shared/actions/contents'
|
||||||
|
|
||||||
%p!= t('.help')
|
%p!= t('.help')
|
||||||
|
|
||||||
|
1
app/views/admin/shared/actions/_assets.html.haml
Normal file
1
app/views/admin/shared/actions/_assets.html.haml
Normal file
@ -0,0 +1 @@
|
|||||||
|
= link_to content_tag(:span, t('admin.asset_collections.index.new')), new_admin_asset_collection_url
|
1
app/views/admin/shared/actions/_contents.html.haml
Normal file
1
app/views/admin/shared/actions/_contents.html.haml
Normal file
@ -0,0 +1 @@
|
|||||||
|
= link_to content_tag(:em) + content_tag(:span, t('admin.content_types.index.new')), new_admin_content_type_url
|
@ -1,7 +1,3 @@
|
|||||||
%ul
|
- @asset_collections.each do |c|
|
||||||
- @asset_collections.each do |c|
|
%li
|
||||||
%li
|
= link_to content_tag(:span, truncate(c.name, :length => 20)), edit_admin_asset_collection_url(c), :class => "#{'on' if @asset_collection.id == c.id}"
|
||||||
= link_to content_tag(:span, truncate(c.name, :length => 20)), edit_admin_asset_collection_url(c), :class => "#{'on' if @asset_collection.id == c.id}"
|
|
||||||
|
|
||||||
.action
|
|
||||||
= link_to content_tag(:span, t('admin.asset_collections.index.new')), new_admin_asset_collection_url
|
|
@ -1,32 +1,28 @@
|
|||||||
%ul
|
= admin_submenu_item 'pages', admin_pages_url do
|
||||||
= admin_submenu_item 'pages', admin_pages_url do
|
.header
|
||||||
.header
|
%p= link_to t('admin.pages.index.new'), new_admin_page_url
|
||||||
%p= link_to t('admin.pages.index.new'), new_admin_page_url
|
.inner
|
||||||
.inner
|
%h2!= t('admin.pages.index.lastest_items')
|
||||||
%h2!= t('admin.pages.index.lastest_items')
|
%ul
|
||||||
%ul
|
- current_site.pages.latest_updated.minimal_attributes.each do |page|
|
||||||
- current_site.pages.latest_updated.minimal_attributes.each do |page|
|
%li
|
||||||
%li
|
= link_to truncate(page.title, :length => 25), edit_admin_page_url(page)
|
||||||
= link_to truncate(page.title, :length => 25), edit_admin_page_url(page)
|
%span= time_ago_in_words(page.updated_at)
|
||||||
%span= time_ago_in_words(page.updated_at)
|
|
||||||
|
|
||||||
- each_content_type_menu_item do |content_type|
|
- each_content_type_menu_item do |content_type|
|
||||||
.header
|
.header
|
||||||
%p= link_to t('admin.contents.index.new'), new_admin_content_url(content_type.slug)
|
%p= link_to t('admin.contents.index.new'), new_admin_content_url(content_type.slug)
|
||||||
.inner
|
.inner
|
||||||
%h2!= t('admin.contents.index.lastest_items')
|
%h2!= t('admin.contents.index.lastest_items')
|
||||||
%ul
|
%ul
|
||||||
- content_type.contents.latest_updated.each do |content|
|
- content_type.contents.latest_updated.each do |content|
|
||||||
%li
|
%li
|
||||||
= link_to truncate(content.send(content_type.highlighted_field_name).to_s, :length => 20), edit_admin_content_path(content_type.slug, content)
|
= link_to truncate(content.send(content_type.highlighted_field_name).to_s, :length => 20), edit_admin_content_path(content_type.slug, content)
|
||||||
%span= time_ago_in_words(content.updated_at)
|
%span= time_ago_in_words(content.updated_at)
|
||||||
|
|
||||||
- other_content_types do |content_types|
|
- other_content_types do |content_types|
|
||||||
.inner
|
.inner
|
||||||
%ul.big-links
|
%ul.big-links
|
||||||
- content_types.each do |content_type|
|
- content_types.each do |content_type|
|
||||||
%li
|
%li
|
||||||
= link_to truncate(content_type.name, :length => 20), admin_contents_url(content_type.slug)
|
= link_to truncate(content_type.name, :length => 20), admin_contents_url(content_type.slug)
|
||||||
|
|
||||||
.action
|
|
||||||
= link_to content_tag(:em) + content_tag(:span, t('admin.content_types.index.new')), new_admin_content_type_url
|
|
@ -1,5 +1,4 @@
|
|||||||
%ul
|
= admin_submenu_item 'site', edit_admin_current_site_url
|
||||||
= admin_submenu_item 'site', edit_admin_current_site_url
|
/ = admin_submenu_item 'snippets', admin_snippets_url
|
||||||
/ = admin_submenu_item 'snippets', admin_snippets_url
|
= admin_submenu_item 'theme_assets', admin_theme_assets_url
|
||||||
= admin_submenu_item 'theme_assets', admin_theme_assets_url
|
= admin_submenu_item 'account', edit_admin_my_account_url
|
||||||
= admin_submenu_item 'account', edit_admin_my_account_url
|
|
@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|||||||
s.required_rubygems_version = ">= 1.3.6"
|
s.required_rubygems_version = ">= 1.3.6"
|
||||||
s.rubyforge_project = "nowarning"
|
s.rubyforge_project = "nowarning"
|
||||||
|
|
||||||
s.add_dependency "rails", ">= 3.0.5"
|
s.add_dependency "rails", ">= 3.0.6"
|
||||||
s.add_dependency "warden"
|
s.add_dependency "warden"
|
||||||
s.add_dependency "devise", "1.1.3"
|
s.add_dependency "devise", "1.1.3"
|
||||||
s.add_dependency "mongoid", "2.0.0.rc.7"
|
s.add_dependency "mongoid", "2.0.0.rc.7"
|
||||||
|
Loading…
Reference in New Issue
Block a user