<commit_before>#{extends viewUtils.themeProperty('themeLayout') /}
#{set title: viewUtils.getKey('thing.story') + ': ' + story.name + ' - ' + viewUtils.getKey('thing.owner') + ': ' + browsedFullName /}
#{breadcrumbs /}

<h1 class="sep">${story.name}</h1>
<div class="row">
    <div class="g-12of12">
        <div class="media record">
            <img src='${views.context.package.thumbnailUrl(story.thumbnail_id, 350)}' width="350" alt="${story.name}" class="img"/>

            <a class="button clear" href="/${story.userName}/story/${story._id}/read">
                <span class="icon icon140"></span>
                <span class="label">&{'story.read'}</span>
            </a>

            <div class="bd">
                #{thingToolbar owner: story.userName, id: story._id, currentUser: userName, type:"story", labels:labels/}
                <div class="metadata">

                    #{metadataField label: viewUtils.getKey('thing.description'), data: story.description /}
                    #{metadataField label: viewUtils.getKey('thing.datecreated'), data: views.context.package.niceTime(story._id.getTime()) /}
                    #{metadataField label: viewUtils.getKey('thing.datemodified'), data: views.context.package.niceTime(story.TS_update) /}
                    #{metadataField label: viewUtils.getKey('thing.owner'), data: browsedUserName, link: '/'+browsedUserName /}
                            <h5>&{'thing.labels'}:</h5>
                            <p class="labels">
                                #{list labelsList, as: 'l'}
                                <span class="label">${l.name}</span><br/>
                                #{/list}
                            </p>
                    <!--Is this a draft: ${story.isDraft ? "Yes" : "No"}-->
                    <h5>&{'story.pages'}:</h5>
                    <ol>
                        #{list story.pages, as: 'page'}

                        <li>${page.title}</li>
                        <!--<li>${page.text}</li>-->
                        #{/list}
                    </ol>
                </div>

            </div>
        </div>
    </div>
</div><commit_msg>labels display for objects, collections and stories<commit_after>#{extends viewUtils.themeProperty('themeLayout') /}
#{set title: viewUtils.getKey('thing.story') + ': ' + story.name + ' - ' + viewUtils.getKey('thing.owner') + ': ' + browsedFullName /}
#{breadcrumbs /}

<h1 class="sep">${story.name}</h1>
<div class="row">
    <div class="g-12of12">
        <div class="media record">
            <img src='${views.context.package.thumbnailUrl(story.thumbnail_id, 350)}' width="350" alt="${story.name}" class="img"/>

            <a class="button clear" href="/${story.userName}/story/${story._id}/read">
                <span class="icon icon140"></span>
                <span class="label">&{'story.read'}</span>
            </a>

            <div class="bd">
                #{thingToolbar owner: story.userName, id: story._id, currentUser: userName, type:"story", labels:labels/}
                <div class="metadata">

                    #{metadataField label: viewUtils.getKey('thing.description'), data: story.description /}
                    #{metadataField label: viewUtils.getKey('thing.datecreated'), data: views.context.package.niceTime(story._id.getTime()) /}
                    #{metadataField label: viewUtils.getKey('thing.datemodified'), data: views.context.package.niceTime(story.TS_update) /}
                    #{metadataField label: viewUtils.getKey('thing.owner'), data: browsedUserName, link: '/'+browsedUserName /}
                    <h5>&{'thing.labels'}:</h5>
                    <p class="labels">
                        #{list labelsList, as: 'l'}
                        <span class="label">${l.name}</span><br/>
                        #{/list}
                    </p>
                    <!--Is this a draft: ${story.isDraft ? "Yes" : "No"}-->
                    <h5>&{'story.pages'}:</h5>
                    <ol>
                        #{list story.pages, as: 'page'}

                        <li>${page.title}</li>
                        <!--<li>${page.text}</li>-->
                        #{/list}
                    </ol>
                </div>

            </div>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.1792189679218968, 'fraction_numerical': 0.008833100883310088, 'mean_word_length': 1.7114051669817265, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3193003', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1212, 'n_words': 209}