<commit_before>{extends designs/site.tpl}

{block title}{$data->Title|escape} &mdash; {_ 'Projects'} &mdash; {$dwoo.parent}{/block}

{block content}
    {$Project = $data}

    <div class="page-header">
        <div class="btn-toolbar pull-right">
            <div class="btn-group">
                <a href="/projects/{$Project->Handle}/edit" class="btn btn-info">{_ "Edit Project"}</a>
                {if $.User}
                    <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                    <ul class="dropdown-menu">
                        <li><a href="#add-member" data-toggle="modal">{_ "Add Member"}</a></li>
                        <li><a href="/project-buzz/create?ProjectID={$Project->ID}">{_ "Log Buzz"}</a></li>
                        {if $.User && ($Project->hasMember($.User) || $.Session->hasAccountLevel('Staff'))}
                            <li><a href="#post-update" data-toggle="modal">{_ "Post Update"}</a></li>
                        {/if}
                        {if $.Session->hasAccountLevel('Staff')}
                            <li><a href="#manage-members" data-toggle="modal">{_ "Manage Members"}</a></li>
                        {/if}
                    </ul>
                {/if}
            </div>
        </div>

        <h1>{$Project->Title|escape}</h1>
    </div>

    <div class="row">
        <div class="col-md-8">
            {if $Project->Stage}
                <h2>{_ "Stage"}</h2>
                <span class="label label-info" data-toggle="tooltip" data-placement="bottom" title="{Laddr\Project::getStageDescription($Project->Stage)}">{$Project->Stage}</span>
            {/if}  
            {if $Project->README}
                <h2>{_ "README"}</h2>
                <div class="content-readme content-markdown well">
                    {$Project->README|escape|markdown}
                </div>
            {/if}

            {*
            <h2>Comments:</h2>
            <form method="post" action="/projects/{$Project->Handle}/comment">
                <textarea name="Message"></textarea>
                <input type="submit" value="Submit"><commit_msg>Adding dynamic project stage progress bar<commit_after>{extends designs/site.tpl}

{block title}{$data->Title|escape} &mdash; {_ 'Projects'} &mdash; {$dwoo.parent}{/block}

{block content}
    {$Project = $data}

    <div class="page-header">
        <div class="btn-toolbar pull-right">
            <div class="btn-group">
                <a href="/projects/{$Project->Handle}/edit" class="btn btn-info">{_ "Edit Project"}</a>
                {if $.User}
                    <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                    <ul class="dropdown-menu">
                        <li><a href="#add-member" data-toggle="modal">{_ "Add Member"}</a></li>
                        <li><a href="/project-buzz/create?ProjectID={$Project->ID}">{_ "Log Buzz"}</a></li>
                        {if $.User && ($Project->hasMember($.User) || $.Session->hasAccountLevel('Staff'))}
                            <li><a href="#post-update" data-toggle="modal">{_ "Post Update"}</a></li>
                        {/if}
                        {if $.Session->hasAccountLevel('Staff')}
                            <li><a href="#manage-members" data-toggle="modal">{_ "Manage Members"}</a></li>
                        {/if}
                    </ul>
                {/if}
            </div>
        </div>

        <h1>{$Project->Title|escape}</h1>
    </div>

    <div class="row">
        <div class="col-md-8">
            {if $Project->Stage}
                <h2>{_ "Stage"}</h2>
                {if $Project->Stage == null}
                <span class="label label-info" data-toggle="tooltip" data-placement="bottom" title="{Laddr\Project::getStageDescription($Project->Stage)}">{$Project->Stage}</span>
                {/if}
                {if $Project->Stage == Commenting}
                <div class="progress">
                    <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100" style="width: 10%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Hibernating)}">
                    <span class="show">{$Project->Stage}</span>
                    </div>
                </div>
                {/if}
                {if $Project->Stage == Bootstrapping}
                <div class="progress">
                    <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" style="width: 30%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Bootstrapping)}">
                    <span class="show">{$Project->Stage}</span>
                    </div>
                </div>
                {/if}
                {if $Project->Stage == Prototyping}
                <div class="progress">
                    <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Prototyping)}">
                    {$Project->Stage}
                    </div>
                </div>
                {/if}
                {if $Project->Stage == Testing}
                <div class="progress">
                    <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Testing)}">
                    {$Project->Stage}
                    </div>
                </div>
                {/if}
                {if $Project->Stage == Maintaining}
                <div class="progress">
                    <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Maintaining)}">
                    {$Project->Stage}
                    </div>
                </div>
                {/if}
                {if $Project->Stage == Drifting}
                <div class="progress">
                    <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Drifting)}">
                    <span class="show">{$Project->Stage}</span>
                    </div>
                </div>
                {/if}
                {if $Project->Stage == Hibernating}
                <div class="progress">
                    <div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;" data-toggle="tooltip" title="{Laddr\Project::getStageDescription(Hibernating)}">
                    {$Project->Stage}
                    </div>
                </div>
                {/if}
            {/if}  
            {if $Project->README}
                <h2>{_ "README"}</h2>
                <div class="content-readme content-markdown well">
                    {$Project->README|escape|markdown}
                </div>
            {/if}

            {*
            <h2>Comments:</h2>
            <form method="post" action="/projects/{$Project->Handle}/comment">
                <textarea name="Message"></textarea>
                <input type="submit" value="Submit">
{'fraction_non_alphanumeric': 0.17466855451152014, 'fraction_numerical': 0.010297335564422706, 'mean_word_length': 1.8131788559015207, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 174, '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': '4422079', 'n_tokens_mistral': 2317, 'n_tokens_neox': 2136, 'n_words': 364}