Tightening up dates on blurblogs, including responsive design.

This commit is contained in:
Samuel Clay 2012-06-30 18:51:22 -07:00
parent 642d323fdb
commit cb610e698c
3 changed files with 25 additions and 5 deletions

View file

@ -932,7 +932,7 @@ def _parse_user_info(user):
def add_url(request):
code = 0
url = request.POST['url']
auto_active = is_true(request.POST.get('auto_active', True))
auto_active = is_true(request.POST.get('auto_active', 1))
if not url:
code = -1

View file

@ -238,7 +238,7 @@ header {
.NB-story-header {
position: relative;
padding: 12px 222px 12px 28px;
padding: 12px 268px 12px 28px;
text-shadow: 0 1px 0 white;
background-image: -webkit-gradient(
linear,
@ -263,11 +263,12 @@ header {
@media all and (max-width: 800px) {
.NB-story-header {
padding-right: 100px;
padding-right: 268px;
}
}
@media all and (max-width: 600px) {
@media all and (max-width: 500px) {
.NB-story-header {
padding-top: 36px;
padding-right: 12px;
}
}
@ -325,6 +326,22 @@ header {
color: silver;
text-transform: uppercase;
}
@media all and (max-width: 800px) {
.NB-story-date-break {
display: block;
}
}
@media all and (max-width: 500px) {
.NB-story-date {
right: none;
left: 32px;
}
.NB-story-date-break {
display: inline;
}
}
.NB-story-date small {
font-weight: normal;
}

View file

@ -118,7 +118,10 @@
<div class="NB-story-modifications-button" title="Show story changes"></div>
{% endif %}
{{ story.shared_date|date:"l, F j<\s\u\p>S</\s\u\p>, Y <\s\m\a\l\l>\a\t</\s\m\a\l\l> g:i A"|safe }}
{{ story.shared_date|date:"D F j<\s\u\p>S</\s\u\p>, Y"|safe }}
<span class="NB-story-date-break"></span>
<small>at</small>
{{ story.shared_date|date:"g:i A"|safe }}
</div>
</div>
</div>