diff --git a/app/views/layers/index.html.haml b/app/views/layers/index.html.haml index e8c4cd43..470a5302 100644 --- a/app/views/layers/index.html.haml +++ b/app/views/layers/index.html.haml @@ -57,7 +57,10 @@ %circle{cx:"15",cy:"15",r:"15",fill:"#{layer.color}"} = link_to map_layer_url(layer.map,layer) do = layer.title - (#{layer.places.count}) + - if layer.ltype == 'geojson' + %small (GeoJSON) + - else + %small (#{layer.places.count}) - if layer.published %i.fi-eye.fi-24{title: 'Layer is published'} - else diff --git a/app/views/layers/show.html.haml b/app/views/layers/show.html.haml index dc691f70..27d74090 100644 --- a/app/views/layers/show.html.haml +++ b/app/views/layers/show.html.haml @@ -29,7 +29,7 @@ =simple_form_for :navselector, url: '', html: { method: :get } do |f| - = f.input :id, :collection => @map_layers.map { |l| ["#{l.title} (#{l.places.count})", "/maps/#{@map.id}/layers/#{l.id}", :class => "layer-#{l.id} input-group-field"] }, :label => false, :selected => "/maps/#{@map.id}/layers/#{@layer.id}", :include_blank => 'All layers', input_html: {:class => 'nav-selector', :data => { :map => @map.id}} + = f.input :id, :collection => @map_layers.map { |l| ["#{l.title} (#{l.ltype == 'geojson' ? 'GeoJSON' : l.places.count})", "/maps/#{@map.id}/layers/#{l.id}", :class => "layer-#{l.id} input-group-field"] }, :label => false, :selected => "/maps/#{@map.id}/layers/#{@layer.id}", :include_blank => 'All layers', input_html: {:class => 'nav-selector', :data => { :map => @map.id}} .input-group-button = link_to edit_map_layer_path(@map,@layer), :class => 'button secondary', :title => 'Edit this layer' do diff --git a/app/views/maps/show.html.haml b/app/views/maps/show.html.haml index 946d74fa..3c54153e 100644 --- a/app/views/maps/show.html.haml +++ b/app/views/maps/show.html.haml @@ -59,7 +59,7 @@ .input-group-label = link_to map_layers_path(@map), :title => "Show all layers of this map" do - = f.input "id", :collection => @map_layers.map { |l| ["#{l.title} (#{l.places.count})", "/maps/#{@map.id}/layers/#{l.id}", :class => "layer-#{l.id} input-group-field"] }, :label => false, :include_blank => 'Select a layer...', input_html: {:class => 'nav-selector'} + = f.input "id", :collection => @map_layers.map { |l| ["#{l.title} (#{l.ltype == 'geojson' ? 'GeoJSON' : l.places.count})", "/maps/#{@map.id}/layers/#{l.id}", :class => "layer-#{l.id} input-group-field"] }, :label => false, :include_blank => 'Select a layer...', input_html: {:class => 'nav-selector'} .input-group-button = link_to new_map_layer_path(@map), :class => 'button secondary', :title => 'Create new layer' do %i.fi-plus.fi-24