Skip to content

Commit 1ed0e25

Browse files
committed
website: Save some vertical space in footer
1 parent 6cfafff commit 1ed0e25

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

website/www/_static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body
88
padding: 0 3em 0 13em;
99
}
1010
body > .header { margin: 0 0 0 -13em;}
11-
body > .footer { margin: 0 0 0 -13em; clear:both;}
11+
body > .footer { margin: 1em 0 0 -13em; clear:both;}
1212
body > .navigation
1313
{
1414
margin-left: -13em;

website/www/_templates/layout.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,22 @@
8888
</div>
8989
{%- block footer %}
9090
<div class="footer">
91-
<p>hosted by <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=31577&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a></p>
91+
<div>
92+
{%- if show_source and has_source and sourcename %}
93+
<span class="source">[<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _('page source') }}</a>]</span>
94+
{%- endif %}
9295
{%- if hasdoc('copyright') %}
9396
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
9497
{%- else %}
9598
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
9699
{%- endif %}
100+
</div>
101+
<div>
97102
{%- if last_updated %}
98103
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
99104
{%- endif %}
100-
{%- if show_source and has_source and sourcename %}
101-
<p class="source"><a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _('source') }}</a></p>
102-
{%- endif %}
105+
<span>Hosted by <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=31577&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a></span>
106+
</div>
103107
</div>
104108
{%- endblock %}
105109
</body>

0 commit comments

Comments
 (0)