1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

Center wiki img

This commit is contained in:
zhengxie
2013-04-13 20:50:18 +08:00
parent b292c865eb
commit b4e96191bd
3 changed files with 7 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ def convert_md_link(file_content, repo_id, username):
return '''<p class="wiki-page-missing">%s</p>''' % linkname
token = web_get_access_token(repo_id, obj_id, 'view', username)
return '<img src="%s" alt="%s" />' % (gen_file_get_url(token, filename), filename)
return '<img class="wiki-image" src="%s" alt="%s" />' % (gen_file_get_url(token, filename), filename)
else:
from base.templatetags.seahub_tags import file_icon_filter