Browse Source

Carátulas de albumes en detalle de artista y ordenación de canciones por pista

main
Celestino Rey 7 months ago
parent
commit
e0375ad845
5 changed files with 11 additions and 4 deletions
  1. +1
    -1
      K8S/Makefile
  2. +1
    -1
      K8S/entraPsql.sh
  3. +1
    -1
      K8S/env-prod-configmap.yaml
  4. +1
    -1
      src/lyrics/views.py
  5. +7
    -0
      src/templates/lyrics/detalle_artista.html

+ 1
- 1
K8S/Makefile View File

@ -1,6 +1,6 @@
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=registry.reymota.es export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.74
export IMG_VERSION = 0.76
export IMG_NGINX_VERSION = 1.0 export IMG_NGINX_VERSION = 1.0
# limpia todo # limpia todo


+ 1
- 1
K8S/entraPsql.sh View File

@ -1 +1 @@
kubectl -n reymota exec -ti deployment.apps/db -- psql --username=creylopez --dbname=reymota
kubectl -n reymota exec -ti deployment.apps/postgresql -- psql --username=creylopez --dbname=reymota

+ 1
- 1
K8S/env-prod-configmap.yaml View File

@ -2,7 +2,7 @@ apiVersion: v1
data: data:
DEBUG: "False" DEBUG: "False"
ENTORNO: "Producción" ENTORNO: "Producción"
APP_VERSION: 15.0.1
APP_VERSION: 15.0.3
SECRET_KEY: change_me SECRET_KEY: change_me
SQL_HOST: postgresql SQL_HOST: postgresql
SQL_PORT: "5432" SQL_PORT: "5432"


+ 1
- 1
src/lyrics/views.py View File

@ -81,7 +81,7 @@ def lista_albumes(request):
@login_required @login_required
def detalle_album(request, album_id): def detalle_album(request, album_id):
album = get_object_or_404(Album, pk=album_id) album = get_object_or_404(Album, pk=album_id)
songs = Song.objects.filter(album_id=album_id)
songs = Song.objects.filter(album_id=album_id).order_by("pista")
return render(request, 'lyrics/detalle_album.html', {'album': album, 'songs': songs}) return render(request, 'lyrics/detalle_album.html', {'album': album, 'songs': songs})


+ 7
- 0
src/templates/lyrics/detalle_artista.html View File

@ -41,6 +41,13 @@
<tbody> <tbody>
{% for album in albumes %} {% for album in albumes %}
<tr> <tr>
<td class="cell">
{% if album.cover_image %}
<img src="{{ album.cover_image.url }}" alt="{{ album.name }}" style="width:50px;height:50px;">
{% else %}
Sin imágen
{% endif %}
</td>
<td class="cell"><a href="{% url 'lyrics:detalle_album' album_id=album.id %}">{{ album.name }}</a></td> <td class="cell"><a href="{% url 'lyrics:detalle_album' album_id=album.id %}">{{ album.name }}</a></td>
<td class="cell">{{ album.artist }}</td> <td class="cell">{{ album.artist }}</td>
<td class="cell">{{ album.year }}</td> <td class="cell">{{ album.year }}</td>


Loading…
Cancel
Save