Sha256: d6a2c7b1109a444751d8ff36fc8dbb1fcbc4b108d2aff0031a9ba78c840b1627

Contents?: true

Size: 788 Bytes

Versions: 6

Compression:

Stored size: 788 Bytes

Contents

<script>
  Alchemy.routes = {

    admin_picture_path: function(id) {
      return '<%= alchemy.admin_picture_path(id: 1) %>'.replace(/1/, id);
    },

    admin_trash_path: function(page_id) {
      var url = '<%= alchemy.admin_trash_path %>';
      if (page_id) url += '?page_id=' + page_id;
      return url;
    },

    fold_admin_element_path: function(id) {
      return '<%= alchemy.fold_admin_element_path(id: 1) %>'.replace(/1/, id);
    },

    order_admin_elements_path: '<%= alchemy.order_admin_elements_path %>',
    order_admin_pages_path: '<%= alchemy.order_admin_pages_path %>',
    link_admin_pages_path: '<%= alchemy.link_admin_pages_path %>',
    api_pages_path: '<%= alchemy.api_pages_path %>',
    api_elements_path: '<%= alchemy.api_elements_path %>'
  };
</script>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-4.4.5 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-4.4.4 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-4.4.3 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-4.4.2 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-4.4.1 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-4.4.0 app/views/alchemy/admin/partials/_routes.html.erb