From: Emilie Date: Wed, 21 Sep 2016 13:05:08 +0000 (+0200) Subject: Link type : using font-awesome with class and link type name X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a0c3b0fcba45d94f6a6f8c01bade1ae34f0daa7a;p=mezzo.git Link type : using font-awesome with class and link type name --- diff --git a/app/organization/core/migrations/0003_remove_linktype_picto.py b/app/organization/core/migrations/0003_remove_linktype_picto.py new file mode 100644 index 00000000..6c90e45a --- /dev/null +++ b/app/organization/core/migrations/0003_remove_linktype_picto.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-09-21 13:02 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('organization-core', '0002_linktype_picto'), + ] + + operations = [ + migrations.RemoveField( + model_name='linktype', + name='picto', + ), + ] diff --git a/app/organization/core/models.py b/app/organization/core/models.py index c355ac87..3d0bb98e 100644 --- a/app/organization/core/models.py +++ b/app/organization/core/models.py @@ -148,7 +148,6 @@ class LinkType(models.Model): blank=True, ) ordering = models.PositiveIntegerField(verbose_name=_('ordering'), null=True, blank=True) - picto = FileField(_("picto"), max_length=1024, format="Image", upload_to="images/picto") class Meta: ordering = ['ordering', ] diff --git a/app/templates/network/inc/person/list_circle_style.html b/app/templates/network/inc/person/list_circle_style.html index 9a0f5bde..f2c2ab5a 100644 --- a/app/templates/network/inc/person/list_circle_style.html +++ b/app/templates/network/inc/person/list_circle_style.html @@ -18,9 +18,9 @@ {% if person.description %}

{{ person.description|slice:":255" }}

{% endif %} - {% with person.links.all|get_type_link:'site internet' as web_site %} - {% if web_site %} - Site Web + {% with person.links.first as link %} + {% if link %} + {{ link.link_type.name }} {% endif %} {% endwith %} {% endwith %}