~sirn/fanboi2

a0cd78552004ae852eb3f962f7bfb781575d2d87 — Kridsada Thanabulpong 4 years ago ef32200
Template and styling cleanups.

* Move board navigation button to the right in mobile.
* Remove duplicated API documentation.
2 files changed, 1 insertions(+), 52 deletions(-)

M assets/app/stylesheets/js.scss
M fanboi2/templates/api/_pages.mako
M assets/app/stylesheets/js.scss => assets/app/stylesheets/js.scss +1 -6
@@ 50,7 50,7 @@

    @include retina-background("burger", "png", $icon-width, $icon-height);
    height: $icon-height;
    left: $spacing-horizontal;
    right: $spacing-horizontal;
    position: absolute;
    text-indent: -10000em;
    top: 0;


@@ 62,11 62,6 @@
        height: $icon-height;
        width: $icon-width;
    }

    @media (min-width: $bound-tablet) {
        left: auto;
        right: $spacing-horizontal;
    }
}

.js-board-selector {

M fanboi2/templates/api/_pages.mako => fanboi2/templates/api/_pages.mako +0 -46
@@ 132,50 132,4 @@
            </div>
        </div>
    </div>
</div>

<div class="api-section" id="api-topic-posts-scoped">
    <div class="api-request">
        <div class="container">
            <h2 class="api-request-title">Retrieving posts associated to a topic with scope <span class="api-request-name">#api-topic-posts-scoped</span></h2>
            <div class="api-request-endpoint"><span class="api-request-verb verb-get">GET</span> ${formatters.unquoted_path(request, 'api_topic_posts_scoped', topic='{api-topic.id}', query='{query}')}</div>
            <div class="api-request-body">
                <p>Use this endpoint to scope posts with the given <em>queries</em>. The <em>query</em> could be one of the following:</p>
                <table class="api-table">
                    <thead class="api-table-header">
                        <tr class="api-table-row">
                            <th class="api-table-item title">Query</th>
                            <th class="api-table-item title">Description</th>
                        </tr>
                    </thead>
                    <tbody class="api-table-body">
                        <tr class="api-table-row">
                            <th class="api-table-item title">{n}</th>
                            <td class="api-table-item">Query a single post with <em>n</em> number.</td>
                        </tr>
                        <tr class="api-table-row">
                            <th class="api-table-item title">{n1}-{n2}</th>
                            <td class="api-table-item">Query posts from <em>n1</em> to <em>n2</em>. If <em>n1</em> or <em>n2</em> is not given, 0 and last post are assumed respectively.</td>
                        </tr>
                        <tr class="api-table-row">
                            <th class="api-table-item title">l{n}</th>
                            <td class="api-table-item">Query the last <em>n</em> posts, for example, <strong>l10</strong> will list the last 10 posts.</td>
                        </tr>
                        <tr class="api-table-row">
                            <th class="api-table-item title">recent</th>
                            <td class="api-table-item">Alias for <strong>l30</strong>.</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="api-response">
        <div class="container">
            <h3 class="api-response-title">Response</h3>
            <div class="api-response-body">
                <p>Same as <a href="#api-topic-posts">#api-topic-posts</a>.</p>
            </div>
        </div>
    </div>
</div>
\ No newline at end of file