{% block body %}
{{ macros.nav_head(page_names) }}
-{{ macros.file_data_form(file, unused_tags, page_names, redir_target="/{{page_names.file}}/{{file.digest.b64}}", flag_names) }}
+{{ macros.file_data_form(file, unused_tags, page_names, redir_target, flag_names) }}
{% endblock %}
<tr>
<td class="screen_half">
{% if current_file %}
-{{ macros.file_data_form(current_file, unused_tags, page_names, redir_target="{{redir_target}}", playlist_view=true) }}
+{{ macros.file_data_form(current_file, unused_tags, page_names, redir_target, playlist_view=true) }}
{% endif %}
</td>
<td class="screen_half">
with DbConn() as conn:
file = VideoFile.get_one(conn, digest)
unused_tags = file.unused_tags(conn)
+ redir_target = Path('/').joinpath(PAGE_NAMES['file']).joinpath(
+ file.digest.b64)
self._send_rendered_template(_NAME_TEMPLATE_FILE_DATA,
{'file': file,
'flag_names': list(FILE_FLAGS),
- 'unused_tags': unused_tags})
+ 'unused_tags': unused_tags,
+ 'redir_target': redir_target})
def _send_files_index(self, params: _ReqMap) -> None:
filter_path = FilterStr(params.single_value('filter_path'))