1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-04-05 01:03:27 +00:00

Fixed some minor CSS issues, and fixed issues when there is only one site imported in Stackdump.

This commit is contained in:
Samuel Lai 2012-02-11 22:57:57 +11:00
parent 06e210d37a
commit 43f49d1827
3 changed files with 7 additions and 4 deletions
python
media/css
src/stackdump/templates

@ -157,8 +157,8 @@ pre code {
.post-stat { .post-stat {
text-align: center; text-align: center;
background-color: #F2F2F2; background-color: #F2F2F2;
margin-bottom: 2px; margin-bottom: 5px;
padding: 4px 3px; padding: 10px 5px;
} }
.post-stat p { .post-stat p {
@ -249,7 +249,7 @@ li .post-comment-score {
li .post-comment-text { li .post-comment-text {
margin-left: 40px; margin-left: 40px;
line-height: normal; line-height: 20px;
margin-bottom: 0; margin-bottom: 0;
} }

@ -1,6 +1,6 @@
{% if results|length == 0 %} {% if results|length == 0 %}
<p><em>No questions or answers found for your query.</em></p> <p><em>No questions or answers found for your query.</em></p>
{% if site %} {% if site and sites|list|length > 1 %}
<p>Try searching in another StackExchange website by using the links on the right.</p> <p>Try searching in another StackExchange website by using the links on the right.</p>
{% endif %} {% endif %}
{% else %} {% else %}

@ -32,6 +32,8 @@
</p> </p>
</div> </div>
{# don't bother showing if we're the only site. #}
{% if sites|list|length > 1 %}
<div class="well site-list-container"> <div class="well site-list-container">
<h3>Search other sites</h3> <h3>Search other sites</h3>
<ul class="site-list"> <ul class="site-list">
@ -51,6 +53,7 @@
<h3>or...</h3> <h3>or...</h3>
<a href="{{ SETTINGS.APP_URL_ROOT }}search?q={{ query }}&amp;s={{ sort_by }}">search across all sites.</a> <a href="{{ SETTINGS.APP_URL_ROOT }}search?q={{ query }}&amp;s={{ sort_by }}">search across all sites.</a>
</div> </div>
{% endif %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}