Sha256: 3bc1e80c4e1a55a317f7aca1d289841f5c60470fbd25606d0bad5477dbb371f7

Contents?: true

Size: 1.46 KB

Versions: 27

Compression:

Stored size: 1.46 KB

Contents

<%= render :partial => Topic.query_header if Topic.query_header %>
<% @query_topics.each do |query_topic| %>
  <% @topic = query_topic['topicobj'] %>
  <% @results = query_topic['results'] %>
  <div class="<%= query_topic['divCls'] %>">
    <%= render :partial => @topic.info_header if (!@topic.nil? && @topic.info_header) %>
    <%# info coord %>
    <% for layer_result in @results do %>
      <% layer, features, bbox = layer_result %>
      <% begin %>
        <% if features.is_a?(String) %>
          <%= raw features unless Rails.env.production? %> <%# Debug error message %>
        <% elsif features.count > 0 && !layer.info.nil? %>
          <div class="infopart">
          <div class="layer"><%= layer.title %></div>
          <%= render :partial => layer.info, :as => :info, :locals => { :layer => layer, :features => features, :bbox => bbox } %>
          <%= render :partial => layer.legend, :as => :legend unless layer.legend.nil? %>
          </div>
        <% end %>
      <% rescue Exception => e %>
        <% unless Rails.env.production? %>
        <h2>Fehler:</h2>
        <% if layer.info.nil? %>
          <p>Partial '<%= layer.info_file %>' not found</p>
        <% end %>
        <% if layer.legend.nil? %>
          <p>Partial '<%= layer.legend_file %>' not found</p>
        <% end %>
        <%= debug features %>
        <%= debug e %>
        <%= debug logger.error e.backtrace.join("\n") %>
        <% end %>
      <% end %>
    <% end %>
  </div>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
gb_mapfish_appserver-2.0.0 app/views/topics/query.html.erb
gb_mapfish_appserver-1.1.1 app/views/topics/query.html.erb
gb_mapfish_appserver-1.1.0 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.6 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.5 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.4 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.3 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.2 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.1 app/views/topics/query.html.erb
gb_mapfish_appserver-1.0.0 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.7 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.6 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.5 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.4 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.3 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.2 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.1 app/views/topics/query.html.erb
gb_mapfish_appserver-0.9.0 app/views/topics/query.html.erb
gb_mapfish_appserver-0.8.7 app/views/topics/query.html.erb
gb_mapfish_appserver-0.8.6 app/views/topics/query.html.erb