Permalink
Browse files

Move inline CSS out of auth footer, and tidy up HTML a bit

  • Loading branch information...
1 parent 276305c commit 8f49df2d96e77bfca6240365303c9fe46fcb873d @cnorthwood cnorthwood committed Jul 14, 2011
Showing with 23 additions and 9 deletions.
  1. +18 −0 molly/auth/static/auth/css/smart.css
  2. +5 −9 molly/auth/templates/auth/secure.html
@@ -0,0 +1,18 @@
+.secure-link-block {
+ line-height: 1.8em;
+ margin: 2px 10px 2px 10px;
+ background-color: #ffffbf;
+ padding: 10px 10px 10px 38px;
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ display: block;
+ border-radius: 6px;
+ background-image: url('../../auth/images/padlock.png');
+ background-repeat: no-repeat;
+ background-position: 10px center;
+ text-align: center;
+}
+
+.secure-link-block a {
+ padding: 5px 1px;
+}
@@ -2,15 +2,11 @@
{% block bottom_links %}
- <div style="width:100%; float:left; margin-top: 2px; margin-bottom:2px;">
- <div class="center" style="line-height:1.8em; margin:0 10px 0 10px; background-color:#ffffbf; padding:10px; -webkit-border-radius:6px; -moz-border-radius:6px; display:block;"
- href="{% url feature_vote:index %}">
- <div style="background-image:url('{{ STATIC_URL }}auth/images/padlock.png'); background-repeat:no-repeat; background-position:left center; padding-left:28px">
- <a style="padding:5px 1px;" href="{% url auth:index %}">{% trans "Security preferences" %}</a>
- <a style="padding:5px 1px;" href="{% url auth:clear-session %}?return_url={{ full_path }}" rel="nofollow">{% trans "Clear secure session" %}</a><br/>
- {% blocktrans with user|externalservicetoken_count as number_services count user.usersession_set.all.count as number_devices %}{{ number_services }} accessible from {{ number_devices }} device.{% plural %}{{ number_services }} accessible from {{ number_devices }} devices.{% endblocktrans %}
- <a style="padding:5px 1px;" href="{% url auth:index %}">{% trans "Change" %}</a>
- </div></div>
+ <div class="secure-link-block">
+ <a href="{% url auth:index %}">{% trans "Security preferences" %}</a>
+ <a href="{% url auth:clear-session %}?return_url={{ full_path }}" rel="nofollow">{% trans "Clear secure session" %}</a><br/>
+ {% blocktrans with user|externalservicetoken_count as number_services count user.usersession_set.all.count as number_devices %}{{ number_services }} accessible from {{ number_devices }} device.{% plural %}{{ number_services }} accessible from {{ number_devices }} devices.{% endblocktrans %}
+ <a href="{% url auth:index %}">{% trans "Change" %}</a>
</div>
{{ block.super }}
{% endblock %}

0 comments on commit 8f49df2

Please sign in to comment.