<xf:title>{{ phrase('rss_feed_importer') }}</xf:title>

<xf:pageaction>
	<xf:button href="{{ link('feeds/add') }}" icon="add">{{ phrase('add_feed') }}</xf:button>
</xf:pageaction>

<xf:if is="$feeds is not empty">
	<xf:form action="{{ link('feeds/toggle') }}" class="block" ajax="true">
		<div class="block-outer">
			<xf:macro template="filter_macros" name="quick_filter" arg-key="feeds" arg-class="block-outer-opposite" />
		</div>
		<div class="block-container">
			<div class="block-body">
				<xf:datalist>
					<xf:foreach loop="$feeds" value="$feed">
						<xf:datarow>
							<xf:main hash="{$feed.feed_id}" href="{{ link('feeds/edit', $feed) }}"
								label="{$feed.title}" explain="{$feed.url}" />
							<xf:toggle name="active[{$feed.feed_id}]" selected="$feed.active"
								class="dataList-cell--separated" submit="true"
								tooltip="{{ phrase('enable_disable_x', {'title': $feed.title}) }}" />
							<xf:action href="{{ link('feeds/import', $feed) }}">{{ phrase('import_now') }}</xf:action>
							<xf:delete href="{{ link('feeds/delete', $feed) }}" />
						</xf:datarow>
					</xf:foreach>
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($feeds) }}</span>
			</div>
		</div>
	</xf:form>
<xf:else />
	<div class="blockMessage">{{ phrase('no_feeds_have_been_registered_yet') }}</div>
</xf:if>