diff --git a/templates/inn.html b/templates/inn.html index af26147..2c96ba0 100644 --- a/templates/inn.html +++ b/templates/inn.html @@ -81,37 +81,25 @@ -
+
{% for post in posts %} -
-
+
+
- +

-
-
+
+
- {% if post.is_pinned %} - - {% endif %}{{post.title}} - + {% if post.is_pinned %} 📌 {% endif %}{{post.title}}
-
-
- - {{post.inn_name}} - - - {{post.created_at}} - - {% match post.last_reply %}{% when Some(user) %} - - - {{user.1}} - - {% else %}{% endmatch %} -
+
+ {{post.inn_name}} + {{post.created_at}} + {% match post.last_reply %}{% when Some(user) %} + {{user.1}} + {% else %}{% endmatch %}
diff --git a/templates/inn_list.html b/templates/inn_list.html index 0328d55..09ffc4c 100644 --- a/templates/inn_list.html +++ b/templates/inn_list.html @@ -46,45 +46,31 @@
-
+
{% for inn in inns %} -
-
+
+
-
-
- {{inn.inn_name}} - {% if !inn.about.is_empty() %} -
{{inn.about}}
- {% endif %} -
+
+ + {% if !inn.about.is_empty() %} +
{{inn.about}}
+ {% endif %}
-
-
- {% for topic in inn.topics %} - - - {{topic}} - - - {% endfor %} - {% match filter.as_deref() %} {% when Some with ("mod") %} - - - {{ "edit"|l10n(page_data.lang) }} - - - {% when Some with ("joined") %} - - - {{ "exit"|l10n(page_data.lang) }} - - - {% else %}{% endmatch %} -
+ +
+ {% for topic in inn.topics %} + {{topic}} + {% endfor %} + + {% match filter.as_deref() %} {% when Some with ("mod") %} + Edit + {% when Some with ("joined") %} + {{ "exit"|l10n(page_data.lang) }} + {% else %}{% endmatch %}
{% endfor %} diff --git a/templates/search.html b/templates/search.html index b629553..6a25b90 100644 --- a/templates/search.html +++ b/templates/search.html @@ -66,29 +66,24 @@
-
+
{% for out in outs %} -
+
{% match out.uid %} {% when Some(uid) %} -
+
- - - +

{% else %}{% endmatch %} -
-
-

- - {{out.title}} - -

-

- {{out.date}} - {{out.ctype}} -

+
+ +
+ {{out.date}} + {{out.ctype}}
diff --git a/templates/tag.html b/templates/tag.html index 4183c03..d763c55 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -15,53 +15,32 @@
  • {{ "joined"|l10n(page_data.lang) }}
  • {{ "following"|l10n(page_data.lang) }}
  • {% endif %} -
  • - - - {{tag}} - -
  • +
  • 🏷️ {{tag}}
  • -
    +
    {% for post in posts %} -
    -
    +
    +
    - - - +

    -
    -
    -

    - - {{post.title}} - -

    -

    - - - {{post.inn_name}} - - - - {{post.created_at}} - -

    -
    -
    -
    - {% if post.comment_count >0 %} - {{post.comment_count}} - {% endif %} -
    +
    + +
    + {{post.inn_name}} + {{post.created_at}}
    +
    + {% if post.comment_count >0 %} + {{post.comment_count}} + {% endif %} +
    {% endfor %}
    diff --git a/templates/user_list.html b/templates/user_list.html index 3ae8679..6cd13f7 100644 --- a/templates/user_list.html +++ b/templates/user_list.html @@ -87,73 +87,71 @@
    -
    +
    {% for user in users %} -
    -
    +
    +
    -
    -
    -

    {{user.username}}

    -

    {{user.about}}

    -
    -
    - {% if is_admin %} - {% match filter.as_deref() %} {% when Some with ("inn") %} -
    -
    -
    -

    - - - -

    -
    - -
    +
    + +
    {{user.about}}
    +
    +
    + {% if is_admin %} + {% match filter.as_deref() %} {% when Some with ("inn") %} + +
    +
    +

    + + + +

    +
    +
    -
    - - {% when None %} -
    -
    -
    -

    - - - -

    -
    - -
    +
    +
    +
    + {% when None %} +
    +
    +
    +

    + + + +

    +
    +
    -
    -
    - {% else %} - {{user.role_desc}} - {% endmatch %} +
    +
    + {% else %} {{user.role_desc}} - {% endif %} -
    + {% endmatch %} + {% else %} + {{user.role_desc}} + {% endif %}
    {% endfor %}