hub.sr.ht/hubsrht/templates/index.html

67 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2020-03-24 15:26:15 +01:00
{% extends "layout.html" %}
2020-04-28 19:39:46 +02:00
{% block title %}
<title>{{cfg("sr.ht", "site-name")}} hub</title>
{% endblock %}
2020-03-24 15:26:15 +01:00
{% block content %}
<div class="row">
<div class="col-md-8">
<p>
Welcome to
2020-03-24 15:26:15 +01:00
<a href="{{cfg("sr.ht", "site-info")}}">
{{cfg("sr.ht", "site-name")}}</a>,
{{cfg("sr.ht", "site-blurb")}}!
</p>
<p>
<a
class="btn btn-primary"
href="{{get_origin("meta.sr.ht", external=True)}}/register"
>Register here {{icon('caret-right')}}</a>
or
<a href="{{oauth_url}}">
Log in {{icon('caret-right')}}
</a>
2020-08-14 16:28:15 +02:00
to get started, or check out some of our featured projects:
</p>
</div>
</div>
2020-08-14 16:28:15 +02:00
<div class="row" style="margin-top: 1rem">
<div class="col-md-12">
<h3>Featured projects</h3>
<div class="event-list feature-list">
{% for feature in features %}
<div class="event">
<h5>
<span class="text-muted"
>{{feature.project.owner.canonical_name}}/</span><a
href="{{url_for("projects.summary_GET",
owner=feature.project.owner.canonical_name,
project_name=feature.project.name)}}"
>{{feature.project.name}}</a>
</h5>
<blockquote>
{{feature.summary | md}}
</blockquote>
2020-09-12 15:16:36 +02:00
{% if feature.project.tags %}
<div class="tags">
2020-09-12 15:16:36 +02:00
{% for tag in feature.project.tags %}
<a href="{{url_for("public.project_index", search="#"+tag)}}"
class="tag">#{{tag}}</a>
{% endfor %}
</div>
{% endif %}
2020-08-14 16:28:15 +02:00
</div>
{% endfor %}
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 offset-md-8">
2020-03-24 15:26:15 +01:00
<a
href="{{url_for("public.project_index")}}"
class="btn btn-default btn-block"
>More projects {{icon('caret-right')}}</a>
2020-03-24 15:26:15 +01:00
</div>
</div>
{% endblock %}