2018-04-09 23:37:21 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2018-04-08 17:30:03 +02:00
|
|
|
<head>
|
2018-04-09 23:37:21 +02:00
|
|
|
<meta charset="utf-8">
|
2018-05-20 14:12:07 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
|
|
|
<title>Converse: Index</title>
|
|
|
|
|
|
|
|
<!-- TODO -->
|
|
|
|
<meta http-equiv="Content-Security-Policy" content="script-src https://code.getmdl.io 'self';">
|
|
|
|
<!-- <link rel="shortcut icon" href="images/favicon.png"> -->
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu">
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
|
|
|
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.blue_grey-orange.min.css" />
|
|
|
|
<link rel="stylesheet" href="/static/styles.css">
|
2018-04-08 17:30:03 +02:00
|
|
|
</head>
|
2018-05-20 14:12:07 +02:00
|
|
|
<body class="converse mdl-base mdl-color-text--grey-700 mdl-color--grey-100">
|
|
|
|
<div class="mdl-layout mdl-layout--fixed-header mdl-js-layout mdl-color--grey-100">
|
|
|
|
<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--primary-dark">
|
|
|
|
<div class="mdl-layout__header-row">
|
|
|
|
<a href="/" class="mdl-layout-title mdl-color-text--blue-grey-50 cvs-title">Converse</a>
|
|
|
|
<div class="mdl-layout-spacer"></div>
|
|
|
|
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label mdl-color-text--blue-grey-50 search-field">
|
|
|
|
<form method="get" action="/search">
|
|
|
|
<input class="mdl-textfield__input" type="search" id="search-query" aria-label="Search" name="query">
|
|
|
|
<label class="mdl-textfield__label mdl-color-text--blue-grey-100" for="search-query">Search query...</label>
|
2018-05-22 18:56:22 +02:00
|
|
|
<input type="submit" hidden />
|
2018-05-20 14:12:07 +02:00
|
|
|
</form>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
2018-05-20 14:12:07 +02:00
|
|
|
|
|
|
|
<a href="/thread/new">
|
|
|
|
<button class="mdl-button mdl-js-button mdl-button--raised mdl-button--accent mdl-js-ripple-effect">
|
|
|
|
New Thread
|
|
|
|
</button>
|
|
|
|
</a>
|
2018-04-09 23:37:21 +02:00
|
|
|
</div>
|
2018-05-20 14:12:07 +02:00
|
|
|
</header>
|
|
|
|
<main class="mdl-layout__content">
|
|
|
|
<section class="section--center mdl-grid mdl-grid--no-spacing mdl-shadow--2dp">
|
|
|
|
<div class="mdl-card mdl-cell mdl-cell--12-col">
|
|
|
|
<div class="mdl-card__supporting-text mdl-grid">
|
|
|
|
<h4 class="mdl-cell mdl-cell--12-col">Latest threads:</h4>
|
|
|
|
<ul class="mdl-list">
|
2018-05-22 18:35:35 +02:00
|
|
|
{% for thread in threads %}
|
2018-05-20 14:12:07 +02:00
|
|
|
<li class="mdl-list__item thread-list-item mdl-list__item--three-line">
|
|
|
|
<a class="thread-link mdl-color-text--grey-800" href="/thread/{{ thread.id }}">
|
2018-05-22 18:35:35 +02:00
|
|
|
<span class="mdl-list__item-primary-content {% if loop.index < threads.len() %}thread-divider{% endif %}">
|
2018-05-20 14:12:07 +02:00
|
|
|
<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-button--colored mdl-list__item-icon">
|
2018-05-25 18:46:32 +02:00
|
|
|
<i class="material-icons">
|
|
|
|
{% if thread.sticky %}
|
|
|
|
announcement
|
|
|
|
{% else if thread.closed %}
|
|
|
|
lock
|
|
|
|
{% else %}
|
|
|
|
library_books
|
|
|
|
{% endif %}
|
|
|
|
</i>
|
2018-05-20 14:12:07 +02:00
|
|
|
</button>
|
2018-05-22 18:35:35 +02:00
|
|
|
<span class="thread-title">{{ thread.title }}<span class="thread-author"> by {{ thread.author_name }}</span></span>
|
2018-05-20 14:12:07 +02:00
|
|
|
<span class="mdl-list__item-text-body">
|
|
|
|
Last reply by {{ thread.post_author }} on {{ thread.posted }}.
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-05-22 18:35:35 +02:00
|
|
|
{% endfor %}
|
2018-05-20 14:12:07 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<footer class="mdl-mini-footer">
|
|
|
|
<div class="mdl-mini-footer--right-section">
|
|
|
|
<p>Powered by <a href="https://github.com/tazjin/converse">Converse</a></p>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2018-04-08 20:01:41 +02:00
|
|
|
</div>
|
2018-05-20 14:12:07 +02:00
|
|
|
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
|
2018-04-08 17:30:03 +02:00
|
|
|
</body>
|
|
|
|
</html>
|