master
Nick Sergeant 2011-11-09 13:33:16 -05:00
parent d064ff08cc
commit a07a0e7fc3
3 changed files with 47 additions and 2 deletions

View File

@ -418,6 +418,11 @@ article.snipt {
span.collapse { span.collapse {
display: none; display: none;
} }
span.lines {
font: normal 10px @Helvetica;
margin-left: 5px;
vertical-align: 1px;
}
&:hover { &:hover {
color: #3BAAF3; color: #3BAAF3;
font-weight: bold; font-weight: bold;
@ -478,7 +483,27 @@ article.snipt {
} }
aside { aside {
float: right; float: right;
width: 130px; margin: 29px 30px 0 0;
width: 100px;
ul {
li {
margin: 2px 0;
a {
background: rgba(128, 128, 128, .08);
color: #999;
display: block;
font: bold 12px @Helvetica;
padding: 7px 10px 7px 35px;
&:hover {
background: rgba(128, 128, 128, .15);
text-decoration: none;
}
}
}
}
} }
footer { footer {
clear: both; clear: both;
@ -531,6 +556,9 @@ article.snipt {
span.collapse { span.collapse {
display: inline; display: inline;
} }
span.lines {
display: none;
}
} }
} }
} }

View File

@ -202,6 +202,9 @@ LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/login/' LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/' LOGOUT_URL = '/logout/'
# HTTPS
USE_HTTPS = False
# User absolute URLs # User absolute URLs
ABSOLUTE_URL_OVERRIDES = { ABSOLUTE_URL_OVERRIDES = {
'auth.user': lambda u: "/%s/" % u.username, 'auth.user': lambda u: "/%s/" % u.username,

View File

@ -14,16 +14,30 @@
<a href="#" class="expand"> <a href="#" class="expand">
<span class="expand">Expand</span> <span class="expand">Expand</span>
<span class="collapse">Collapse</span> <span class="collapse">Collapse</span>
<span class="lines">({{ snipt.get_line_count }} lines)</span>
</a> </a>
{% endif %} {% endif %}
</section> </section>
<div class="ruler top-x"></div> <div class="ruler top-x"></div>
<div class="ruler bottom-x"></div> <div class="ruler bottom-x"></div>
</div> </div>
<aside></aside> <aside>
<ul>
<li>
<a href="#">Edit</a>
</li>
<li>
<a href="{{ snipt.get_embed_url }}">Embed</a>
</li>
<li>
<a href="#">Copy</a>
</li>
</ul>
</aside>
</div> </div>
<footer> <footer>
<ul class="attrs"> <ul class="attrs">
<li class="author"><a href="{{ snipt.user.get_absolute_url }}">{{ snipt.user.username }}</a></li>
<li class="created">{{ snipt.created|naturalday }}</li> <li class="created">{{ snipt.created|naturalday }}</li>
<li class="comments"><a href="{{ snipt.get_absolute_url }}#comments">Comments ({{ snipt.comment_set.all|length }})</a></li> <li class="comments"><a href="{{ snipt.get_absolute_url }}#comments">Comments ({{ snipt.comment_set.all|length }})</a></li>
</ul> </ul>