提交 cd8ecec3 编写于 作者: X Xavier Noria

specify image dimensions for pictures in the guides credits page

上级 a50865c7
......@@ -15,7 +15,7 @@ def guide(name, url, options = {}, &block)
def author(name, nick, image = 'credits_pic_blank.gif', &block)
image = "images/#{image}"
result = content_tag(:img, nil, :src => image, :class => 'left pic', :alt => name)
result = content_tag(:img, nil, :src => image, :class => 'left pic', :alt => name, :width => 91, :height => 91)
result << content_tag(:h3, name)
result << content_tag(:p, capture(&block))
content_tag(:div, result, :class => 'clearfix', :id => nick)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册