This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/app/views/layout/application.html.erb

139 lines
4.3 KiB
Plaintext
Raw Permalink Normal View History

2008-06-27 00:13:15 -04:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<title><%= tuxconfig[:site_name] -%><% if @page_title -%> :: <%= @page_title -%><% end -%><% if @secondary_title -%> :: <%= @secondary_title -%><% end -%></title>
2008-06-27 00:13:15 -04:00
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/stylesheets/application.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="/stylesheets/tuxbliki.css" type="text/css" media="all" charset="utf-8" />
2008-06-27 00:13:15 -04:00
2008-08-28 23:31:01 -04:00
<link rel="alternate" type="application/rss+xml" title="RSS2.0" href="/feeds/rss.xml" />
2008-06-27 00:13:15 -04:00
<script src="/javascripts/prototype.js" type="text/javascript"></script>
<script src="/javascripts/scriptaculous.js" type="text/javascript"></script>
2008-07-24 04:41:17 -04:00
<script src="/javascripts/curvycorners.js" type="text/javascript"></script>
2008-06-27 00:13:15 -04:00
<style type="text/css">
<%= catch_content :for_stylesheet %>
</style>
<script type="text/javascript">
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
2008-07-24 04:41:17 -04:00
addLoadEvent(function(){
new curvyCorners({
tl: false,
tr: false,
bl: { radius: 10 },
br: { radius: 10 },
2008-09-01 15:29:52 -04:00
antiAlias: false,
2008-07-24 04:41:17 -04:00
autoPad: false
}, $('headercontainer')).applyCornersToAll();
cloud_settings = {
tl: { radius: 5 },
tr: { radius: 5 },
bl: { radius: 5 },
br: { radius: 5 },
2008-07-24 05:02:46 -04:00
antiAlias: false,
2008-07-24 04:41:17 -04:00
autoPad: true
};
if($('tag_cloud'))
new curvyCorners(cloud_settings, $('tag_cloud')).applyCornersToAll();
if($('related_links'))
new curvyCorners(cloud_settings, $('related_links')).applyCornersToAll();
$$('.photo_album').each(function(link){
new curvyCorners(cloud_settings, link).applyCornersToAll();
});
$$('.photo').each(function(link){
new curvyCorners(cloud_settings, link).applyCornersToAll();
});
new curvyCorners({
tl: { radius: 10 },
tr: { radius: 10 },
bl: { radius: 10 },
br: { radius: 10 },
2008-09-01 15:29:52 -04:00
antiAlias: false,
2008-07-24 04:41:17 -04:00
autoPad: true
}, $('footer')).applyCornersToAll();
});
2008-06-27 00:13:15 -04:00
<%= catch_content :for_javascript %>
</script>
</head>
<body>
<div id="container">
2008-07-24 04:41:17 -04:00
<div id="headercontainer"><div id="header">
2009-03-21 21:27:10 -04:00
<span style="float: left; margin-right: 10px;"><a href="/"><img src="/images/<%= tuxconfig[:logo] -%>" /></a></span>
2008-06-27 00:13:15 -04:00
<h1><%= @page_title or 'TuxBliki' -%></h1>
<% if @secondary_title -%><h2><%= @secondary_title -%></h2><% end -%>
<br style="clear: both" />
<%
links = []
links << [ 'Blog', '/', 'internet-group-chat.png' ]
links << [ 'Wiki', url(:pages), 'text-html.png' ]
links << [ 'Post', url(:new_page), 'accessories-text-editor.png' ] if allowed_to?(:create_pages)
links << [ 'Photo Albums', url(:albums), 'camera-photo.png' ]
links << [ 'Authors', url(:authors), 'system-users.png' ]
links << [ 'Tags', url(:tags), 'preferences-desktop-font.png' ]
if logged_in?
links << [ 'Logout', url(:delete_session, :id => session[:author_id]), 'system-log-out.png' ]
else
links << [ 'Login', url(:new_session), 'system-lock-screen.png' ]
end
links << [ 'Help', url(:page, :id => 'Help'), 'help-browser.png' ]
-%>
<div class="navigation_links"><%= links.collect { |l| "<a href='#{l[1]}'><img src='/images/#{l[2]}' alt='#{l[0]}' /> #{l[0]}</a>" }.join(' | ') -%></div>
2008-07-24 04:41:17 -04:00
</div></div>
2008-07-24 04:41:17 -04:00
<br style="clear: both;" />
<% flash.keys.each do |key| -%>
<div id="<%= key -%>">
<%= flash[key] %>
</div>
<% end -%>
2008-06-27 00:13:15 -04:00
<div id="page">
<div id="content">
<%= catch_content :for_layout %>
</div>
<div id="sidebar">
<%= catch_content :for_sidebar %>
</div>
<br style="clear: both" />
</div>
2008-07-24 04:41:17 -04:00
<br style="clear: both;" />
2008-06-27 00:13:15 -04:00
<div id="footer">
<span id="copyright">&copy; 2004 - <%= Date.today.year -%> penguincoder</span>
2008-06-27 00:13:15 -04:00
</div>
</div>
2009-02-24 19:20:14 -05:00
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7636005-1");
pageTracker._trackPageview();
} catch(err) {}</script>
2008-06-27 00:13:15 -04:00
</body>
</html>