fix #246 - show tags links with solid underline #451

Closed
wants to merge 1 commit into
from
View
2 sapling/pages/plugins.py
@@ -326,6 +326,8 @@ def render(self, context):
cls = ' class="file_%s"' % file.rough_type
except PageFile.DoesNotExist:
cls = ' class="missing_link"'
+ elif unquote_plus(url).startswith('tags/'):
+ cls = ' class="tag_link"'
else:
try:
page = Page.objects.get(slug__exact=slugify(url))
View
5 sapling/themes/sapling/assets/pages/css/pages.css
@@ -3,6 +3,11 @@
border-bottom: 1px dashed;
}
+.tag_link {
+ background: url(../../img/tag-icon-small.png) top left no-repeat;
+ padding-left: 22px;
+}
+
/* File icons */
.no_icon {
background: inherit !important;