Files
indiekit-endpoint-microsub/views/reader.njk
Ricardo 4a87773d7f chore: phase 2 convention alignment — ms- prefix, onerror removal, visually-hidden fix (v1.0.46)
- Namespace all plugin CSS classes with ms- prefix (20 BEM blocks)
- Update all 19 templates to match prefixed class names
- Replace visually-hidden with -!-visually-hidden (core convention)
- Remove inline onerror handlers from avatar/photo images
- Remove dead source-type SVG icons (Fediverse/Bluesky/Web)

Confab-Link: http://localhost:8080/sessions/bb4a6ec4-b711-48cd-b3d7-942ec2a9851d
2026-03-13 12:32:08 +01:00

42 lines
1.5 KiB
Plaintext

{% extends "layouts/reader.njk" %}
{% block reader %}
<div class="ms-reader">
{% if channels.length > 0 %}
<div class="ms-reader__channels">
{% for channel in channels %}
<a href="{{ baseUrl }}/channels/{{ channel.uid }}" class="ms-reader__channel{% if channel.uid === currentChannel %} ms-reader__channel--active{% endif %}">
<span class="ms-reader__channel-name">
{% if channel.uid === "notifications" %}
{{ icon("mention") }}
{% endif %}
{{ channel.name }}
</span>
{% if channel.unread %}
<span class="ms-reader__channel-badge{% if channel.unread === true %} ms-reader__channel-badge--dot{% endif %}">
{% if channel.unread !== true %}{{ channel.unread }}{% endif %}
</span>
{% endif %}
</a>
{% endfor %}
</div>
<div class="ms-reader__actions">
<a href="{{ baseUrl }}/search" class="button button--primary">
{{ icon("syndicate") }} {{ __("microsub.feeds.follow") }}
</a>
<a href="{{ baseUrl }}/channels/new" class="button button--secondary">
{{ icon("createPost") }} {{ __("microsub.channels.new") }}
</a>
</div>
{% else %}
<div class="ms-reader__empty">
{{ icon("syndicate") }}
<p>{{ __("microsub.channels.empty") }}</p>
<a href="{{ baseUrl }}/channels/new" class="button button--primary">
{{ __("microsub.channels.new") }}
</a>
</div>
{% endif %}
</div>
{% endblock %}