mirror of
https://github.com/svemagie/indiekit-endpoint-microsub.git
synced 2026-04-02 15:35:00 +02:00
- 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
42 lines
1.5 KiB
Plaintext
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 %}
|