# HG changeset patch # User Daniele Nicolodi # Date 1321889785 -3600 # Node ID 0c0708eb16a6a6fc2a41ec4e6a28890428e94021 # Parent 2de8715f0d593604af7404e8591d87ccf1805181 Make IDs clickable in objects listing. diff -r 2de8715f0d59 -r 0c0708eb16a6 src/ltpdarepo/static/style.css --- a/src/ltpdarepo/static/style.css Mon Nov 21 16:15:28 2011 +0100 +++ b/src/ltpdarepo/static/style.css Mon Nov 21 16:36:25 2011 +0100 @@ -594,12 +594,17 @@ border-bottom: 1px solid #DC143C; } -.listing td.id { - color: #DC143C; +.listing td.id, td.name { + font-family: andale mono, monospace; } -.listing td.id, td.name { - font-family: andale mono, monospace; +.listing td.id { + text-align: right; +} + +.listing td.id a { + color: #DC143C; + text-decoration: none; } .listing td.name, td.title, td.description { diff -r 2de8715f0d59 -r 0c0708eb16a6 src/ltpdarepo/templates/objs.html --- a/src/ltpdarepo/templates/objs.html Mon Nov 21 16:15:28 2011 +0100 +++ b/src/ltpdarepo/templates/objs.html Mon Nov 21 16:36:25 2011 +0100 @@ -26,8 +26,8 @@ {% for obj in objs %} - {% for field in fields %} - {% if field == 'name' %} + {% for field in fields %} + {% if field in ('id', 'name') %} {{ obj[field] }} {% else %} {{ obj[field]|string|truncate(60, False, '…') }}