Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

True up templates to CSS (fixes #291). #297

Merged
merged 1 commit into from
Jun 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions grip/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,28 @@
{%- endblock -%}

{%- block page -%}
<div id="preview-page" class="preview-page" data-autorefresh-url="{{ autorefresh_url if autorefresh_url }}">
<div>&nbsp;</div>
<div id="preview-page" data-autorefresh-url="{{ autorefresh_url if autorefresh_url }}">

{% if not user_content %}

<div role="main" class="main-content">
<div class="container new-discussion-timeline experiment-repo-nav">
<div class="container-lg new-discussion-timeline experiment-repo-nav">
<div class="repository-content">
<div id="readme" class="readme boxed-group clearfix announce instapaper_body md">
{% if not user_content and title or filename %}
<h3>
<span class="octicon octicon-book"></span>
{% if title %}{{ title }}{% else %}{{ filename }}{% endif %}
</h3>
{% endif %}
<article class="markdown-body entry-content" itemprop="text" id="grip-content">
{{ content|safe }}
</article>
<div class="Box mt-3 position-relative">
{% if not user_content and title or filename %}
<div class="commit-tease d-flex rounded-top-1" style="border: 0; border-bottom: 1px solid #c8e1ff;">
<h5>
<span class="octicon octicon-book"></span>
{% if title %}{{ title }}{% else %}{{ filename }}{% endif %}
</h5>
</div>
{% endif %}
<div id="readme" class="Box-body readme blob instapaper_body js-code-block-container">
<article id="grip-content" class="markdown-body entry-content p-3 p-md-6" itemprop="text">
{{ content|safe }}
</article>
</div>
</div>
</div>
</div>
Expand Down