FeatureBrowser/FeatureBrowser

View on GitHub
src/FeatureBrowser/Resources/views/base.html.twig

Summary

Maintainability
Test Coverage
{% import 'tag-macros.html.twig' as tagmacros %}
<!DOCTYPE html>
<html lang="en">
{% block head %}
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="icon" href="../../favicon.ico">

        <title>{% block title %}{{ projectName }} User Manual{% endblock %}</title>
        <!-- Bootstrap core CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
        <!-- Bootstrap theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
        <style>
            body {
                min-height: 2000px;
                padding-top: 70px;
            }

            .table {
                width: auto;
            }
        </style>
    </head>
{% endblock %}
<body role="document">

{% block navbar %}
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="{{ relativePath }}index.html">{{ block("title") }}</a>
            </div>
            <!--/.nav-collapse -->
        </div>
    </nav>
{% endblock %}

<div class="container">
    <div class="starter-template">
        {% block body %}
            <div class="row">
                <div class="col-md-6">
                    <h2>Directories</h2>
                    <ul>
                        {% for directory, files in directories %}
                            <li><a href="directories/{{ directory }}/index.html">{{ directory }}</a></li>
                        {% endfor %}
                    </ul>
                </div>
                <div class="col-md-6">
                    <h2>Tags</h2>
                    <ul>
                        {% for tag, count in tags %}
                            <li>{{ tagmacros.tagCount('', tag, count) }}</li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        {% endblock %}
    </div>

</div>
<!-- /.container -->


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</body>
</html>