<% flash.keys.each do |key| -%>
<%= flash[key] %>
<% end -%>
<%= @page_title or 'TuxBliki' -%>
<% if @secondary_title -%>
<%= @secondary_title -%>
<% end -%>
<% 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' ] -%>
<%= links.collect { |l| "
#{l[0]}
" }.join(' | ') -%>
<%= catch_content :for_layout %>
<%= catch_content :for_sidebar %>