194 lines
12 KiB
Plaintext
194 lines
12 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"}
|
|
%link{'href': "{% static 'fonts/stylesheet.css' %}", 'rel': 'stylesheet', 'type': "text/css"}
|
|
- block 'extrahead'
|
|
%body
|
|
%aside
|
|
%header
|
|
%a{'href': "{% url 'home' %}"}
|
|
%span
|
|
FurmeetApp's
|
|
%span
|
|
Chat Bot
|
|
%main
|
|
- if tg_user
|
|
- if group_id
|
|
%h3{'class': "{% if request.resolver_match.url_name|slice:':12' == 'manage_group' %}active{% endif %}"}<
|
|
= group.telegram_title
|
|
%ul
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group' group_id %}"}<
|
|
%i.fa.fa-group(aria-hidden="true")>
|
|
%span>= ' '
|
|
Overview
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_accesscontrol' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_accesscontrol' group_id %}"}<
|
|
%i.fa.fa-lock(aria-hidden="true")>
|
|
%span>= ' '
|
|
Access Control
|
|
- if request.resolver_match.url_name == 'manage_group_accesscontroluse'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_accesscontroluse' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_accesscontroluse' group_id %}"}<
|
|
%i.fa.fa-pencil(aria-hidden="true")>
|
|
%span>= ' '
|
|
Access Ctrl Policy
|
|
- if request.resolver_match.url_name == 'manage_group_accesscontrolgrant'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_accesscontrolgrant' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_accesscontrolgrant' group_id %}"}<
|
|
%i.fa.fa-user-plus(aria-hidden="true")>
|
|
%span>= ' '
|
|
Access Ctrl Grant
|
|
- if request.resolver_match.url_name == 'manage_group_accesscontrolgrant_delete'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_accesscontrolgrant_delete' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_accesscontrolgrant_delete' group_id accesscontrolgrant_id %}"}<
|
|
%i.fa.fa-user-times(aria-hidden="true")>
|
|
%span>= ' '
|
|
Access Ctrl Revoke
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_antispam' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_antispam' group_id %}"}<
|
|
%i.fa.fa-ban(aria-hidden="true")>
|
|
%span>= ' '
|
|
Anti-Spam
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_captcha' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_captcha' group_id %}"}<
|
|
%i.fa.fa-keyboard-o(aria-hidden="true")>
|
|
%span>= ' '
|
|
CAPTCHA
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_cannedmessages' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_cannedmessages' group_id %}"}<
|
|
%i.fa.fa-comments-o(aria-hidden="true")>
|
|
%span>= ' '
|
|
Canned Messages
|
|
- if request.resolver_match.url_name == 'manage_group_cannedmessage'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_cannedmessage' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_cannedmessages' group_id %}"}<
|
|
%i.fa.fa-pencil(aria-hidden="true")>
|
|
%span>= ' '
|
|
Edit Canned Message
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_joinleave' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_joinleave' group_id %}"}<
|
|
%i.fa.fa-comment-o(aria-hidden="true")>
|
|
%span>= ' '
|
|
Join/Leave Greetings
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_plannedmessages' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_plannedmessages' group_id %}"}<
|
|
%i.fa.fa-clock-o(aria-hidden="true")>
|
|
%span>= ' '
|
|
Planned Messages
|
|
- if request.resolver_match.url_name == 'manage_group_plannedmessages_enabledness'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_plannedmessages_enabledness' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_plannedmessages_enabledness' group_id %}"}<
|
|
%i.fa.fa-pencil(aria-hidden="true")>
|
|
%span>= ' '
|
|
Plan'd Msgs Config
|
|
- if request.resolver_match.url_name == 'manage_group_plannedmessages_timezone'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_plannedmessages_timezone' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_plannedmessages_timezone' group_id %}"}<
|
|
%i.fa.fa-pencil(aria-hidden="true")>
|
|
%span>= ' '
|
|
Plan'd Msgs' Timezone
|
|
- if request.resolver_match.url_name == 'manage_group_plannedmessage'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_plannedmessage' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_plannedmessage' group_id plannedmessage_id %}"}<
|
|
%i.fa.fa-pencil(aria-hidden="true")>
|
|
%span>= ' '
|
|
Edit Planned Message
|
|
- if request.resolver_match.url_name == 'manage_group_planneddispatch'
|
|
%li{'class': "{% if request.resolver_match.url_name == 'manage_group_planneddispatch' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'manage_group_planneddispatch' group_id planneddispatch_id %}"}<
|
|
%i.fa.fa-pencil(aria-hidden="true")>
|
|
%span>= ' '
|
|
Edit Planned Dispatch
|
|
%h3<
|
|
Users' area
|
|
%ul
|
|
%li{'class': "{% if request.resolver_match.url_name|slice:':13' == 'control_panel' %}active{% endif %}"}<
|
|
%a{'href': "{% url 'control_panel' %}"}<
|
|
%i.fa.fa-cogs(aria-hidden="true")>
|
|
%span>= ' '
|
|
Control Panel
|
|
%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.telegram_id
|
|
)
|
|
%a.btn.btn-danger(href="{% url 'logout' %}")
|
|
%i.fa.fa-sign-out
|
|
Log out
|
|
- else
|
|
%a.btn.btn-success(href="https://t.me/#{settings.BOT_NAME}/start=true")
|
|
%i.fa.fa-sign-in
|
|
Log in
|
|
%a.btn.btn-info(href="https://t.me/#{settings.BOT_NAME}/startgroup=true")
|
|
%i.fa.fa-user-plus
|
|
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://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://fontawesome.com/v4.7.0/")>Font Awesome
|
|
, a free pictographic language of web-related actions
|
|
%li<
|
|
%a(href="{% url 'python_licenses' %}")>These other Python projects
|
|
, which are powers this web application
|