Sha256: d62dc8ff40d4b1eee32c1f98939720f43751a0768932c2fecb9d3c09ea4e6fec

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

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);
    },

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

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

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

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

    order_admin_elements_path: '<%= alchemy.order_admin_elements_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

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/partials/_routes.html.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/partials/_routes.html.erb