Browse Source

Correcciones para flake8

politica
Celestino Rey 1 year ago
parent
commit
7b9e6427c5
5 changed files with 12 additions and 12 deletions
  1. +1
    -1
      ReyMotaAppsDj/K8S/verImg.sh
  2. +3
    -3
      ReyMotaAppsDj/reymota/templates/libros/detalle_autor.html
  3. +1
    -1
      ReyMotaAppsDj/reymota/templates/libros/detalle_libro.html
  4. +4
    -4
      ReyMotaAppsDj/reymota/templates/libros/lista_autores.html
  5. +3
    -3
      ReyMotaAppsDj/reymota/templates/libros/lista_libros.html

+ 1
- 1
ReyMotaAppsDj/K8S/verImg.sh View File

@ -1 +1 @@
docker run -it registry.reymota.es/apuntes:1.19 bash
docker run -it registry.reymota.es/reymota-x86_64:0.1 bash

+ 3
- 3
ReyMotaAppsDj/reymota/templates/libros/detalle_autor.html View File

@ -41,7 +41,7 @@
<tbody>
{% for libro in libros %}
<tr>
<td class="cell"><a href="{% url 'detalle_libro' libro.id %}">{{ libro.titulo }}</a></td>
<td class="cell"><a href="{% url 'libros:detalle_libro' libro.id %}">{{ libro.titulo }}</a></td>
{% if libro.portada %}
<td class="cell"><img src="{{ libro.portada.url }}" alt="Portada del libro" width="200"></td>
{% else %}
@ -61,11 +61,11 @@
<div class="row g-3 mb-4 align-items-center justify-content-between">
<div class="col-auto">
<a class="btn app-btn-secondary" href="{% url 'lista_libros' %}">Volver al inicio</a>
<a class="btn app-btn-secondary" href="{% url 'libros:lista_libros' %}">Volver al inicio</a>
</div>
<div class="col-auto">
<a class="btn app-btn-primary" href="{% url 'nuevo_libro' %}">Añadir libro</a> <!-- Faltaría poner el id del autor-->
<a class="btn app-btn-primary" href="{% url 'libros:nuevo_libro' %}">Añadir libro</a> <!-- Faltaría poner el id del autor-->
</div>
</div>
</div>


+ 1
- 1
ReyMotaAppsDj/reymota/templates/libros/detalle_libro.html View File

@ -29,7 +29,7 @@
<li class="list-inline-item">|</li>
<li class="list-inline-item">{{ libro.fecha_publicacion }}</li>
<li class="list-inline-item">|</li>
<li class="list-inline-item"><a href="{% url 'detalle_autor' libro.autor_id %}">{{ libro.autor.nombre }}</a></li>
<li class="list-inline-item"><a href="{% url 'libros:detalle_autor' libro.autor_id %}">{{ libro.autor.nombre }}</a></li>
</ul>
</div><!--//col-->
</tr>


+ 4
- 4
ReyMotaAppsDj/reymota/templates/libros/lista_autores.html View File

@ -35,7 +35,7 @@
{% else %}
Sin imágen
{% endif %}
<h4 class="app-doc-title truncate mb-0"><a href="{% url 'detalle_autor' autor.id %}">{{ autor.nombre}}</a></h4>
<h4 class="app-doc-title truncate mb-0"><a href="{% url 'libros:detalle_autor' autor.id %}">{{ autor.nombre}}</a></h4>
<div class="app-card-actions">
<div class="dropdown">
@ -45,14 +45,14 @@
</svg>
</div><!--//dropdown-toggle-->
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{% url 'detalle_autor' autor.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-eye me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<li><a class="dropdown-item" href="{% url 'libros:detalle_autor' autor.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-eye me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.134 13.134 0 0 0 1.66 2.043C4.12 11.332 5.88 12.5 8 12.5c2.12 0 3.879-1.168 5.168-2.457A13.134 13.134 0 0 0 14.828 8a13.133 13.133 0 0 0-1.66-2.043C11.879 4.668 10.119 3.5 8 3.5c-2.12 0-3.879 1.168-5.168 2.457A13.133 13.133 0 0 0 1.172 8z"/>
<path fill-rule="evenodd" d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
</svg>Ver</a></li>
<li><a class="dropdown-item" href="{% url 'editar_autor' autor.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<li><a class="dropdown-item" href="{% url 'libros:editar_autor' autor.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5L13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175l-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"/>
</svg>Editar</a></li>
<li><a class="dropdown-item" href="{% url 'eliminar_autor' autor.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-download me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<li><a class="dropdown-item" href="{% url 'libros:eliminar_autor' autor.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-download me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>
<path fill-rule="evenodd" d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>
</svg>Eliminar</a></li>


+ 3
- 3
ReyMotaAppsDj/reymota/templates/libros/lista_libros.html View File

@ -34,10 +34,10 @@
{% else %}
Sin imágen
{% endif %}
<h4 class="app-doc-title truncate mb-0"><a href="{% url 'detalle_libro' libro.id %}">{{ libro.titulo }}</a></h4>
<h4 class="app-doc-title truncate mb-0"><a href="{% url 'libros:detalle_libro' libro.id %}">{{ libro.titulo }}</a></h4>
<div class="app-doc-meta">
<ul class="list-unstyled mb-0">
<li><span class="text-muted">Autor: </span><a href="{% url 'detalle_autor' libro.autor.id %}">{{ libro.autor.nombre }}</a></li>
<li><span class="text-muted">Autor: </span><a href="{% url 'libros:detalle_autor' libro.autor.id %}">{{ libro.autor.nombre }}</a></li>
</ul>
</div><!--//app-doc-meta-->
@ -49,7 +49,7 @@
</svg>
</div><!--//dropdown-toggle-->
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{% url 'editar_libro' libro.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<li><a class="dropdown-item" href="{% url 'libros:editar_libro' libro.id %}"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-pencil me-2" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5L13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175l-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"/>
</svg>Editar</a></li>


Loading…
Cancel
Save