This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
AppsPy
Watch
1
Star
1
Fork
0
Code
Issues
2
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Cambios en branding y otros menores
politica
Celestino Rey
1 year ago
parent
8110fccc46
commit
2e58b98f04
9 changed files
with
22 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-3
Libros/Pipfile.lock
+0
-1
Libros/biblioteca/.env
+2
-2
Libros/biblioteca/biblioteca/settings.py
+1
-0
Libros/biblioteca/gestion/forms.py
+3
-1
Libros/biblioteca/gestion/templates/_branding.html
+1
-1
Libros/biblioteca/gestion/templates/registration/signup.html
+0
-0
Libros/biblioteca/gestion/templatetags/__init__.py
+11
-0
Libros/biblioteca/gestion/templatetags/filtros_de_entorno.py
+1
-1
RepostajesPy/servicios/repostajes/templates/_branding.html
+ 3
- 3
Libros/Pipfile.lock
View File
@ -26,12 +26,12 @@
},
"django": {
"hashes": [
"sha256:
bd4505cae0b9bd642313e8fb71810893df5dc2ffcacaa67a33af2d5cd61888f2
",
"sha256:
f216510ace3de5de01329463a315a629f33480e893a9024fc93d8c32c22913da
"
"sha256:
848a5980e8efb76eea70872fb0e4bc5e371619c70fffbe48e3e1b50b2c09455d
",
"sha256:
d3b811bf5371a26def053d7ee42a9df1267ef7622323fe70a601936725aa4557
"
],
"index": "pypi",
"markers": "python_version >= '3.10'",
"version": "==5.
0.7
"
"version": "==5.
1
"
},
"django-db": {
"hashes": [
+ 0
- 1
Libros/biblioteca/.env
View File
@ -1 +0,0 @@
VERSION=1.0
+ 2
- 2
Libros/biblioteca/biblioteca/settings.py
View File
@ -105,9 +105,9 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/5.0/topics/i18n/
LANGUAGE_CODE
=
'
e
n-u
s
'
LANGUAGE_CODE
=
'
e
s-e
s
'
TIME_ZONE
=
'
UTC
'
TIME_ZONE
=
'
Europe/Madrid
'
USE_I18N
=
True
+ 1
- 0
Libros/biblioteca/gestion/forms.py
View File
@ -32,6 +32,7 @@ class ReyMotaUserCreationForm(UserCreationForm):
class
Meta
:
model
=
ReyMotaUser
fields
=
(
"
email
"
,
"
nombre
"
,
"
foto
"
)
labels
=
{
'
email
'
:
'
Dirección de correo
'
}
class
ReyMotaUserChangeForm
(
UserChangeForm
)
:
+ 3
- 1
Libros/biblioteca/gestion/templates/_branding.html
View File
@ -1,6 +1,8 @@
{% load static %}
{% load filtros_de_entorno %}
<
div
class
=
"app-branding"
>
<
a
class
=
"app-logo"
href
=
"{% url 'principal' %}"
>
<
img
class
=
"logo-icon me-2"
src
=
"{% static 'images/reymota-logo.svg' %}"
alt
=
"logo"
>
<
span
class
=
"logo-text"
>
LIBROS
<
/
span
>
<
/
a
>
<
a
class
=
"app-logo"
href
=
"{% url 'principal' %}"
>
<
img
class
=
"logo-icon me-2"
src
=
"{% static 'images/reymota-logo.svg' %}"
alt
=
"logo"
>
<
span
class
=
"logo-text"
>
LIBROS
<
/
span
>
<
span
style
=
"color: blue; font-size: 14px;"
>
v {{ "VERSION"|muestra_version }}
<
/
span
>
<
/
a
>
<
/
div
>
<!--
//app
-
branding
-->
+ 1
- 1
Libros/biblioteca/gestion/templates/registration/signup.html
View File
@ -7,7 +7,7 @@
<
div
class
=
"d-flex flex-column align-content-end"
>
<
div
class
=
"app-auth-body mx-auto"
>
{% include "_branding.html" %}
<
h2
class
=
"auth-heading text-center mb-4"
>
Registrarse en L
yric
s
<
/
h2
>
<
h2
class
=
"auth-heading text-center mb-4"
>
Registrarse en L
ibro
s
<
/
h2
>
<
div
class
=
"auth-form-container text-start mx-auto"
>
+ 0
- 0
Libros/biblioteca/gestion/templatetags/__init__.py
View File
+ 11
- 0
Libros/biblioteca/gestion/templatetags/filtros_de_entorno.py
View File
@ -0,0 +1,11 @@
import
os
from
django
import
template
register
=
template
.
Library
(
)
@register.filter
def
muestra_version
(
clave
)
:
print
(
"
muestra_valor:
"
,
clave
)
print
(
"
muestra_valor:
"
,
os
.
getenv
(
clave
)
)
return
os
.
getenv
(
clave
,
'
'
)
+ 1
- 1
RepostajesPy/servicios/repostajes/templates/_branding.html
View File
@ -1,3 +1,3 @@
<
div
class
=
"app-branding"
>
<
a
class
=
"app-logo"
href
=
"{{ url_for('paginas.index') }}"
>
<
img
class
=
"logo-icon me-2"
src
=
"{{ url_for('static', filename='images/reymota-logo.svg') }}"
alt
=
"logo"
>
<
span
class
=
"logo-text"
>
REPOSTAJES
<
/
span
>
<
span
clas
s
=
"
nav-link-text
"
>
v {{ 0|muestra_version('VERSION') }}
<
/
span
>
<
/
a
>
<
a
class
=
"app-logo"
href
=
"{{ url_for('paginas.index') }}"
>
<
img
class
=
"logo-icon me-2"
src
=
"{{ url_for('static', filename='images/reymota-logo.svg') }}"
alt
=
"logo"
>
<
span
class
=
"logo-text"
>
REPOSTAJES
<
/
span
>
<
span
s
tyle
=
"
color: blue; font-size: 14px;
"
>
v {{ 0|muestra_version('VERSION') }}
<
/
span
>
<
/
a
>
<
/
div
>
<!--
//app
-
branding
-->
Write
Preview
Loading…
Cancel
Save