You've already forked snikket-web-portal
Compare commits
1 Commits
feature/au
...
feature/ci
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b84b84b394 |
23
.github/workflows/main.yaml
vendored
23
.github/workflows/main.yaml
vendored
@@ -50,6 +50,29 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m flake8 snikket_web
|
python -m flake8 snikket_web
|
||||||
|
|
||||||
|
translation-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
name: 'lint: i18n'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
- name: Install
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
pip install flask-babel
|
||||||
|
- name: Linting
|
||||||
|
run: |
|
||||||
|
sed -ri '/^"POT-Creation-Date: /d' snikket_web/translations/messages.pot
|
||||||
|
git add snikket_web/translations/messages.pot
|
||||||
|
make extract_translations
|
||||||
|
sed -ri '/^"POT-Creation-Date: /d' snikket_web/translations/messages.pot
|
||||||
|
git diff --exit-code --color -- snikket_web/translations/messages.pot
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
@@ -28,12 +28,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.password.label }}
|
{{ form.password.label }}
|
||||||
{{ form.password(autocomplete="new-password") }}
|
{{ form.password }}
|
||||||
<p class="field-desc weak">{% trans %}Enter a secure password that you do not use anywhere else.{% endtrans %}</p>
|
<p class="field-desc weak">{% trans %}Enter a secure password that you do not use anywhere else.{% endtrans %}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.password_confirm.label }}
|
{{ form.password_confirm.label }}
|
||||||
{{ form.password_confirm(autocomplete="new-password") }}
|
{{ form.password_confirm }}
|
||||||
</div>
|
</div>
|
||||||
<div class="f-bbox">
|
<div class="f-bbox">
|
||||||
{%- call form_button("done", form.action_register, class="primary") -%}{%- endcall -%}
|
{%- call form_button("done", form.action_register, class="primary") -%}{%- endcall -%}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@
|
|||||||
{%- call render_errors(form) %}{% endcall -%}
|
{%- call render_errors(form) %}{% endcall -%}
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.password.label }}
|
{{ form.password.label }}
|
||||||
{{ form.password(autocomplete="new-password") }}
|
{{ form.password }}
|
||||||
</div>
|
</div>
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.password_confirm.label }}
|
{{ form.password_confirm.label }}
|
||||||
{{ form.password_confirm(autocomplete="new-password") }}
|
{{ form.password_confirm }}
|
||||||
</div>
|
</div>
|
||||||
<div class="f-bbox">
|
<div class="f-bbox">
|
||||||
{%- call form_button("passwd", form.action_reset, class="primary") -%}{%- endcall -%}
|
{%- call form_button("passwd", form.action_reset, class="primary") -%}{%- endcall -%}
|
||||||
|
|||||||
@@ -9,15 +9,15 @@
|
|||||||
{%- endcall -%}
|
{%- endcall -%}
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.current_password.label(class="required") }}
|
{{ form.current_password.label(class="required") }}
|
||||||
{{ form.current_password(class=("has-error" if form.current_password.name in form.errors else ""), autocomplete="current-password") }}
|
{{ form.current_password(class=("has-error" if form.current_password.name in form.errors else "")) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.new_password.label(class="required") }}
|
{{ form.new_password.label(class="required") }}
|
||||||
{{ form.new_password(autocomplete="new-password") }}
|
{{ form.new_password }}
|
||||||
</div>
|
</div>
|
||||||
<div class="f-ebox">
|
<div class="f-ebox">
|
||||||
{{ form.new_password_confirm.label(class="required") }}
|
{{ form.new_password_confirm.label(class="required") }}
|
||||||
{{ form.new_password_confirm(class=("has-error" if form.new_password_confirm.name in form.errors else ""), autocomplete="new-password") }}
|
{{ form.new_password_confirm(class=("has-error" if form.new_password_confirm.name in form.errors else "")) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="box warning">
|
<div class="box warning">
|
||||||
<header>{% trans %}Warning{% endtrans %}</header>
|
<header>{% trans %}Warning{% endtrans %}</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user