Sha256: 4604ae5a779f1885c0c55ffbbc9dd95f561f4df5e766208deec4f91f0175d028

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

- response_headers = repo.headers

div.response-table[id="#{ctrl}.response"  style="--row-count: #{response_headers.length}"]

  - repo.map[ctrl][:actions].each do |action|
    // TODO: Nest table in this div for easier jq toggling
    // add borders to this div

    - if route = repo.action_route(ctrl, action)

      div.request-action-title = route

      - if rows = repo.load_template(ctrl, action)

        = render 'shared/table', model: ctrl, rows: rows, headers: response_headers, nesting: [], type: :response

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_api_documentation-0.2.3 app/views/rails_api_doc/api_docs/_response_api_table.slim