Project

General

Profile

Download (2.7 KB) Statistics
| Branch: | Tag: | Revision:

root / app / views / layouts / application.rhtml @ 70e65017

1
<?xml version="1.0" encoding="<%= Locale.charset %>" ?>
2
<!DOCTYPE html
3
		PUBLIC "-//W3C//DTD XHTML 1.1//EN"
4
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5

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

    
8
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= Locale.get %>">
9
	<head>
10
		<title><%= site_name %></title>
11
		<meta http-equiv="Content-Type" content="text/html; charset=<%= Locale.charset %>" />
12
		<meta http-equiv="Pragma" content="no-cache" />
13
		<%= stylesheet_link_tag "default" %>
14
		<%= javascript_include_tag :defaults %>
15
	</head>
16
	<body>
17
		<div id="header">
18
			<h1><%= link_to_unless_current "~°~ #{site_name} ~°~", root_path %></h1>
19
			<ul class="nav" id="menu">
20
<%
21
  current_user ||= ((session[:user_id] && User.find_by_id(session[:user_id])) || nil)
22
  if current_user
23
%>
24
				<li><strong><%= _("Setup the Cyma") %></strong>
25
					<ul>
26
						<li><%= link_to _("Manage Artworks"), admin_artworks_url %></li>
27
						<li><%= link_to _("Manage Artwork Conditions"), admin_artwork_conditions_url %></li>
28
						<li><%= link_to _("Manage Artwork Materials"), admin_artwork_materials_url %></li>
29
						<li><%= link_to _("Manage Artwork Placement Reasons"), admin_artwork_placement_reasons_url %></li>
30
						<li><%= link_to _("Manage Artwork Sets & Groups"), admin_artwork_sets_url %></li>
31
						<li><%= link_to _("Manage Artwork Sizes"), admin_artwork_sizes_url %></li>
32
						<li><%= link_to _("Manage Artwork Supports"), admin_artwork_supports_url %></li>
33
<% if current_user.admin %>
34
						<li>-------</li>
35
						<li><%= link_to _("Manage Users"), admin_users_url %></li>
36
<% end %>
37
					</ul>
38
				</li>
39
<% end %>
40
				<li><strong><%= _("About") %></strong>
41
					<ul>
42
						<li><%= link_to _("Project page"), MyCyma::Info::url, :popup => true %></li>
43
						<li><%= link_to _("Author site"), MyCyma::Info::author_url, :popup => true %></li>
44
					</ul>
45
				</li>
46
			</ul>
47
			<div id="user_info" style="float: right;text-align: center;"><%= current_user ?
48
                          sprintf(_("Loggued in as '%s'"), current_user.login) + "<br/>(#{link_to _("logout"), { :controller => '/logon', :action => 'logout'}})" :
49
                           _("Not loggued in") + "<br/>(#{link_to _("login"), { :controller => '/logon', :action => 'login'}})"
50
                           %></div>
51
		</div>
52
		<div style="clear: both;"></div>
53
		<%= render_flash_messages %>
54
		<div id="content">
55
			<%= @content_for_layout %>
56
		</div>
57
		<div id="footer">
58
			Generated by <%= MyCyma::Info::versioned_name %>.
59
			<a href="http://validator.w3.org/check?uri=referer">
60
				<img src="<%= ActionController::AbstractRequest.relative_url_root %>/images/valid-xhtml11.png" alt="Valid XHTML 1.1!" height="31" width="88" />
61
			</a>
62
		</div>
63
	</body>
64
</html>	
    (1-1/1)