98 lines
4.7 KiB
Plaintext
98 lines
4.7 KiB
Plaintext
|
- include 'html5doctype.html'
|
||
|
- load sass_tags
|
||
|
- load static
|
||
|
- load i18n
|
||
|
%html
|
||
|
%head
|
||
|
%meta(charset="utf-8")/
|
||
|
%title
|
||
|
- block 'title'
|
||
|
FurmeetApp Bot
|
||
|
%link{'href': "{% static 'favicon.png' %}", 'rel': 'shortcut icon', 'type': "image/png"}
|
||
|
%link{'href': "{% sass_src 'dashboard.sass' %}", 'rel': "stylesheet", 'type': "text/css"}
|
||
|
%link{'href': "{% static 'font-awesome-4.7.0/css/font-awesome.min.css' %}", 'rel': 'stylesheet', 'type': "text/css"}
|
||
|
%body
|
||
|
%aside
|
||
|
%header
|
||
|
%span
|
||
|
FurmeetApp's
|
||
|
%span
|
||
|
Chat Bot
|
||
|
%main
|
||
|
%h3<
|
||
|
Site navigation
|
||
|
%ul
|
||
|
%li{'class': "{% if request.resolver_match.url_name == 'home' %}active{% endif %}"}<
|
||
|
%a{'href': "{% url 'home' %}"}<
|
||
|
%i.fa.fa-home(aria-hidden="true")>
|
||
|
%span>= ' '
|
||
|
Home
|
||
|
%li{'class': "{% if request.resolver_match.url_name == 'terms' %}active{% endif %}"}<
|
||
|
%a{'href': "{% url 'terms' %}"}<
|
||
|
%i.fa.fa-legal(aria-hidden="true")>
|
||
|
%span>= ' '
|
||
|
Terms of Service
|
||
|
%li{'class': "{% if request.resolver_match.url_name == 'privacy' %}active{% endif %}"}<
|
||
|
%a{'href': "{% url 'privacy' %}"}<
|
||
|
%i.fa.fa-home(aria-hidden="true")>
|
||
|
%span>= ' '
|
||
|
Privacy Policy
|
||
|
%footer
|
||
|
%span
|
||
|
© 2020 All rights reserved
|
||
|
%section
|
||
|
%header
|
||
|
- block 'header'
|
||
|
%h2
|
||
|
- block 'headerText'
|
||
|
Header
|
||
|
.floatRight.marginTop1em5Negative
|
||
|
- if settings.BOT_NAME
|
||
|
- if tg_user
|
||
|
%span<
|
||
|
%span>= tg_user.name
|
||
|
(
|
||
|
%span>= tg_user.tg_id
|
||
|
)
|
||
|
%a.btn.btn-danger(href="")
|
||
|
Log out
|
||
|
- else
|
||
|
%a.btn.btn-success(href="https://t.me/#{settings.BOT_NAME}/start=true")
|
||
|
Log in
|
||
|
%a.btn.btn-info(href="https://t.me/#{settings.BOT_NAME}/startgroup=true")
|
||
|
Invite to group
|
||
|
- else
|
||
|
%span.btn.btn-warn
|
||
|
Problem: BOT_NAME is unset
|
||
|
%main
|
||
|
- block 'content'
|
||
|
content
|
||
|
%footer
|
||
|
- block 'footer'
|
||
|
This service would not possible as is without:
|
||
|
%ul
|
||
|
%li<
|
||
|
%a(href="https://telegram.org/")>Telegram
|
||
|
, an instant message app by Telegram LLC
|
||
|
%li<
|
||
|
%a(href="https://cas.chat/")>Combot Anti-Spam System
|
||
|
, a blacklist for known Telegram spammers that requires an active link and a "Powered by CAS" in bot's description
|
||
|
%li<
|
||
|
%a(href="https://www.djangoproject.com")>Django
|
||
|
, a web framework written in Python for developing apps
|
||
|
%li<
|
||
|
%a(href="https://github.com/buildbot/guanlecoja")>Guanlecoja
|
||
|
, a template that inspired this one you're seeing
|
||
|
%li<
|
||
|
%a(href="https://github.com/angular/components/blob/master/src/material/core/theming/_palette.scss")>Angular's Material Palette
|
||
|
, a color palette with great-looking colors
|
||
|
%li<
|
||
|
%a(href="https://github.com/jrief/django-sass-processor")>django-sass-processor
|
||
|
, for writing CSS with some extras CSS could have
|
||
|
%li<
|
||
|
%a(href="https://github.com/nyaruka/django-hamlpy")>HAMLpy
|
||
|
, an alternative template syntax in which this whole site was written
|
||
|
%li<
|
||
|
%a(href="https://github.com/aiogram/aiogram")>AIOGram
|
||
|
, a fully asynchronous in which the telegram bots use
|
||
|
|