Changeset 549
- Timestamp:
- 02/12/10 22:54:03 (6 months ago)
- Location:
- trunk/telemeta
- Files:
-
- 3 modified
-
htdocs/css/telemeta.css (modified) (1 diff)
-
templates/telemeta_default/index.html (modified) (2 diffs)
-
templatetags/telemeta_utils.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/telemeta/htdocs/css/telemeta.css
r548 r549 630 630 } 631 631 632 .rst-content img.align-left {632 .rst-content img.align-left, .rst-content img.align-right { 633 633 margin-left: 0; 634 clear: left;635 } 636 637 . rst-content img.align-right {638 margin-right: 0;634 margin-top: 0.6ex; 635 } 636 637 .module-set { 638 float: right; 639 639 clear: right; 640 640 } 641 641 642 642 .module { 643 float: right;644 643 border: 1px dotted #999; 645 644 background: #EEE; 646 645 padding: 1em; 647 646 margin: 0 0 1.5em 1.5em; 648 clear: right;649 647 } 650 648 -
trunk/telemeta/templates/telemeta_default/index.html
r544 r549 5 5 {% block content %} 6 6 <div class="home-content"> 7 <div class="module-set"> 7 8 <div class="module"> 8 9 <h3>{% trans "Geographic Navigator" %}</h3> … … 18 19 <br /> 19 20 <span class="info">{{item.computed_duration}} {{item.apparent_collector|prepend:' - '}} - {{item.country_or_continent}}</span> 20 </li>21 </li> 21 22 {% endfor %} 22 </div> 23 </ul> 24 </div> 23 25 </div> 24 26 <div class="home-description"> -
trunk/telemeta/templatetags/telemeta_utils.py
r544 r549 12 12 from django.utils.encoding import smart_str, force_unicode 13 13 from django.utils.safestring import mark_safe 14 from django import db 14 15 import re 15 16 … … 75 76 args = [] 76 77 for k, v in vars.iteritems(): 77 if not isinstance(v, basestring): 78 if isinstance(v, db.models.Model): 79 v = v.pk 80 elif not isinstance(v, basestring): 78 81 v = unicode(v) 79 82 args.append(urlquote(k) + '=' + urlquote(v)) … … 226 229 227 230 for line in content: 228 match = re.match('^(\.\. *(?:_[^:]*:| image::) *)([^ ]+) *$', line)231 match = re.match('^(\.\. *(?:_[^:]*:|(?:\|\w+\|)? *image::) *)([^ ]+) *$', line) 229 232 if match: 230 233 directive, urlname = match.groups()
