This commit is contained in:
some weird guy
2023-08-29 11:56:34 -07:00
parent 7909335304
commit f381d1d1af
14 changed files with 88 additions and 77 deletions
@@ -41,7 +41,7 @@
{% endif %}
{% endif %}
{% if post.screenshot %}<a class="screenshot-container still-image" href="{% if post.is_reply %}{% url "main:comment-view" post.id %}{% else %}{% url "main:post-view" post.id %}{% endif %}"><img src="{{ post.screenshot }}"></a>{% endif %}
{% if post.video %}<div class="screenshot-container still-image"><video class="vidya" controls src="{{ post.video }}" style="max-width:100%;max-height: 450px;"></video></div>{% endif %}
{% if post.video %}<div class="screenshot-container still-image"><video controls src="{{ post.video }}" style="max-width:100%;max-height: 450px;"></video></div>{% endif %}
{% if post.spoils and not post.is_mine and not post.creator.banned %}
<div class="hidden-content"><p>This post contains spoilers.</p>
<button type="button" class="hidden-content-button">View Post</button>
@@ -88,7 +88,7 @@
{% if post.yt_vid %}
<div class="screenshot-container video"><iframe class="youtube-player" type="text/html" style="max-width:100%;max-height: 450px;" src="https://www.youtube.com/embed/{{ post.yt_vid }}?rel=0&modestbranding=1&iv_load_policy=3" frameborder="0"></iframe></div>
{% elif post.video %}
<div class="screenshot-container video"><video class="vidya" controls src="{{ post.video }}" style="max-width:100%;max-height: 450px;"></video></div>
<div class="screenshot-container video"><video controls src="{{ post.video }}" style="max-width:100%;max-height: 450px;"></video></div>
{% elif post.discord_vid %}
<div class="DiscordCDN-container video">
<video class="discord-player" src="{{ post.url }}" style="max-width:100%;max-height: 450px;" controls></video>
@@ -18,7 +18,7 @@
</div>
{% endif %}
</div><a class="big-button" href="{% url "main:user-posts" user.username %}">View posts</a>
{% if profile.yeahs_visible and request.user.is_authenticated %}
{% if profile.yeahs_visible %}
<div class="post-list-outline">
<h2 class="label">Recently yeahed posts</h2>
{% if yeahed.count < 1 %}
@@ -37,4 +37,4 @@
</div><a class="big-button" href="{% url "main:user-yeahs" user.username %}">View all yeahs</a>
{% endif %}
</div>
{% endblock %}
{% endblock %}