2016-08-10 03:48:06 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% if file %}
|
|
|
|
{{ file.get_display_name() }}
|
|
|
|
{% elif file_list %}
|
|
|
|
{% trans %}File list{% endtrans %}
|
|
|
|
{% elif new_file %}
|
|
|
|
{% trans %}New file{% endtrans %}
|
|
|
|
{% else %}
|
|
|
|
{% trans %}Not found{% endtrans %}
|
|
|
|
{% endif %}
|
2016-08-10 03:48:06 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% macro print_file_name(file) %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% if file %}
|
|
|
|
{{ print_file_name(file.parent) }} >
|
|
|
|
<a href="{{ url('core:file_detail', file_id=file.id, popup=popup) }}">{{ file.get_display_name() }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ url('core:file_list', popup) }}">{% trans %}Files{% endtrans %}</a>
|
|
|
|
{% endif %}
|
2016-08-10 03:48:06 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{{ print_file_name(file) }}
|
2016-08-10 03:48:06 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
<div class="tool_bar">
|
2016-08-10 03:48:06 +00:00
|
|
|
<div class="tools">
|
2024-07-23 22:16:31 +00:00
|
|
|
<div>
|
|
|
|
{% set home = user.home %}
|
|
|
|
{% if home %}
|
|
|
|
<a href="{{ url('core:file_detail', home.id, popup) }}">{% trans %}My files{% endtrans %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% if file %}
|
2016-08-10 03:48:06 +00:00
|
|
|
<a href="{{ url('core:file_detail', file.id, popup) }}">{% trans %}View{% endtrans %}</a>
|
|
|
|
{% if can_edit(file, user) %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<a href="{{ url('core:file_edit', file_id=file.id, popup=popup) }}">{% trans %}Edit{% endtrans %}</a>
|
2016-08-10 03:48:06 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if can_edit_prop(file, user) %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<a href="{{ url('core:file_prop', file_id=file.id, popup=popup) }}">{% trans %}Prop{% endtrans %}</a>
|
2016-08-10 03:48:06 +00:00
|
|
|
{% endif %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endif %}
|
2016-08-10 03:48:06 +00:00
|
|
|
</div>
|
2024-07-23 22:16:31 +00:00
|
|
|
</div>
|
|
|
|
<hr>
|
2016-08-10 03:48:06 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% if file %}
|
|
|
|
{% block file %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
2016-08-10 03:48:06 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
{% block script %}
|
|
|
|
{{ super() }}
|
|
|
|
{% if popup %}
|
|
|
|
<script>
|
|
|
|
parent.$(".choose_file_widget").css("height", "75%");
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2016-08-15 19:04:06 +00:00
|
|
|
|
2016-08-10 03:48:06 +00:00
|
|
|
{% endblock %}
|