{% load staff_books_link russian %}
{% if bi.location_staff %}
    {% if bi.is_tablebook %}<img src="/media/i/tablebook.png"/>{% endif %}
	{% staff_books_link bi.location_staff %}
    {% if bi.office %}
        - <span class="b-office">{{ bi.office.short_name }}{% if bi.from_date and not bi.is_tablebook %},{% endif %}</span>
    {% endif %}
	{% if bi.from_date and not bi.is_tablebook %}<span class="from-date">c {{ bi.from_date|date:"d.m.Y" }}</span>{% endif %}
{% else %}
	<lego:b-icon></lego:b-icon>
	<span class="inoffice">{{ bi.location_text }}</span>
{% endif %}
