mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +00:00
Break word with CSS and not with a specific method of interfaces
This commit is contained in:
parent
8a722d825e
commit
a12ed72c87
2 changed files with 1 additions and 5 deletions
|
@ -1626,9 +1626,6 @@ class Interface(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model):
|
||||||
)
|
)
|
||||||
return True, None, None
|
return True, None, None
|
||||||
|
|
||||||
def splited_name(self):
|
|
||||||
return str(self).replace('.',' .')
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Interface, self).__init__(*args, **kwargs)
|
super(Interface, self).__init__(*args, **kwargs)
|
||||||
self.field_permissions = {"machine": self.can_change_machine}
|
self.field_permissions = {"machine": self.can_change_machine}
|
||||||
|
|
|
@ -305,8 +305,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
</div>
|
</div>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for interface in interfaces|slice:":5" %}
|
{% for interface in interfaces|slice:":5" %}
|
||||||
<div class="list-group-item visible-xs visible-lg">{{ interface }}</div>
|
<div class="list-group-item" style="word-break: break-all">{{ interface }}</div>
|
||||||
<div class="list-group-item visible-sm visible-md">{{ interface.splited_name}}</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if interfaces|length > 5 %}
|
{% if interfaces|length > 5 %}
|
||||||
<a class="list-group-item list-group-item-info" role="button" href="{% url 'users:mon-profil' %}">
|
<a class="list-group-item list-group-item-info" role="button" href="{% url 'users:mon-profil' %}">
|
||||||
|
|
Loading…
Reference in a new issue