forked from tanner/qotnews
style: Match non-JS article page styling and layout to JS version
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -49,13 +49,12 @@
|
||||
</div>
|
||||
<div id="root">
|
||||
{% if story %}
|
||||
<div class="container article">
|
||||
<div class="header">
|
||||
{% if show_comments %}
|
||||
<div class="article-container">
|
||||
<div class="article">
|
||||
<h1>{{ story.title }}</h1>
|
||||
{% else %}
|
||||
<h1><a href="{{ story.url or story.link }}">{{ story.title }}</a></h1>
|
||||
{% endif %}
|
||||
<div class="info">
|
||||
Source: <a class="source" href="{{ story.url or story.link }}">{{ url }}</a>
|
||||
</div>
|
||||
<div class="info">
|
||||
{{ story.score }} points
|
||||
by <a href="{{ story.author_link }}">{{ story.author }}</a>
|
||||
@@ -64,17 +63,10 @@
|
||||
{{ story.num_comments }} comment{{ 's' if story.num_comments != 1 }}
|
||||
</a>
|
||||
</div>
|
||||
<div class='dot toggleDot'>
|
||||
<div class='button'>
|
||||
<a href="/{{ story.id }}{{ '/c' if not show_comments else '' }}">
|
||||
{{ '' if not show_comments else '' }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if not show_comments %}
|
||||
<div class="text">{{ story.text | safe }}</div>
|
||||
{% else %}
|
||||
|
||||
{% if not show_comments and story.text %}
|
||||
<div class="story-text">{{ story.text | safe }}</div>
|
||||
{% elif show_comments %}
|
||||
{% macro render_comment(comment, level) %}
|
||||
<div class="comment" style="margin-left: {{ level * 20 }}px">
|
||||
<div class="c-info"><a href="{{ comment.author_link }}">{{ comment.author }}</a></div>
|
||||
@@ -89,6 +81,14 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class='dot toggleDot'>
|
||||
<div class='button'>
|
||||
<a href="/{{ story.id }}{{ '/c' if not show_comments else '' }}">
|
||||
{{ '' if not show_comments else '' }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<!--
|
||||
|
||||
Reference in New Issue
Block a user