<commit_before><!-- CSS -->
<link rel="stylesheet" type="text/css" href="/devwidgets/createcontent/css/createcontent.css" />

<div class="createcontent_widget">
    <div class="fl-widget-content s3d-widget-content">
       <!-- MAIN createcontent -->
        <div class="createcontent_main createcontent_background">
            <div class="createcontent_add_container">
                <button class="s3d-button s3d-button-link-2-state add_createcontent_button" type="button"><span class="s3d-button-inner s3d-button-link-2-state-inner">__MSG__ADD_CONTENT__</span></button>
                <span>__MSG__ADD_CONTENT_TO_LIBRARY__</span>
            </div>
            <div class="createcontent_item"></div>
            <div id="createcontent_item_template"><!--
            <span class="s3d-bold createcontent_title">__MSG__MY_RECENT_CONTENT__</span>
            {for item in items}
                <div class="createcontent_item_img fl-force-left">
                    {var mimeType = sakai.api.Content.getMimeType(item)}
                    {var thumbnail = sakai.api.Content.getThumbnail(item)}
                    <a href="/content#content_path=/p/${item['jcr:name']}" title="${item.name}">
                        {if thumbnail}
                            {var mimeTypeDescription = sakai.config.MimeTypes[mimeType].description}
                            <img class="s3d-icon-32" src="${thumbnail} alt="${mimeTypeDescription}" />
                        {elseif (mimeType.substring(0,6)=="image/")}
                            {var mimeTypeDescription = sakai.config.MimeTypes[mimeType].description}
                            <img class="s3d-icon-32" src="${item.path}" alt="${mimeTypeDescription}" />
                        {elseif sakai.config.MimeTypes[mimeType]}
                            {var mimeTypeDescription = sakai.config.MimeTypes[mimeType].description}
                            <img class="s3d-icon-32" src="${sakai.config.MimeTypes[mimeType].URL}" alt="${mimeTypeDescription}" />
                        {else}
                            {var mimeTypeDescription = sakai.config.MimeTypes["other"].description}
                            <img class="s3d-icon-32" src="${sakai.config.MimeTypes["other"].URL}" alt="${mimeTypeDescription}" />
                        {/if}
                    </a>
                </div>
                <div class="createcontent_item_info">
                    <p class="createcontent_item_title">
                        <a class="createcontent_item_link s3d-widget-links s3d-bold" href="/content#content_path=${item.path}" title="${item.name}">
                            ${item.nameShort}
                        </a>
                    </p>
                    <p class="createcontent_item_meta">${item.type} </p>
                    <p class="createcontent_item_meta">__MSG__USED_IN__ ${item.usedin}{if item.usedin === 1} __MSG__PLACE__{else} __MSG__PLACES__{/if}</p>
                    <p class="createcontent_item_meta">${item.totalcomment}{if item.totalcomment === 1} __MSG__COMMENT__{else} __MSG__COMMENTS__{/if}</p>
                </div>

                {if item.comment}
                <div class="createcontent_item_related_info">
                    <p class="createcontent_item_meta_data">__MSG__LAST_COMMENT_FOR__ <span class="s3d-bold">${item.nameShorter}</span></p>
                    <div class="fl-force-left">
                        <span id="createcontent_item_comment_author_picture" style="display:none;">
                            <img class="s3d-icon-32" src="/dev/images/accept.png" />
                        </span>
                        <div class="createcontent_item_comment_arrow"></div>
                    </div>
                    <div class="createcontent_comment_background">
                        <div id="createcontent_item_comment_author"></div>
                        <p> ${item.comment.comment}</p>
                    </div>
                </div>
                <div class="createcontent_item_border"></div>
                {/if}

                {if item.relatedContent}
                <div class="createcontent_item_related_info">
                    <p class="createcontent_item_meta_data">__MSG__RELATED_CONTENT_TO__ <span class="s3d-bold">${item.relatedContent.nameShorter}</span></p>
                    <div class="fl-force-left">
                    <a href="/content#content_path=/p/${item.relatedContent['jcr:name']}" title="${item.relatedContent.name}">
                        <span><commit_msg>SAKIII-2888 work on createcontent widget<commit_after><!-- CSS -->
<link rel="stylesheet" type="text/css" href="/devwidgets/createcontent/css/createcontent.css" />

