Escaline

Sign in or create your account | Project List | Help

Escaline Git Source Tree

Root/escaline/templates/home.html

Source at commit 18e8e081f65a757edd428f970c23d4e666fc110d created 9 months 14 days ago.
By Jordan Bracco, Fill the input box when clicking on a command.
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
3<head>
4    <title>Escaline, la ligne de commande du web !</title>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <link rel="stylesheet" type="text/css" href="/medias/styles/home.css" />
7    <link rel="stylesheet" type="text/css" href="/medias/styles/common.css" />
8    <link rel="shortcut icon" href="/medias/images/favicon.ico" />
9    <link rel="icon" type="image/png" href="/medias/images/favicon.png" />
10    <link rel="search" type="application/opensearchdescription+xml" href="/medias/opensearch.xml" title="Escaline">
11    <link rel="alternate" type="application/rss+xml" title="S'abonner aux nouvelles" href="{% url feeds "news" %}" />
12    <link rel="alternate" type="application/rss+xml" title="S'abonner aux dernières commandes" href="{% url feeds "commands" %}" />
13    <script type="text/javascript" src="/medias/js/jquery.js"></script>
14    <script type="text/javascript" src="/medias/js/escaline.js"></script>
15</head>
16<body>
17
18    <h1><img src="/medias/images/logo.png" alt="Meuh 3:->" /></h1>
19
20    <div id="command">
21        <form id="form" action="/cmd" method="get">
22            <div>
23                <input type="text" maxlength="262" name="c" id="c" />
24                <input type="submit" value="Ok" id="submit_form" />
25            </div>
26        </form>
27    </div>
28
29    <div id="lasts">
30        <div id="news">
31            <h2>News <a href="{% url feeds "news" %}"><img src="/medias/images/feed.png" alt="S'abonner aux nouvelles" title="S'abonner aux nouvelles" /></a></h2>
32            <ul class="news">
33            {% for post in posts %}
34            <li><h3><a href="{{ post.get_permalink }}">{{ post.title }}</a></h3><p>{{ post.chapo }} <span class="date">({{ post.date|date:"d/m/Y" }})</span></p></li>
35            {% endfor %}
36            </ul>
37        </div>
38    
39        {% load truncate %}
40        <div id="commands">
41            <h2>Dernières commandes <a href="{% url feeds "commands" %}"><img src="/medias/images/feed.png" alt="S'abonner aux dernières commandes" title="S'abonner aux dernières commandes" /></a></h2>
42            <dl class="commandes">
43                {% for command in news_commands %}
44                <dt><samp class="cmd">{{ command.name }}</samp> <samp class="synopsis">{{ command.get_truncated_synopsis }}</samp>
45                    <a class="man" href="/man {{ command.name }}"><img src="/medias/images/description.png" class="desc" alt="manuel" title="Manuel de la commande {{ command.name }}" /></a></dt>
46                <dd>{{ command.description|truncate_to_first_line|truncatewords:15 }}</dd>
47                {% endfor %}
48            </dl>
49        </div>
50    </div>
51
52    {% include "footer.html" %}
53</body>
54</html>
55
56

Archive Download this file