Sha256: a929ca24ca9a3f781b4baf9c9bee2a041f69150c85006e2dcb5cd75c6fdd0a5d

Contents?: true

Size: 1.99 KB

Versions: 24

Compression:

Stored size: 1.99 KB

Contents

<%# особым пользователям разрешает редактировать %>
<% if current_admin_user.present? %>
    //console.log("<js.erb>");

    var $btn_layer = $("<%= params[:div_css_selector] %>");
    var $html;

    $html = $('<a href="#" class="mapplic-update-json" title="Перегенировать locations.json"></a>');
    $btn_layer.append($html);

    $html = $('<a href="#" class="mapplic-edit-button"></a>');
    $btn_layer.append($html);

    $html = $('<a href="#" class="mapplic-remove-button mapplic-disabled" data-placement="right" data-toggle="tooltip" title="Удалить полигон"></a>');
    $btn_layer.prepend($html);

    $html = $('<a href="#" class="mapplic-new-button mapplic-disabled" data-placement="right" data-toggle="tooltip" title="Добавить полигон"></a>');
    $btn_layer.prepend($html);

    $html = $('<a href="#" class="mapplic-building-link-button" data-placement="right" data-toggle="tooltip" title="Назначить Здание"></a>');
    $btn_layer.prepend($html);

    $html = $('<a href="#" class="mapplic-save-button mapplic-disabled" data-placement="right" data-toggle="tooltip" title="Сохранить изменения"></a>');
    $btn_layer.prepend($html);

    $html = $('<a href="#" class="mapplic-area-link-button" data-placement="right" data-toggle="tooltip" title="Назначить Площадь"></a>');
    $btn_layer.prepend($html);

    $html = $('<a href="#" class="mapplic-floor-link-button" data-placement="right" data-toggle="tooltip" title="Назначить Этаж"></a>');
    $btn_layer.prepend($html);

    var $status_layer = $('.status_bar');
    $html = $("<%= j render 'c80_map_floors/ajax/shared/map_creating' %>");
    $status_layer.append($html);

    $html = $("<%= j render 'c80_map_floors/ajax/shared/map_editing' %>");
    $status_layer.append($html);

    $html = $("<%= j render 'c80_map_floors/ajax/shared/map_removing' %>");
    $status_layer.append($html);

    IS_ADMIN = true;

<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
c80_map_floors-0.2.2 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.1 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.8 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.7 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.6 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.5 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.4 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.3 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.2 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.1 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.2.0.0 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.25 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.24 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.23 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.22 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.21 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.20 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.19 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.18 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb
c80_map_floors-0.1.0.17 app/views/c80_map_floors/ajax/map_edit_buttons.js.erb