Project

General

Profile

Download (2.94 KB) Statistics
| Branch: | Tag: | Revision:
b689e231 Marc Dequènes (Duck)
<?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" %>
<%= javascript_include_tag :defaults %>
</head>
<body>
<div id="header">
<h1><%= link_to_unless_current "~°~ #{site_name} ~°~", root_path %></h1>
<ul class="nav" id="menu">
c7dd4b36 Marc Dequènes (Duck)
<li><strong><%= _("View") %></strong>
<ul>
5e628966 Marc Dequènes (Duck)
<li><%= link_to _("Cyma Tree"), :controller => '/view', :action => 'tree' %></li>
c7dd4b36 Marc Dequènes (Duck)
</ul>
</li>
d0ff9068 Marc Dequènes (Duck)
<%
current_user ||= ((session[:user_id] && User.find_by_id(session[:user_id])) || nil)
if current_user
%>
b689e231 Marc Dequènes (Duck)
<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>
70e65017 Marc Dequènes (Duck)
<li><%= link_to _("Manage Artwork Supports"), admin_artwork_supports_url %></li>
2a4e5c89 Marc Dequènes (Duck)
<li>-------</li>
<li><%= link_to _("Manage Tags"), admin_tags_url %></li>
d0ff9068 Marc Dequènes (Duck)
<% if current_user.admin %>
<li>-------</li>
<li><%= link_to _("Manage Users"), admin_users_url %></li>
<% end %>
b689e231 Marc Dequènes (Duck)
</ul>
</li>
d0ff9068 Marc Dequènes (Duck)
<% end %>
b689e231 Marc Dequènes (Duck)
<li><strong><%= _("About") %></strong>
<ul>
<li><%= link_to _("Project page"), MyCyma::Info::url, :popup => true %></li>
46e28cc2 Marc Dequènes (Duck)
<li><%= link_to _("Author site"), MyCyma::Info::author_url, :popup => true %></li>
b689e231 Marc Dequènes (Duck)
</ul>
</li>
</ul>
d0ff9068 Marc Dequènes (Duck)
<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>
b689e231 Marc Dequènes (Duck)
</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::AbstractRequest.relative_url_root %>/images/valid-xhtml11.png" alt="Valid XHTML 1.1!" height="31" width="88" />
</a>
</div>
</body>
</html>