projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e1ebf2
)
Enable controls for videos
author
Bernie Innocenti
<bernie@codewiz.org>
Mon, 27 Apr 2009 15:40:27 +0000
(17:40 +0200)
committer
Bernie Innocenti
<bernie@codewiz.org>
Mon, 27 Apr 2009 15:40:27 +0000
(17:40 +0200)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index f6ba26c967419f5c219d98d313bdc19932630883..faf59027217f4c59f0300d99c22f4a22f487e4b5 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-202,7
+202,7
@@
def link_inline(name, descr=None, args=''):
if not descr: descr = name
url = relative_url(name)
if video_re.match(name):
if not descr: descr = name
url = relative_url(name)
if video_re.match(name):
- return '<video src="%s">Your browser does not support the HTML5 video tag</video>' % url
+ return '<video
controls="1"
src="%s">Your browser does not support the HTML5 video tag</video>' % url
elif img_re.match(name):
return '<a href="%s"><img border="0" src="%s" alt="%s" /></a>' % (url, url + args, descr)
elif file_re.match(name) and not ext_re.search(name): # FIXME: this guesses a wiki page
elif img_re.match(name):
return '<a href="%s"><img border="0" src="%s" alt="%s" /></a>' % (url, url + args, descr)
elif file_re.match(name) and not ext_re.search(name): # FIXME: this guesses a wiki page