Sha256: e2249cfac8fa605807ab33b2029a73903d80f5f6d7ce7d8b7afac3466b0457d7
Contents?: true
Size: 876 Bytes
Versions: 8
Compression:
Stored size: 876 Bytes
Contents
class @AntsRedirects constructor: (title='Redirects', apiPath='/admin') -> config = title: title showWithParent: true onViewShow: (view) -> if view.object view.$linkBtn =$ "<a href='#{ view.object.path_from }' class='link open' target='_blank'>Open</a>" view.$header.append view.$linkBtn arrayStore: new RailsArrayStore({ resource: 'redirect' path: "#{ apiPath }/redirects" sortBy: 'path_from' searchable: true }) formSchema: group: type: 'group' groupClass: 'group-panel' inputs: path_from: { type: 'string', label: 'From', placeholder: '/redirect-from-path', required: true } path_to: { type: 'url', label: 'To', placeholder: '/redirect-to-path', required: true } return config
Version data entries
8 entries across 8 versions & 1 rubygems