Fix linter fails with the CI (#497)
This commit is contained in:
parent
94271b34ac
commit
21e286c5d2
|
@ -68,10 +68,10 @@
|
||||||
|
|
||||||
<div class="view-options follows">
|
<div class="view-options follows">
|
||||||
<a href="{{ identity.urls.view }}" {% if not follows_page %}class="selected"{% endif %}><strong>{{ post_count }}</strong> posts</a>
|
<a href="{{ identity.urls.view }}" {% if not follows_page %}class="selected"{% endif %}><strong>{{ post_count }}</strong> posts</a>
|
||||||
{% if identity.local and identity.config_identity.visible_follows %}
|
{% if identity.local and identity.config_identity.visible_follows %}
|
||||||
<a href="{{ identity.urls.following }}" {% if not inbound and follows_page %}class="selected"{% endif %}><strong>{{ following_count }}</strong> following</a>
|
<a href="{{ identity.urls.following }}" {% if not inbound and follows_page %}class="selected"{% endif %}><strong>{{ following_count }}</strong> following</a>
|
||||||
<a href="{{ identity.urls.followers }}" {% if inbound and follows_page %}class="selected"{% endif %}><strong>{{ followers_count }}</strong> follower{{ followers_count|pluralize }}</a>
|
<a href="{{ identity.urls.followers }}" {% if inbound and follows_page %}class="selected"{% endif %}><strong>{{ followers_count }}</strong> follower{{ followers_count|pluralize }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not identity.local %}
|
{% if not identity.local %}
|
||||||
|
|
|
@ -23,7 +23,7 @@ def test_visible_follows_disabled(client, identity):
|
||||||
"""
|
"""
|
||||||
Config.set_identity(identity, "visible_follows", True)
|
Config.set_identity(identity, "visible_follows", True)
|
||||||
response = client.get(identity.urls.view)
|
response = client.get(identity.urls.view)
|
||||||
assertContains(response, 'follower', status_code=200)
|
assertContains(response, "follower", status_code=200)
|
||||||
Config.set_identity(identity, "visible_follows", False)
|
Config.set_identity(identity, "visible_follows", False)
|
||||||
response = client.get(identity.urls.view)
|
response = client.get(identity.urls.view)
|
||||||
assertNotContains(response, 'follower', status_code=200)
|
assertNotContains(response, "follower", status_code=200)
|
||||||
|
|
Loading…
Reference in New Issue