view templates/index.djhtml @ 151:c7be7def8b57

Bundles! (basic functionality) Changes made in this commit: * Added new dependencies (see pip-requirements) * Added new dependency and setup information to README * Deleted the included mptt app (in apps/mptt) in favour of just adding the dependency to pip-requirements (makes it easier to update, etc) * Changed the import convention to use `from apps.bundle.models import Bundle` rather than `from agora.apps.bundle.models import Bundle` because Celery was having problems with the latter style. Everything should still work. * Moved the syntax-highlighting and related code for snippets into separate HTML files so that they can be used by the bundle app And, of course, the ability to upload bundles. But wait! There's more! Changes still to come, for only $19.95 a month: * Bundle versioning * Automatic license integration (i.e. adding headers to files) * The ability to download bundles (zip, tar, etc) * Rating bundles * And much, much more! Batteries not included.
author dellsystem <ilostwaldo@gmail.com>
date Mon, 15 Oct 2012 00:52:00 -0400
parents de3a834691d4
children
line wrap: on
line source

{% extends "base.djhtml" %}

{% block navbar %}
{% endblock %}

{% block billboard %}
<div id="billboard">
    <div class="grid">
        <div class="wrap center-align">
            <h1>
            Agora Octave enables <strong>rapid collaboration</strong> and
            <strong>code&#8209;sharing</strong> for users of
            <a href="http://octave.org">GNU Octave</a>.
            </h1>
            <!--<div id="login-box"></div>-->
        </div>
    </div>
</div>
<div id="billboard-below">
</div>
{% endblock %}

{% block content %}
<div id="info-box" class="row">
    <div class="span3">
        <a href="{% url code %}">
        <div class="center-align">
            <img src="/static/img/browse.png" alt="" />
            <h2>Browse code submissions</h2>
        </div>
        </a>
        <p>
            Some copy about how you can browse through the code until you
            find what you want. They can be snippets or bundles. You can
            contribute your own changes, maybe. You can even install them
            as octave packages. More text to fill up line.
        </p>
    </div><div class="span3">
        <a href="{% url snippet_new %}">
            <div class="center-align">
                <img src="/static/img/snippet.png" alt="" />
                <h2>Post a snippet</h2>
            </div>
        </a>
        <p>
            Just want to post a quick snippet of code? Do it in the pastebin.
            You don't even have to be registered. Though we'd need some sort
            of spam-protection measures in that case. Plus, syntax highlighting!
        </p>
    </div><div class="span3">
        <a href="{% url bundle_new %}">
            <div class="center-align">
                <img src="/static/img/upload.png" alt="" />
                <h2>Share your code</h2>
            </div>
        </a>
        <p>
            For larger pieces of code, we have bundles. Mercurial integration,
            select a license. Sharing made easy. Forge for installing packages,
            eventually. Some more text just to fill up the space. Lorem ipsum,
            etc. You do have to be signed up to upload something, though.
        </p>
    </div>
</div>

{% if not user.is_authenticated %}
<div class="center-align">
    <p><a href="{% url code %}" class="button large">Explore</a>
    <a href="{% url login %}" class="button large login-link">
        Login or register
    </a></p>
    <p>
        You can sign up, if you want, won't share your email, not required, etc
    </p>
</div>
{% endif %}

{% endblock %}