<commit_before>{extends designs/site.tpl}

{block title}{_ "Projects"} &mdash; {$dwoo.parent}{/block}

{block content}
    <div class="page-header">
        {if $.User}
            <form class="pull-right" action="/projects/create">
                <button class="btn btn-success" type="submit">{glyph "plus"}&nbsp;{_ "Add Project&hellip;"}</button>
            </form>
        {else}
            <a href="/register" class="btn btn-danger pull-right">{glyph "fire"}&nbsp;{_ "Register with the Brigade!"}</a>
        {/if}
        <h2>{_ "Civic Projects Directory"}</h2>
    </div>

    {foreach item=Project from=$data}
        <div class="project-listing row-fluid clearfix">
            <div class="col-sm-8">
                <h3>
                    <a name="{$Project->Handle}" href="{$Project->getURL()}">{$Project->Title|escape}</a>
                </h3>

                <div class="well">
                    {if $Project->README}
                        <div class="markdown readme">{$Project->README|escape|markdown}</div>
                    {/if}
                </div>
            </div>

            {if $Project->Memberships}
            <div class="col-sm-4">
                <h4>Project Info</h4>

                <div class="btn-group btn-group-justified" role="group">
                    {if $Project->UsersUrl}<a class="btn btn-primary" role="button" href="{$Project->UsersUrl|escape}">{glyph "link"}&nbsp;Public Site</a>{/if}
                    {if $Project->DevelopersUrl}<a class="btn btn-success" role="button" href="{$Project->DevelopersUrl|escape}">{glyph "link"}Developers</a>{/if}
                </div>


                <h4>{_ "Members"}</h4>

                <ul class="list-inline people-list">
                {foreach item=Membership from=$Project->Memberships}
                    {$Member = $Membership->Member}
                    <li class="listed-person {tif $Project->MaintainerID == $Member->ID ? maintainer}">
                        <a
                            href="/members/{$Member->Username}"
                            class="member-thumbnail"
                            data-toggle="tooltip"
                            title="{$Member->FullName|escape} &mdash; {projectMemberTitle $Membership}"
                        >
                            {avatar $Member size=48}
                        </a>
                    </li>
                {foreachelse}
                    <li class="muted">{_ "None registered"}</li>
                {/foreach}
                </ul>
            </div>
            {/if}<commit_msg>Display project stage on Projects. Fixes #94.<commit_after>{extends designs/site.tpl}

{block title}{_ "Projects"} &mdash; {$dwoo.parent}{/block}

{block content}
    <div class="page-header">
        {if $.User}
            <form class="pull-right" action="/projects/create">
                <button class="btn btn-success" type="submit">{glyph "plus"}&nbsp;{_ "Add Project&hellip;"}</button>
            </form>
        {else}
            <a href="/register" class="btn btn-danger pull-right">{glyph "fire"}&nbsp;{_ "Register with the Brigade!"}</a>
        {/if}
        <h2>{_ "Civic Projects Directory"}</h2>
    </div>

    {foreach item=Project from=$data}
        <div class="project-listing row-fluid clearfix">
            <div class="col-sm-8">
                <h3>
                    <a name="{$Project->Handle}" href="{$Project->getURL()}">{$Project->Title|escape}</a>
                </h3>

                <div class="well">
                    {if $Project->README}
                        <div class="markdown readme">{$Project->README|escape|markdown}</div>
                    {/if}
                </div>
            </div>

            <div class="col-sm-4">
                <h4>Project Info</h4>
                

                <div class="btn-group btn-group-justified" role="group">
                    {if $Project->UsersUrl}<a class="btn btn-primary" role="button" href="{$Project->UsersUrl|escape}">{glyph "link"}&nbsp;Public Site</a>{/if}
                    {if $Project->DevelopersUrl}<a class="btn btn-success" role="button" href="{$Project->DevelopersUrl|escape}">{glyph "link"}Developers</a>{/if}
                </div>
            
                {if $Project->Stage}
                    Stage: <span class="label label-info">{_ "$Project->Stage"}</span>
                {/if}
            
                {if $Project->Memberships}

                <h4>{_ "Members"}</h4>

                <ul class="list-inline people-list">
                {foreach item=Membership from=$Project->Memberships}
                    {$Member = $Membership->Member}
                    <li class="listed-person {tif $Project->MaintainerID == $Member->ID ? maintainer}">
                        <a
                            href="/members/{$Member->Username}"
                            class="member-thumbnail"
                            data-toggle="tooltip"
                            title="{$Member->FullName|escape} &mdash; {projectMemberTitle $Membership}"
                        >
                            {avatar $Member size=48}
                        </a>
                    </li>
                {foreachelse}
                    <li class="muted">{_ "None registered"}</li>
                {/foreach}
                </ul>
            </div>
            {/if}
{'fraction_non_alphanumeric': 0.16022304832713755, 'fraction_numerical': 0.0048327137546468404, 'mean_word_length': 1.50512104283054, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '804309', 'n_tokens_mistral': 1563, 'n_tokens_neox': 1448, 'n_words': 271}