[COMPONENTS][Collection] Notes collection template now has a default title

[CARDS][Note] Removed note actions from minimal note block
This commit is contained in:
Eliseu Amaro 2022-01-17 02:51:20 +00:00 committed by Hugo Sales
parent 077cbcf424
commit 7daa61500d
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 55 additions and 52 deletions

View File

@ -13,9 +13,13 @@
{{ block | raw }}
{% endfor %}
{% if notes is defined %}
<section>
<header class="feed-header">
{% if page_title is defined %}
<h1 class="heading-no-margin">{{ page_title | trans }}</h1>
{% else %}
<h1 class="heading-no-margin">{{ 'Notes' | trans }}</h1>
{% endif %}
<nav class="feed-actions">
<details class="feed-actions-details">
@ -33,10 +37,10 @@
</nav>
</header>
{% if notes is not empty %}
{# Backwards compatibility with hAtom 0.1 #}
<main class="feed" tabindex="0" role="feed">
<div class="h-feed hfeed notes">
{% if notes is defined and notes is not empty %}
{% for conversation in notes %}
{% block current_note %}
{% if conversation is instanceof('array') %}
@ -47,11 +51,9 @@
<hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
{% endblock current_note %}
{% endfor %}
{% else %}
<div class="feed-empty">
{{ icon('logo', 'icon feed-background') | raw }}
</div>
{% endif %}
</div>
</main>
{% endif %}
</section>
{% endif %}
{% endblock body %}

View File

@ -107,7 +107,6 @@
{% endblock note_sidebar %}
{% block note_info %}
<div class="note-info">
<div class="note-info-start">
{{ block('note_author') }}
<small class="note-conversation-info">
@ -117,9 +116,6 @@
class="note-url">{{ note.getModified() | ago }}</a>
</small>
</div>
{{ block('note_actions') }}
</div>
{% endblock note_info %}
{% block note_complementary_info %}
@ -162,7 +158,10 @@
class="h-entry hentry note" lang={{ note.getLanguageLocale() }}>
{{ block('note_sidebar') }}
<div class="note-wrapper">
<div class="note-info">
{{ block('note_info') }}
{{ block('note_actions') }}
</div>
<section role="dialog" class="e-content entry-content note-content">
{{ block('note_text') }}
@ -188,7 +187,9 @@
<article class="h-entry hentry note" lang={{ note.getLanguageLocale() }}>
{{ block('note_sidebar') }}
<div class="note-wrapper">
<div class="note-info">
{{ block('note_info') }}
</div>
<section role="dialog" class="e-content entry-content note-content">
{{ block('note_text') }}