<|start_filename|>examples/JPEGr/JPEGr/templates/index.html<|end_filename|>
{% extends "base.html" %}

{% block title %}Welcome to jpegr{% endblock %}


{% block content %}
<div class="jumbotron">
    <div class="container">
    {{ util.flashed_messages() }}
    </div>
    <div class="container">
        <h1>jpegr: A PDF to JPG converter as a service</h1>
        <p>jpegr takes your crummy non-webscale PDF and converts it into a beautiful, if slightly grainy, Web1.0 JPG image</p>
        <p><a href="{{ url_for('upload') }}" class="btn btn-primary btn-lg" role="buton">Convert your crappy PDF</a></p>
        <ul class="list-group">
            {% for link in links %}
            <li class="list-group-item">
                <a href="{{ link }}">View a converted PDF!</a>
            </li>
            {% else %}
            <li class="list-group-item list-group-item-info">
                Unbelievable! There are no converted PDFs!
            </li>
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}


<|start_filename|>examples/JPEGr/JPEGr/templates/upload.html<|end_filename|>
{% extends "base.html" %}

{% block title %}PDF Uploader{% endblock %}

{% block content %}
<div class="jumbotron">
    <div class="container">
        <h1>Ready to semi-webscale?!</h1>
        <p>Upload your crappy PDF and get a wonderful semi-webscale JPG!</p>
        {{ wtf.quick_form(form, enctype="multipart/form-data") }}
    </div>
</div>
{% endblock %}


<|start_filename|>examples/allotr/allotr/templates/index.html<|end_filename|>
{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}


{% block title %}Allotr{% endblock %}

{% block content %}
<div class="jumbotron">
    <div class="container">
        {{ util.flashed_messages() }}
    </div>
    <div class="container">
        <h1>Allotr</h1>
        <p>Flask will allow you to reject files that exceed a certain file size.
        But Flask-Transfer will allow you to create a check that will reject
        files that cause a directory to grow beyond a certain size.</p>
        <h2>Try It Out</h2>
        <p>Upload some files, but once a file causes the upload directory to
        exceed 20 kilobytes, you'll get an error.</p>
    </div>
    <div class="container">
        <h2>Upload a File</h3>
        {{ wtf.quick_form(form, enctype="multipart/form-data") }}
    </div>
</div>

<div class="container">
    <div class="row">
        <div class="col-md-4">
            <h3>Source Code</h3>
            <a href="https://github.com/justanr/Flask-Transfer/tree/master/examples/allotr">
                <span class="glyphicon glyphicon-cloud"></span>
                Github
            </a>
        </div>
        <div class="col-md-4">
            <h3>Total Upload Usages</h3>
            <p>{{ current }}kb of {{ max }}kb</p>
        </div>
        <div class="col-md-4">
            <h3>Files Uploaded</h3>
            <ul>
                {% for file in files %}
                <li>{{ file }}</li>
                {% else %}
                <li>No files uploaded</li>
                {% endfor %}
            </ul>
        </div>
    </div>
<hr>
<footer>
    <p>Powered by <a href="flask.pocoo.org">Flask</a>
    and <a href="https://github.com/justanr/Flask-Transfer">Flask-Transfer</a>
    </p>
</footer>

</div>


{% endblock %}


<|start_filename|>examples/JPEGr/JPEGr/templates/base.html<|end_filename|>
{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}

{% 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="#">JPEGr</a>
    </div>
    <div id="navbar" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
          <li><a href="{{ url_for('index') }}">Home</a></li>
          <li><a href="{{ url_for('upload') }}">Convert</a></li>
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</nav>
{% endblock %}
