mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Merge branch 'beta' into 'master'
Remove padding around note picture See merge request bde/nk20!111
This commit is contained in:
commit
2f6c7ed156
@ -109,6 +109,12 @@ class Note(PolymorphicModel):
|
|||||||
# Save alias
|
# Save alias
|
||||||
a.note = self
|
a.note = self
|
||||||
a.save(force_insert=True)
|
a.save(force_insert=True)
|
||||||
|
else:
|
||||||
|
# Check if the name of the note changed without changing the normalized form of the alias
|
||||||
|
alias = Alias.objects.get(normalized_name=Alias.normalize(str(self)))
|
||||||
|
if alias.name != str(self):
|
||||||
|
alias.name = str(self)
|
||||||
|
alias.save()
|
||||||
|
|
||||||
def clean(self, *args, **kwargs):
|
def clean(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
@ -37,7 +37,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
{# Preview note profile (picture, username and balance) #}
|
{# Preview note profile (picture, username and balance) #}
|
||||||
<div class="col-md-3" id="note_infos_div">
|
<div class="col-md-3" id="note_infos_div">
|
||||||
<div class="card bg-light border-success shadow mb-4 text-center">
|
<div class="card bg-light border-success shadow mb-4 pt-4 text-center">
|
||||||
<a id="profile_pic_link" href="#"><img src="{% static "member/img/default_picture.png" %}"
|
<a id="profile_pic_link" href="#"><img src="{% static "member/img/default_picture.png" %}"
|
||||||
id="profile_pic" alt="" class="img-fluid rounded mx-auto"></a>
|
id="profile_pic" alt="" class="img-fluid rounded mx-auto"></a>
|
||||||
<div class="card-body text-center">
|
<div class="card-body text-center">
|
||||||
|
Loading…
Reference in New Issue
Block a user