{% from 'macros/base.html' import api_button %} {% macro table(tag=None) -%}
Channel Title Published Actions
{%- endmacro %} {% macro table_thumbnails(row) -%} {%- endmacro %} {% macro table_channel(row) -%} {{ row.Video.channel.name }} {%- endmacro %} {% macro table_title(row) -%} {{ row.Video.name | safe }}

#{{ row.Video.id }}

{%- endmacro %} {% macro table_published(row) -%}

{%- endmacro %} {% macro table_actions(row, global_actions) -%}
{% for action in row.Subscription.actions + global_actions %} {{ api_button( action.name, 'api_video.execute_action', button_variant='primary', path_params=dict(video_id=row.Video.id, action_id=action.id) ) }} {% endfor %}
{%- endmacro %} {% macro check_button() -%} {{ api_button( 'Mark all as Checked', 'api_video.mark_as_checked', classes=['btn-all-checked', 'mb-2'], onclick='$(this).updateVideoIds().buttonAPI().reloadTable()', restore=True ) }} {%- endmacro %}