File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
9
9
from google .appengine .ext import db
10
+ import urllib
10
11
11
12
12
13
class Link (db .Model ):
@@ -16,3 +17,6 @@ class Link(db.Model):
16
17
created_at = db .DateTimeProperty (auto_now_add = True )
17
18
updated_at = db .DateTimeProperty (auto_now_add = True )
18
19
20
+ @property
21
+ def link_text (self ):
22
+ return urllib .unquote (str (self .link_url )).decode ('utf-8' )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ <h1>Links of <small>{{view_today|datetimeformat}} ({{g.tz.zone}})</small></h1>
17
17
< tbody >
18
18
{% for link in links%}
19
19
< tr >
20
- < td class ="td_link "> < a rel ="noreferrer " href ="{{link.link_url}} "> {{ link.link_url }}</ a > </ td >
20
+ < td class ="td_link "> < a rel ="noreferrer " href ="{{link.link_url}} "> {{ link.link_text }}</ a > </ td >
21
21
< td > < time datetime ="{{link.created_at}} "> {{link.updated_at|datetimeformat('%H:%M')}}</ time > </ td >
22
22
< td >
23
23
{% for author in link.authors %}
You can’t perform that action at this time.
0 commit comments