<% query = @easy_page_modules_data[block_name][:query] %>

  <% if query %>


        <%= render :partial => 'common/charts/gauge_meter', :locals => {:modul_uniq_id => modul_uniq_id.underscore,
          :chart_label => settings['name'], :value => @easy_page_modules_data[block_name][:value], :max_value => @easy_page_modules_data[block_name][:max_value]} %>


        <div class="text-center">
          <span class="entity-array">
            <% settings['tags'] && settings['tags'].each do |tag_idx, tag_options|  %>
              <%= link_to tag_options['name'], update_my_page_module_view_path(page_module.uuid, :project_id => @project, page_module.module_name => {:current_tag => tag_idx}), :remote => true %>
            <% end %>
          </span>
          <p>
            <%= l('easy_page_module.generic_gauge.label_total_made') %>:
            <%= link_to format_number(@easy_page_modules_data[block_name][:value]), begin; query.path; rescue; nil end, :target => '_blank' %> |
            <%= l('easy_page_module.generic_gauge.label_plan') %>: <%= format_number(@easy_page_modules_data[block_name][:max_value]) %>
          </p>
        </div>


  <% else %>
    <%= l(:label_easy_page_module_settings_missing) %>
  <% end %>
