Skip to content

Commit 1b4efb2

Browse files
committed
Añadir enlace para enviar mensajes directos en el perfil de usuario y eliminar botón de nuevo chat en la vista de chat.
1 parent 2626400 commit 1b4efb2

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ media/*
5252
ehthumbs.db
5353
Thumbs.db
5454
.coverage
55+
documentacion/documents.md

codigo/accounts/templates/accounts/user_profile.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ <h1 class="profile-title">{{ user.username }}</h1>
8686
<a href="{% url 'reports:create_report' %}?user_id={{ user.id }}" class="button button-secondary">
8787
<i class="fas fa-flag"></i> Reportar
8888
</a>
89+
<a href="{% url 'chat:create_direct_chat' user.id %}" class="button button-secondary">
90+
<i class="fas fa-envelope"></i> Enviar Mensaje
91+
</a>
8992
<a href="javascript:history.back()" class="button button-secondary">
9093
<i class="fas fa-arrow-left"></i> Volver
9194
</a>

codigo/chat/templates/chat/chat.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ <h2>Mis Chats</h2>
4848
{% endfor %}
4949
</div>
5050

51-
<a href="{% url 'chat:my_chats' %}" class="button button-primary">
52-
<i class="fas fa-plus"></i> Nuevo Chat
53-
</a>
5451
</div>
5552

5653
<!-- Área de mensajes -->

0 commit comments

Comments
 (0)