Sha256: 6303f0045dcf3ee505601ac644f66ad23ce0edfcb0cfc89d323703ad492fed94

Contents?: true

Size: 1.06 KB

Versions: 37

Compression:

Stored size: 1.06 KB

Contents

Feature: TableRow liquid tags
  As a designer
  I want to be able to use the tablerow liquid tag with locomotive contents

Background:
  Given I have the site: "test site" set up
  And I have a custom model named "Projects" with
    | label         | type      | required  |
    | Name          | string    | true      |
  And I have entries for "Projects" with
    | name        | _position |
    | Project 1   | 1         |
    | Project 2   | 2         |
    | Project 3   | 3         |

Scenario: Use the tablerow tag
  Given a page named "project-table" with the template:
    """
    <h1>Projects</h1>
    <table>
    {% tablerow project in contents.projects cols: 2 %}
    {{ project.name }}
    {% endtablerow %}
    </table>
    """
  When I view the rendered page at "/project-table"
  Then the rendered output should look like:
    """
    <h1>Projects</h1>
    <table>
    <tr class="row1">
    <td class="col1">
    Project 1
    </td><td class="col2">
    Project 2
    </td></tr>
    <tr class="row2"><td class="col1">
    Project 3
    </td></tr>

    </table>
    """

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.rc3 features/public/tablerow.feature
locomotivecms-3.0.0.rc2 features/public/tablerow.feature
locomotivecms-3.0.0.rc1 features/public/tablerow.feature
locomotivecms-3.0.0.pre.beta.1 features/public/tablerow.feature
locomotivecms-3.0.0.pre.alpha.3 features/public/tablerow.feature
locomotive_cms-2.5.7 features/public/tablerow.feature
locomotivecms-3.0.0.pre.alpha.2 features/public/tablerow.feature
locomotivecms-3.0.0.pre.alpha features/public/tablerow.feature
locomotive_cms-2.5.6 features/public/tablerow.feature
locomotive_cms-2.5.6.rc2 features/public/tablerow.feature
locomotive_cms-2.5.6.rc1 features/public/tablerow.feature
locomotive_cms-2.5.5 features/public/tablerow.feature
locomotive_cms-2.5.4 features/public/tablerow.feature
locomotive_cms-2.5.3 features/public/tablerow.feature
locomotive_cms-2.5.2 features/public/tablerow.feature
locomotive_cms-2.5.1 features/public/tablerow.feature
locomotive_cms-2.5.0 features/public/tablerow.feature
locomotive_cms-2.5.0.rc3 features/public/tablerow.feature
locomotive_cms-2.5.0.rc2 features/public/tablerow.feature
locomotive_cms-2.5.0.rc1 features/public/tablerow.feature