tangled
alpha
login
or
join now
aottr.dev
/
paw
0
fork
atom
Free and open source ticket system written in python
0
fork
atom
overview
issues
pulls
pipelines
improve fbl partial
aottr.dev
2 years ago
f5c56f0d
09b4f5ea
+59
-4
4 changed files
expand all
collapse all
unified
split
fbl_integration
models.py
templates
partials
attendee_info.html
paw
__init__.py
static
css
paw.css
+3
fbl_integration/models.py
reviewed
···
10
10
created_at = models.DateTimeField(auto_now_add=True)
11
11
status = models.CharField(max_length=64)
12
12
13
13
+
def tags_list(self):
14
14
+
return self.tags_secured.split(',')
15
15
+
13
16
@classmethod
14
17
def create_user(cls, username) -> PawUser:
15
18
if not PawUser.objects.filter(username=username).exists():
+15
-3
fbl_integration/templates/partials/attendee_info.html
reviewed
···
1
1
{% block attendee_info %}
2
2
{% load i18n %}
3
3
+
{% if fbl_account %}
3
4
<h2 class="font-semibold text-xs mt-4 mb-2">{% trans 'Rawrgister Info' %}</h2>
4
4
-
<div class="text-sm">
5
5
-
{{ fbl_account.username }} <div class="ml-2 badge badge-neutral">#{{ fbl_account.badge_number }}</div>
6
5
7
7
-
{% trans 'Status' %}: <div class="ml-2 badge badge-neutral">{{ fbl_account.status }}</div>
6
6
+
<div class="text-sm flex flex-col">
7
7
+
<div class="my-1 flex items-center">
8
8
+
{{ fbl_account.username }} <div class="ml-2 badge badge-accent">#{{ fbl_account.badge_number }}</div>
9
9
+
</div>
10
10
+
<div class="my-1 flex items-center">
11
11
+
<label class="font-semibold text-xs">{% trans 'Status' %}:</label> <div class="ml-2 badge badge-info">{{ fbl_account.status }}</div>
12
12
+
</div>
13
13
+
<div>
14
14
+
<h3 class="font-semibold text-xs my-1">{% trans 'Tags' %}</h3>
15
15
+
{% for tag in fbl_account.tags_list %}
16
16
+
<div class="badge badge-accent badge-outline mr-2">{{ tag }}</div>
17
17
+
{% endfor %}
18
18
+
</div>
8
19
</div>
20
20
+
{% endif %}
9
21
{% endblock %}
+1
-1
paw/__init__.py
reviewed
···
1
1
from django import get_version
2
2
3
3
PAW_VERSION = (0, 5, 8, "final", 0)
4
4
-
FBL_ITERATION = 3
4
4
+
FBL_ITERATION = 4
5
5
6
6
__version__ = f"{get_version(PAW_VERSION)}-fbl{FBL_ITERATION}"
+40
paw/static/css/paw.css
reviewed
···
1889
1889
color: var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)));
1890
1890
}
1891
1891
1892
1892
+
.badge-info {
1893
1893
+
border-color: transparent;
1894
1894
+
--tw-bg-opacity: 1;
1895
1895
+
background-color: var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));
1896
1896
+
--tw-text-opacity: 1;
1897
1897
+
color: var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)));
1898
1898
+
}
1899
1899
+
1892
1900
.badge-success {
1893
1901
border-color: transparent;
1894
1902
--tw-bg-opacity: 1;
···
1911
1919
background-color: var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));
1912
1920
--tw-text-opacity: 1;
1913
1921
color: var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));
1922
1922
+
}
1923
1923
+
1924
1924
+
.badge-outline {
1925
1925
+
border-color: currentColor;
1926
1926
+
--tw-border-opacity: 0.5;
1927
1927
+
background-color: transparent;
1928
1928
+
color: currentColor;
1914
1929
}
1915
1930
1916
1931
.badge-outline.badge-neutral {
···
1918
1933
color: var(--fallback-n,oklch(var(--n)/var(--tw-text-opacity)));
1919
1934
}
1920
1935
1936
1936
+
.badge-outline.badge-primary {
1937
1937
+
--tw-text-opacity: 1;
1938
1938
+
color: var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)));
1939
1939
+
}
1940
1940
+
1941
1941
+
.badge-outline.badge-secondary {
1942
1942
+
--tw-text-opacity: 1;
1943
1943
+
color: var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)));
1944
1944
+
}
1945
1945
+
1921
1946
.badge-outline.badge-accent {
1922
1947
--tw-text-opacity: 1;
1923
1948
color: var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)));
1949
1949
+
}
1950
1950
+
1951
1951
+
.badge-outline.badge-info {
1952
1952
+
--tw-text-opacity: 1;
1953
1953
+
color: var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)));
1924
1954
}
1925
1955
1926
1956
.badge-outline.badge-success {
···
3290
3320
.my-4 {
3291
3321
margin-top: 1rem;
3292
3322
margin-bottom: 1rem;
3323
3323
+
}
3324
3324
+
3325
3325
+
.my-1 {
3326
3326
+
margin-top: 0.25rem;
3327
3327
+
margin-bottom: 0.25rem;
3328
3328
+
}
3329
3329
+
3330
3330
+
.my-2 {
3331
3331
+
margin-top: 0.5rem;
3332
3332
+
margin-bottom: 0.5rem;
3293
3333
}
3294
3334
3295
3335
.mb-1 {