mirror of https://gitlab.crans.org/bde/nk20
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
|
||||
a.note = self
|
||||
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):
|
||||
"""
|
||||
|
|
|
@ -37,7 +37,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
<div class="row">
|
||||
{# Preview note profile (picture, username and balance) #}
|
||||
<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" %}"
|
||||
id="profile_pic" alt="" class="img-fluid rounded mx-auto"></a>
|
||||
<div class="card-body text-center">
|
||||
|
|
Loading…
Reference in New Issue