non-logged in user and answers pages

merge-requests/2/head
Shenyuan Jin 3 years ago
parent 645d533786
commit 2e1fe7424c

@ -426,74 +426,74 @@
{% endif %}
</div>
{% else %}
<div class="thumbnail inner1 col-sm-12">
<div class="col-sm-3">
<img class="img-rounded profile-thumbnail head"
src="{{ url_for('static',filename='image/defaultProfile.png') }}" alt="avatar"
style="width: 50px; height: 50px">
</div>
<div class="col-sm-8 caption" style="">
<a href="{{ url_for('auth.login') }}">
<h4>Visitor</h4>
</a>
<p class="info"> After login, you can...</p>
</div>
<div>
<a href="{{ url_for('auth.album') }}">
<img src="../../static/Image/album.png" alt="">
</a>
</div>
{# <div class="thumbnail inner1 col-sm-12">#}
{# <div class="col-sm-3">#}
{##}
{# <img class="img-rounded profile-thumbnail head"#}
{# src="{{ url_for('static',filename='image/defaultProfile.png') }}" alt="avatar"#}
{# style="width: 50px; height: 50px">#}
{# </div>#}
{##}
{# <div class="col-sm-8 caption" style="">#}
{# <a href="{{ url_for('auth.login') }}">#}
{# <h4>Visitor</h4>#}
{# </a>#}
{# <p class="info"> After login, you can...</p>#}
{# </div>#}
{# <div>#}
{# <a href="{{ url_for('auth.album') }}">#}
{# <img src="../../static/Image/album.png" alt="">#}
{# </a>#}
{# </div>#}
{##}
{# <div class="follow btn-group btn-group-justified" role="group">#}
{##}
{##}
{# </div>#}
</div>
{##}
{# </div>#}
{% endif %}
{# hottest #}
{# <div class="col-sm-12 inner3">#}
{# <h4>Hottest Posts</h4>#}
{# <ul class="posts list-unstyled">#}
{# <li class="hot-post"><a href="{{ url_for('.post', id=posts5[0].id) }}">#}
{# <span class="glyphicon glyphicon-fire"></span>#}
{# <span>{{ posts5[0].title }}</span>#}
{# </a></li>#}
{# <li class="hot-post"><a href="{{ url_for('.post', id=posts5[1].id) }}">#}
{# <span class="glyphicon glyphicon-fire"></span>#}
{# <span>{{ posts5[1].title }}</span>#}
{# </a></li>#}
{# <li class="hot-post"><a href="{{ url_for('.post', id=posts5[2].id) }}">#}
{# <span class="glyphicon glyphicon-fire"></span>#}
{# <span>{{ posts5[2].title }}</span>#}
{# </a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[3].id) }}"><h4>#}
{# <small>4. {{ posts5[3].title }}</small>#}
{# </h4></a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[4].id) }}"><h4>#}
{# <small>5. {{ posts5[4].title }}</small>#}
{# </h4></a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[5].id) }}"><h4>#}
{# <small>6. {{ posts5[5].title }}</small>#}
{# </h4></a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[6].id) }}"><h4>#}
{# <small>7. {{ posts5[6].title }}</small>#}
{# </h4></a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[7].id) }}"><h4>#}
{# <small>8. {{ posts5[7].title }}</small>#}
{# </h4></a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[8].id) }}"><h4>#}
{# <small>9. {{ posts5[8].title }}</small>#}
{# </h4></a></li>#}
{# <li><a href="{{ url_for('.post', id=posts5[9].id) }}"><h4>#}
{# <small>10. {{ posts5[9].title }}</small>#}
{# </h4></a></li>#}
{# </ul>#}
{# </ul>#}
{# </div>#}
<div class="col-sm-12 inner3">
<h4>Hottest Posts</h4>
<ul class="posts list-unstyled">
<li class="hot-post"><a href="{{ url_for('.post', id=posts5[0].id) }}">
<span class="glyphicon glyphicon-fire"></span>
<span>{{ posts5[0].title }}</span>
</a></li>
<li class="hot-post"><a href="{{ url_for('.post', id=posts5[1].id) }}">
<span class="glyphicon glyphicon-fire"></span>
<span>{{ posts5[1].title }}</span>
</a></li>
<li class="hot-post"><a href="{{ url_for('.post', id=posts5[2].id) }}">
<span class="glyphicon glyphicon-fire"></span>
<span>{{ posts5[2].title }}</span>
</a></li>
<li><a href="{{ url_for('.post', id=posts5[3].id) }}"><h4>
<small>4. {{ posts5[3].title }}</small>
</h4></a></li>
<li><a href="{{ url_for('.post', id=posts5[4].id) }}"><h4>
<small>5. {{ posts5[4].title }}</small>
</h4></a></li>
<li><a href="{{ url_for('.post', id=posts5[5].id) }}"><h4>
<small>6. {{ posts5[5].title }}</small>
</h4></a></li>
<li><a href="{{ url_for('.post', id=posts5[6].id) }}"><h4>
<small>7. {{ posts5[6].title }}</small>
</h4></a></li>
<li><a href="{{ url_for('.post', id=posts5[7].id) }}"><h4>
<small>8. {{ posts5[7].title }}</small>
</h4></a></li>
<li><a href="{{ url_for('.post', id=posts5[8].id) }}"><h4>
<small>9. {{ posts5[8].title }}</small>
</h4></a></li>
<li><a href="{{ url_for('.post', id=posts5[9].id) }}"><h4>
<small>10. {{ posts5[9].title }}</small>
</h4></a></li>
</ul>
</ul>
</div>
</div>

@ -68,8 +68,8 @@
<div class="post-content col-sm-offset-1 col-sm-10">
{# 标题#}
<h1 class="post-title text-center" style="margin: 30px; font-size: 35px">
<a href="{{ url_for('.post', id=post.id) }}">
{{ post.title }}
<a href="{{ url_for('.view_question', question_id=post.question.id) }}">
{{ post.question.title }}
</a>
</h1>
<div id="socialShare"></div>

Loading…
Cancel
Save