Skip to content

Commit

Permalink
Merge branch 'main' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-reeve committed Jul 10, 2022
2 parents 7382f23 + bead43a commit cf59591
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bookwyrm/settings.py
Expand Up @@ -11,7 +11,7 @@
env = Env()
env.read_env()
DOMAIN = env("DOMAIN")
VERSION = "0.4.2"
VERSION = "0.4.3"

RELEASE_API = env(
"RELEASE_API",
Expand Down
4 changes: 2 additions & 2 deletions bookwyrm/static/css/bookwyrm/components/_book_list.scss
Expand Up @@ -6,11 +6,11 @@ ol.ordered-list {
counter-reset: list-counter;
}

ol.ordered-list li {
ol.ordered-list > li {
counter-increment: list-counter;
}

ol.ordered-list li::before {
ol.ordered-list > li::before {
content: counter(list-counter);
position: absolute;
left: -20px;
Expand Down
2 changes: 1 addition & 1 deletion bookwyrm/templates/notifications/items/boost.html
Expand Up @@ -118,7 +118,7 @@
<div class="notification py-2 {% if notification.id in unread %}is-primary is-light{% else %}has-background-body has-text-muted{% endif %}">
<div class="columns">
<div class="column is-clipped">
{% include 'snippets/status_preview.html' with status=related_status %}
{% include 'notifications/items/status_preview.html' with status=related_status %}
</div>
<div class="column is-narrow has-text-muted">
{{ related_status.published_date|timesince }}
Expand Down
2 changes: 1 addition & 1 deletion bookwyrm/templates/notifications/items/fav.html
Expand Up @@ -119,7 +119,7 @@
<div class="notification py-2 {% if notification.id in unread %}is-primary is-light{% else %}has-background-body has-text-muted{% endif %}">
<div class="columns">
<div class="column is-clipped">
{% include 'snippets/status_preview.html' with status=related_status %}
{% include 'notifications/items/status_preview.html' with status=related_status %}
</div>
<div class="column is-narrow has-text-muted">
{{ related_status.published_date|timesince }}
Expand Down
2 changes: 1 addition & 1 deletion bookwyrm/templates/notifications/items/mention.html
Expand Up @@ -51,7 +51,7 @@
<div class="notification py-2 {% if notification.id in unread %}is-primary is-light{% else %}has-background-body has-text-default{% endif %}">
<div class="columns">
<div class="column is-clipped">
{% include 'snippets/status_preview.html' with status=related_status %}
{% include 'notifications/items/status_preview.html' with status=related_status %}
</div>
<div class="column is-narrow has-text-default">
{{ related_status.published_date|timesince }}
Expand Down
2 changes: 1 addition & 1 deletion bookwyrm/templates/notifications/items/reply.html
Expand Up @@ -54,7 +54,7 @@
<div class="notification py-2 {% if notification.id in unread %}is-primary is-light{% else %}has-background-body has-text-default{% endif %}">
<div class="columns">
<div class="column is-clipped">
{% include 'snippets/status_preview.html' with status=related_status %}
{% include 'notifications/items/status_preview.html' with status=related_status %}
</div>
<div class="column is-narrow has-text-default">
{{ related_status.published_date|timesince }}
Expand Down
@@ -1,4 +1,17 @@
{% if status.content %}
{% load i18n %}
{% if status.content_warning %}

{% trans "Content warning" as text %}
<span>
<span class="icon icon-warning is-size-5" title="{{ text }}">
<span class="is-sr-only">{{ text }}</span>
</span>

<a href="{{ status.local_path }}">
{{ status.content_warning }}
</a>
</span>
{% elif status.content %}
<a href="{{ status.local_path }}">
{{ status.content | safe | truncatewords_html:10 }}{% if status.mention_books %} <em>{{ status.mention_books.first.title }}</em>{% endif %}
</a>
Expand Down
12 changes: 9 additions & 3 deletions bookwyrm/templates/user_menu.html
Expand Up @@ -68,9 +68,15 @@
<li class="navbar-divider" role="presentation" aria-hidden="true">&nbsp;</li>

<li role="menuitem">
<a href="{% url 'logout' %}" class="navbar-item">
{% trans 'Log out' %}
</a>
<form
name="logout"
method="POST"
action="{% url 'logout' %}"
class="navbar-item"
>
{% csrf_token %}
<button type="submit">{% trans 'Log out' %}</button>
</form>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion bookwyrm/views/landing/login.py
Expand Up @@ -77,7 +77,7 @@ def post(self, request):
class Logout(View):
"""log out"""

def get(self, request):
def post(self, request):
"""done with this place! outa here!"""
logout(request)
return redirect("/")

0 comments on commit cf59591

Please sign in to comment.