Sha256: 686b62216758b643bf6bb080be8a365491cce4ae29bf3ca43b6bdaaa8ac16a6a

Contents?: true

Size: 1.45 KB

Versions: 12

Compression:

Stored size: 1.45 KB

Contents

    <script type="text/javascript">
        var requestState = {
            <% if user_signed_in? %>
            user: {
                login: '<%= current_user.login %>',
                email: '<%= current_user.email %>'
            },
            roles: <%= raw @current_roles.to_json %>,
            <% end %>
            mainRequestedTopic: '<%= @topic_name %>',
            <% if @back_topic_name.nil? %>
            backRequestedTopic: null,
            <% else %>
            backRequestedTopic: '<%= @back_topic_name %>',
            <% end %>
            overRequestedTopic: <%=raw @over_topic_name %>,
            mainDefaultTopic: '<%= @main_default_topic %>',
            backDefaultTopic: null,
            offlayers: <%= raw @offlayers.to_json %>,
            scaleDenominator: <%= @scale %>,
            mapPos: [<%= @x %>, <%= @y %>],
            <% if @selection_valid %>
            selection: {
                seltopic: '<%= @seltopic %>',
                sellayer: '<%= @sellayer %>',
                selproperty: '<%= @selproperty %>',
                selvalues: <%= raw @selvalues.to_json %>,
                selbbox: <%= raw @selbbox.to_json %>
            },
            <% else %>
            selection: null,
            <% end %>
            filter: {
                    filtertopic: '',
                    filterlayer: '',
                    filtersql: ''
            },
            redlining: <%= raw @redlining.to_json %>
        };
    </script>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gb_mapfish_appserver-2.0.0 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.1.1 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.1.0 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.6 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.5 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.4 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.3 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.2 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.1 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-1.0.0 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-0.9.7 app/views/apps/_request_state.html.erb
gb_mapfish_appserver-0.9.6 app/views/apps/_request_state.html.erb