polish again the content_locale picker
This commit is contained in:
parent
d191d2d783
commit
50a2453995
@ -12,6 +12,8 @@ class Locomotive.Views.ContentTypes.FormView extends Locomotive.Views.Shared.For
|
||||
initialize: ->
|
||||
@model = new Locomotive.Models.ContentType(@options.content_type)
|
||||
|
||||
window.foo = @model
|
||||
|
||||
Backbone.ModelBinding.bind @
|
||||
|
||||
render: ->
|
||||
|
@ -5,12 +5,8 @@
|
||||
@mixin picker {
|
||||
|
||||
position: absolute;
|
||||
// top: 97px;
|
||||
|
||||
// margin: 5px 0 0 0;
|
||||
padding: 0 0 0 0;
|
||||
// min-width: 160px;
|
||||
// z-index: 999;
|
||||
|
||||
@include border-radius(4px);
|
||||
border: 1px solid #000;
|
||||
|
@ -35,9 +35,6 @@
|
||||
span.text {
|
||||
position: relative;
|
||||
|
||||
// position: relative;
|
||||
// top: -6px;
|
||||
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
text-shadow: 1px 1px 1px #000;
|
||||
|
@ -4,8 +4,6 @@ class Locomotive::ContentLocalePickerCell < Cell::Base
|
||||
site = args[:site]
|
||||
locale = args[:locale].to_s
|
||||
|
||||
logger.debug "site.locales = #{site.locales.inspect} / #{site.locales.size}"
|
||||
|
||||
if site.locales.empty? || site.locales.size < 2
|
||||
''
|
||||
else
|
||||
|
2
doc/TODO
2
doc/TODO
@ -75,6 +75,8 @@ x edit my site
|
||||
- remove inline-editor tag
|
||||
- rack
|
||||
- iframe
|
||||
- bugs:
|
||||
- unable to toggle the "required" check_boxes for content types
|
||||
|
||||
- disallow to click twice on the submit form button (spinner ?)
|
||||
- message to notify people if their browser is too old
|
||||
|
@ -17,8 +17,6 @@ module Locomotive
|
||||
end
|
||||
|
||||
def set_current_content_locale
|
||||
# I18n.default_site_locale = current_site.default_locale
|
||||
|
||||
if params[:content_locale].present?
|
||||
session[:content_locale] = params[:content_locale]
|
||||
end
|
||||
|
@ -1,6 +1,6 @@
|
||||
Rails.application.routes.draw do
|
||||
|
||||
mount Locomotive::Engine => '/locomotive'
|
||||
mount Locomotive::Engine => '/locomotive', :as => 'locomotive'
|
||||
|
||||
match '/foo' => 'foo#index', :as => 'foo'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user