absolut url helper
This commit is contained in:
@@ -94,4 +94,12 @@ end
|
|||||||
end
|
end
|
||||||
raw(html)
|
raw(html)
|
||||||
end
|
end
|
||||||
|
def absurl(path)
|
||||||
|
if path.nil?
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
url=URI(root_url)
|
||||||
|
url.path=path
|
||||||
|
return url
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="logo2014_64.png">
|
<link rel="shortcut icon" href="<%= absurl("/logo2014_64.png")%>">
|
||||||
<!--<link rel="shortcut icon" href="http://www.fet.at/favicon.ico">-->
|
<!--<link rel="shortcut icon" href="http://www.fet.at/favicon.ico">-->
|
||||||
<!---->
|
<!---->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user