COM-FSM
Template:MindTouch > Reports > Controls > TableCellPage

TableCellPage

Page last modified 14:15, 31 Oct 2010 by Admin
    Table of contents
    No headers
    /**
     * Table Cell: Page detail
     * Outputs page related information
     */
    var pageId = $id;
    var class = $class;
    var cellPage = $page ?? wiki.getpage(num.cast(pageId));
    
    <td class=("page-detail " .. class)>
        <div class="details">
        <a href=(cellPage.uri)>cellPage.title</a>;
        var parentPath = cellPage.parent.path;
        if (parentPath) {
            <span class="in">
                " " .. wiki.localize("MindTouch.Reports.data.title.in") .. " ";
                <a href=(cellPage.parent.uri)>parentPath</a>;
            </span>
        }
        </div>
    
        var tags = cellPage.tags;
        if (#tags > 0) {
        <div class="tags">
            <span>wiki.localize("MindTouch.Reports.data.title.tags")</span>
            <ul>
                foreach (var tag in tags) {
                    if (__count > 2) {
                        break;
                    }
                    <li><a href=("Special:Tags?tag=" .. tag.name)>tag.name</a></li>
                }
            </ul>
        </div>
        }
    </td>
    
    Powered by MindTouch Core