Project

General

Profile

Download (3.41 KB) Statistics
| Branch: | Tag: | Revision:
<?xml version="1.0" encoding="<%= Locale.charset %>" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<% site_name = @config.site_name || MyCyma::Info::app_name %>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= Locale.get %>">
<head>
<title><%= site_name %></title>
<meta http-equiv="Content-Type" content="text/html; charset=<%= Locale.charset %>" />
<meta http-equiv="Pragma" content="no-cache" />
<%= stylesheet_link_tag "default" %>
<%= yield :proto_menu_css %>
<%= javascript_include_tag :defaults %>
<%= yield :proto_menu_js %>
<%= javascript_tag("
function registerContextMenus() {
#{yield(:register_proto_menus_js)}
}
document.observe('dom:loaded', registerContextMenus );
" +
(yield(:page_scripts) ? yield(:page_scripts) : "")
)
%>
</head>
<body>
<div id="header">
<h1><%= link_to_unless_current "~°~ #{site_name} ~°~", root_path %></h1>
<ul class="nav" id="menu">
<li><strong><%= _("View") %></strong>
<ul>
<li><%= link_to _("Cyma Tree"), :controller => '/view', :action => 'tree' %></li>
</ul>
</li>
<%
current_user ||= ((session[:user_id] && User.find_by_id(session[:user_id])) || nil)
if current_user
%>
<li><strong><%= _("Setup the Cyma") %></strong>
<ul>
<li><%= link_to _("Manage Artworks"), admin_artworks_url %></li>
<li><%= link_to _("Manage Artwork Conditions"), admin_artwork_conditions_url %></li>
<li><%= link_to _("Manage Artwork Materials"), admin_artwork_materials_url %></li>
<li><%= link_to _("Manage Artwork Placement Reasons"), admin_artwork_placement_reasons_url %></li>
<li><%= link_to _("Manage Artwork Sets & Groups"), admin_artwork_sets_url %></li>
<li><%= link_to _("Manage Artwork Sizes"), admin_artwork_sizes_url %></li>
<li><%= link_to _("Manage Artwork Supports"), admin_artwork_supports_url %></li>
<li>-------</li>
<li><%= link_to _("Manage Tags"), admin_tags_url %></li>
<% if current_user.admin %>
<li>-------</li>
<li><%= link_to _("Manage Users"), admin_users_url %></li>
<% end %>
</ul>
</li>
<% end %>
<li><strong><%= _("About") %></strong>
<ul>
<li><%= link_to _("Project page"), MyCyma::Info::url, :popup => true %></li>
<li><%= link_to _("Author site"), MyCyma::Info::author_url, :popup => true %></li>
</ul>
</li>
</ul>
<div id="user_info" style="float: right;text-align: center;"><%= current_user ?
sprintf(_("Loggued in as '%s'"), current_user.login) + "<br/>(#{link_to _("logout"), { :controller => '/logon', :action => 'logout'}})" :
_("Not loggued in") + "<br/>(#{link_to _("login"), { :controller => '/logon', :action => 'login'}})"
%></div>
</div>
<div style="clear: both;"></div>
<%= render_flash_messages %>
<div id="content">
<%= @content_for_layout %>
</div>
<div id="footer">
Generated by <%= MyCyma::Info::versioned_name %>.
<a href="http://validator.w3.org/check?uri=referer">
<img src="<%= ActionController::Base.relative_url_root %>/images/valid-xhtml11.png" alt="Valid XHTML 1.1!" height="31" width="88" />
</a>
</div>
</body>
</html>
    (1-1/1)