<div class="createcontent_widget">
    <div class="fl-widget-content s3d-widget-content">
       <!-- MAIN createcontent -->
        <div class="createcontent_main createcontent_background">
            <div class="createcontent_add_container">
                <button class="s3d-button s3d-button-link-2-state add_createcontent_button" type="button"><span class="s3d-button-inner s3d-button-link-2-state-inner">__MSG__ADD_CONTENT__</span></button>
                <span>__MSG__ADD_CONTENT_TO_LIBRARY__</span>
            </div>
            <div class="createcontent_item"></div>
            <div id="createcontent_item_template"><!--
            <span class="s3d-bold createcontent_title">__MSG__MY_RECENT_CONTENT__</span>
            {for item in items}
                <div class="createcontent_item_img fl-force-left">
                    {var mimeType = sakai.api.Content.getMimeType(item)}
                    {var thumbnail = sakai.api.Content.getThumbnail(item)}
                    <a href="/content#content_path=/p/${item['jcr:name']}" title="${item.name}">
                        {if thumbnail}
                            {var mimeTypeDescription = sakai.config.MimeTypes[mimeType].description}
                            <img class="s3d-icon-32" src="${thumbnail} alt="${mimeTypeDescription}" />
                        {elseif (mimeType.substring(0,6)=="image/")}
                            {var mimeTypeDescription = sakai.config.MimeTypes[mimeType].description}
                            <img class="s3d-icon-32" src="${item.path}" alt="${mimeTypeDescription}" />
                        {elseif sakai.config.MimeTypes[mimeType]}
                            {var mimeTypeDescription = sakai.config.MimeTypes[mimeType].description}
                            <img class="s3d-icon-32" src="${sakai.config.MimeTypes[mimeType].URL}" alt="${mimeTypeDescription}" />
                        {else}
                            {var mimeTypeDescription = sakai.config.MimeTypes["other"].description}
                            <img class="s3d-icon-32" src="${sakai.config.MimeTypes["other"].URL}" alt="${mimeTypeDescription}" />
                        {/if}
                    </a>
                </div>
                <div class="createcontent_item_info">
                    <p class="createcontent_item_title">
                        <a class="createcontent_item_link s3d-widget-links s3d-bold" href="/content#content_path=${item.path}" title="${item.name}">
                            ${item.nameShort}
                        </a>
                    </p>
                    <p class="createcontent_item_meta">${item.type} </p>
                    {if item.usedin > 0}
                        <p class="createcontent_item_meta">__MSG__USED_IN__ ${item.usedin}{if item.usedin === 1} __MSG__PLACE__{else} __MSG__PLACES__{/if}</p>
                    {/if}
                    {if item.totalcomment > 0}
                        <p class="createcontent_item_meta">${item.totalcomment}{if item.totalcomment === 1} __MSG__COMMENT__{else} __MSG__COMMENTS__{/if}</p>
                    {/if}
                </div>

                {if item.comment}
                <div class="createcontent_item_related_info">
                    <p class="createcontent_item_meta_data">__MSG__LAST_COMMENT_FOR__ <span class="s3d-bold">${item.nameShorter}</span></p>
                    <div class="fl-force-left">
                        <span id="createcontent_item_comment_author_picture" style="display:none;">
                            <img class="s3d-icon-32" src="/dev/images/accept.png" />
                        </span>
                        <div class="createcontent_item_comment_arrow"></div>
                    </div>
                    <div class="createcontent_comment_background">
                        <div id="createcontent_item_comment_author"></div>
                        <p> ${item.comment.comment}</p>
                    </div>
                </div>
                <div class="createcontent_item_border"></div>
                {/if}

                {if item.relatedContent}
                <div class="createcontent_item_related_info">
                    <p class="createcontent_item_meta_data">__MSG__RELATED_CONTENT_TO__ <span class="s3d-bold">${item.relatedContent.nameShorter}</span></p>
                    <div class="fl-force-left">
                    <a href="/content#content_path=/p/${item.relatedContent['jcr:name']}" title="${item.relatedContent.name}">
                        <span>
{'fraction_non_alphanumeric': 0.13570887035633056, 'fraction_numerical': 0.0073648868190187376, 'mean_word_length': 1.8570544554455446, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, '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': '3214785', 'n_tokens_mistral': 2656, 'n_tokens_neox': 2519, 'n_words': 337}