Highlight current tag and kill flash copy

master
Nick Sergeant 2011-12-04 13:38:56 -05:00
parent e2aceecc31
commit 890a723a2f
5 changed files with 33 additions and 30 deletions

View File

@ -305,6 +305,10 @@ section.main {
font-weight: bold;
margin: 0 0 0 22px;
}
&.active {
border-bottom: 1px solid #2B6E9B;
color: #2B6E9B;
}
}
}
nav.footer {

View File

@ -33,17 +33,17 @@
var copy_do = this.$copy_do;
var copy_done = this.$copy_done;
this.$copy_button.zclip({
afterCopy: function() {
copy_do.hide();
copy_done.fadeIn(500);
setTimeout(function() {
copy_done.hide();
copy_do.fadeIn(500);
}, 1500);
},
copy: this.$raw.text()
});
//this.$copy_button.zclip({
//afterCopy: function() {
//copy_do.hide();
//copy_done.fadeIn(500);
//setTimeout(function() {
//copy_done.hide();
//copy_do.fadeIn(500);
//}, 1500);
//},
//copy: this.$raw.text()
//});
}
});

View File

@ -198,21 +198,20 @@ ABSOLUTE_URL_OVERRIDES = {
}
# Caching
if not DEBUG:
INSTALLED_APPS += ('johnny',)
JOHNNY_MIDDLEWARE_KEY_PREFIX='johnny_snipt'
MIDDLEWARE_CLASSES += (
'johnny.middleware.LocalStoreClearMiddleware',
'johnny.middleware.QueryCacheMiddleware',
'django.middleware.cache.CacheMiddleware',
)
CACHES = {
'default': dict(
BACKEND = 'johnny.backends.memcached.MemcachedCache',
LOCATION = ['127.0.0.1:11211'],
JOHNNY_CACHE = True,
)
}
#INSTALLED_APPS += ('johnny',)
#JOHNNY_MIDDLEWARE_KEY_PREFIX='johnny_snipt'
#MIDDLEWARE_CLASSES += (
#'johnny.middleware.LocalStoreClearMiddleware',
#'johnny.middleware.QueryCacheMiddleware',
#'django.middleware.cache.CacheMiddleware',
#)
#CACHES = {
#'default': dict(
#BACKEND = 'johnny.backends.memcached.MemcachedCache',
#LOCATION = ['127.0.0.1:11211'],
#JOHNNY_CACHE = True,
#)
#}
# Extensions
if DEBUG:

View File

@ -1,9 +1,9 @@
<section class="tags">
<h1>Popular public tags</h1>
<ul>
{% for tag in tags %}
{% for t in tags %}
<li>
<a href="/public/tag/{{ tag.slug }}/">{{ tag.name }} ({{ tag.count }})</a>
<a {% if tag == t.name %}class="active"{% endif %} href="/public/tag/{{ t.slug }}/">{{ t.name }} ({{ t.count }})</a>
</li>
{% endfor %}
</ul>

View File

@ -1,9 +1,9 @@
<section class="tags">
<h1>{{ user.username }}'s tags</h1>
<ul>
{% for tag in tags %}
{% for t in tags %}
<li>
<a href="/{{ user.username }}/tag/{{ tag.slug }}/">{{ tag.name }} ({{ tag.count }})</a>
<a {% if tag == t.name %}class="active"{% endif %} href="/{{ user.username }}/tag/{{ t.slug }}/">{{ t.name }} ({{ t.count }})</a>
</li>
{% endfor %}
</ul>