summaryrefslogblamecommitdiffstats
path: root/app/view/pad.php
blob: f47b2e7b3b3b560b54968d0141e2a1af57e76e88 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                         
                                
                                 
                              
                             










                                          



                                          







                                           
                                                                          
                                           
 








                                                                                                                               
                             






                                                                             











                                               
<?php

/*
 * SCROTT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * For more information, please refer to UNLICENSE
 */

require_once "view/stdpage.php";
require_once "view/datalsts.php";
require_once "view/issue.php";
require_once "model/pad.php";

?>

<!DOCTYPE html>

<html lang="en">
    <head>
        <?=stdpage\head( getPageName() )?>
    </head>

    <body>
        <?php foreach ($issues as $i) { ?>
            <?=issue_v\issue($i)?>
        <?php } ?>

        <?=stdpage\top()?>
        <?=stdpage\nav()?>

        <div class="container">
            <div class="well well-lg">
                <div class="row">
                    <div class="col-md-12">
                        <h1>
                            <span class="glyphicon glyphicon-edit"></span>
                            <?=$pad->name?>

                            <div class="btn-group">
                                <button type="button" class="btn btn-success" data-toggle="modal" data-target="#newIssueModal">
                                    <span class="glyphicon glyphicon-plus"></span> Open Issue
                                </button>

                                <a href="<?=ap()?>/closed" class="btn btn-default">
                                    View closed issues
                                </a>
                            </div>
                        </h1>

                        <h5>
                            <span class="glyphicon <?=$owner_glyph?>"></span>
                            <a href="<?=ar()?>/<?=$owner_url?>">
                                <?=$owner_name?>
                            </a>
                        </h5>
                    </div>
                </div>
            </div>

            <?php foreach ($stages as $s) { ?>
                <?=datalsts\stageListItem($s)?>
            <?php } ?>
        </div>

        <?=stdpage\foot()?>
    </body>
</html>