annotate templates/index.djhtml @ 127:de3a834691d4

Add link to code page from Browse code icon/text (On the homepage)
author dellsystem <ilostwaldo@gmail.com>
date Sat, 22 Sep 2012 11:10:08 -0400
parents 41aff926a5ab
children c7be7def8b57
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84
cf741f0c5255 Fix template inheritance in index.djhtml
dellsystem <ilostwaldo@gmail.com>
parents: 80
diff changeset
1 {% extends "base.djhtml" %}
17
cb9a7c6c3800 Implement rounded boxes and titles for holding content
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 9
diff changeset
2
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
3 {% block navbar %}
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
4 {% endblock %}
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
5
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
6 {% block billboard %}
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
7 <div id="billboard">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
8 <div class="grid">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
9 <div class="wrap center-align">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
10 <h1>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
11 Agora Octave enables <strong>rapid collaboration</strong> and
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
12 <strong>code&#8209;sharing</strong> for users of
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
13 <a href="http://octave.org">GNU Octave</a>.
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
14 </h1>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
15 <!--<div id="login-box"></div>-->
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
16 </div>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
17 </div>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
18 </div>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
19 <div id="billboard-below">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
20 </div>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
21 {% endblock %}
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
22
7
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 1
diff changeset
23 {% block content %}
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
24 <div id="info-box" class="row">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
25 <div class="span3">
127
de3a834691d4 Add link to code page from Browse code icon/text
dellsystem <ilostwaldo@gmail.com>
parents: 124
diff changeset
26 <a href="{% url code %}">
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
27 <div class="center-align">
118
d624e5076890 Add (empty) alt attributes for images on homepage
dellsystem <ilostwaldo@gmail.com>
parents: 107
diff changeset
28 <img src="/static/img/browse.png" alt="" />
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
29 <h2>Browse code submissions</h2>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
30 </div>
127
de3a834691d4 Add link to code page from Browse code icon/text
dellsystem <ilostwaldo@gmail.com>
parents: 124
diff changeset
31 </a>
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
32 <p>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
33 Some copy about how you can browse through the code until you
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
34 find what you want. They can be snippets or bundles. You can
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
35 contribute your own changes, maybe. You can even install them
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
36 as octave packages. More text to fill up line.
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
37 </p>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
38 </div><div class="span3">
124
41aff926a5ab Merge in changes from jordi's repo
dellsystem <ilostwaldo@gmail.com>
parents: 118 116
diff changeset
39 <a href="{% url snippet_new %}">
115
1da98bd71b84 Link to snippets from main page
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 84
diff changeset
40 <div class="center-align">
124
41aff926a5ab Merge in changes from jordi's repo
dellsystem <ilostwaldo@gmail.com>
parents: 118 116
diff changeset
41 <img src="/static/img/snippet.png" alt="" />
115
1da98bd71b84 Link to snippets from main page
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 84
diff changeset
42 <h2>Post a snippet</h2>
1da98bd71b84 Link to snippets from main page
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 84
diff changeset
43 </div>
1da98bd71b84 Link to snippets from main page
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 84
diff changeset
44 </a>
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
45 <p>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
46 Just want to post a quick snippet of code? Do it in the pastebin.
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
47 You don't even have to be registered. Though we'd need some sort
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
48 of spam-protection measures in that case. Plus, syntax highlighting!
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
49 </p>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
50 </div><div class="span3">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
51 <div class="center-align">
118
d624e5076890 Add (empty) alt attributes for images on homepage
dellsystem <ilostwaldo@gmail.com>
parents: 107
diff changeset
52 <img src="/static/img/upload.png" alt="" />
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
53 <h2>Share your code</h2>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
54 </div>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
55 <p>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
56 For larger pieces of code, we have bundles. Mercurial integration,
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
57 select a license. Sharing made easy. Forge for installing packages,
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
58 eventually. Some more text just to fill up the space. Lorem ipsum,
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
59 etc. You do have to be signed up to upload something, though.
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
60 </p>
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
61 </div>
17
cb9a7c6c3800 Implement rounded boxes and titles for holding content
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 9
diff changeset
62 </div>
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
63
107
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 84
diff changeset
64 {% if not user.is_authenticated %}
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
65 <div class="center-align">
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
66 <p><a href="{% url code %}" class="button large">Explore</a>
107
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 84
diff changeset
67 <a href="{% url login %}" class="button large login-link">
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 84
diff changeset
68 Login or register
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
69 </a></p>
17
cb9a7c6c3800 Implement rounded boxes and titles for holding content
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 9
diff changeset
70 <p>
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
71 You can sign up, if you want, won't share your email, not required, etc
17
cb9a7c6c3800 Implement rounded boxes and titles for holding content
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 9
diff changeset
72 </p>
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
73 </div>
107
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 84
diff changeset
74 {% endif %}
80
eaa36eaaf74a Start integration of new design
dellsystem <ilostwaldo@gmail.com>
parents: 67
diff changeset
75
17
cb9a7c6c3800 Implement rounded boxes and titles for holding content
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 9
diff changeset
76 {% endblock %}