Skip to content
This repository was archived by the owner on May 23, 2018. It is now read-only.

Algorithm for arrow visualisationΒ #2

@StanimirTsankov

Description

@StanimirTsankov

I think that algorithm for arrows is wrong, because they are always the same like in the beginning. This is my suggestion.
list__action_down.html
{% block field %} {% spaceless %} {%if object.parent is not null and object.parent.right-1 > object.right%} <a class="btn btn-sm btn-default" href="{{ admin.generateObjectUrl('down', object) }}"> &darr; </a> {%endif%} {% endspaceless %} {% endblock %}
list__action_up.html
{% block field %} {% spaceless %} {%if object.parent is not null and object.left > object.parent.left+1%} <a class="btn btn-sm btn-default" href="{{ admin.generateObjectUrl('up', object) }}"> &uarr; </a> {%endif%} {% endspaceless %} {% endblock %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions