/
application.html.erb
executable file
·108 lines (82 loc) · 4.48 KB
/
application.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Manage My Money</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="3p group" />
<meta name="description" content="Manage My Money was designed to allow you easly and fastly notice the flow of your money" />
<meta name="keywords" content="money, money managment, transfers" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />
<%= stylesheet_link_tag 'scaffold_new', 'html', 'layout', 'table', 'shadow', 'tab', 'form' %>
<%= javascript_include_tag :defaults, 'delegate' %>
<% javascript_tag do %>
<%= yield(:jstemplates) %>
<% end -%>
</head>
<body style="background-image: url('/images/bg/bg2.png');">
<div style="width: 1000px; margin-left: auto; margin-right: auto;">
<div id="page" style="width: 750px; float:left;">
<% strong_shadow(:top, {:style => 'background-color: white;'}, {:style => 'width: 750px;'}) do %>
<div id="header" class="width">
<% link_to("/", :id=>'main-page-link') do -%>
<img style="margin: 0px; padding: 0px;" src="/images/bg/header_3m.jpg" alt="Manage My Money Logo"/>
<% end %>
</div>
<% [:notice, :error].each do |fla| %>
<%= content_tag :blockquote, flash[fla], :id => "flash_#{fla}" %>
<% end %>
<br />
<div id="container">
<%= yield %>
<div id="footer" style="margin-top:20px;">
<div id="bg" class="width">
<ul>
<li><a href="/help/help.html">Pomoc</a></li>
<li><%= link_to("O nas", static_url(:action => "authors"))%></li>
<li><%= link_to("Regulamin", static_url(:action => "terms"), :class => 'last')%></li>
</ul>
</div>
</div>
</div>
<% end %>
</div>
<div id="right-menu" style="width: 200px; float: left; margin-left: 50px; margin-top:20px;">
<% inner_shadow({:style => 'width: 169px;'}, {:id => 'top-sidebar', :style => 'background-color: white; border: 1px solid #9BB3C2'}) do %>
<p><b>
<% unless logged_in? -%>
Zaloguj się!
<% else -%>
Zalogowany: <%= self.current_user.login -%>
<% end -%>
</b></p>
<ul id="main-sidebar" style="padding-left: 0px; width: auto;">
<% unless logged_in? %>
<li id="login"><%= link_to 'Logowanie', login_url, :id => 'logowanie-menu-link' %> </li>
<li id="register"><%= link_to 'Rejestracja', :action => :new, :controller => :users, :id => 'rejestracja-menu-link' %></li>
<% else %>
<li><%= link_to 'Kategorie', categories_path, :id => 'kategorie-menu-link' %></li>
<li><%= link_to 'Transfery', transfers_path, :id => 'transfery-menu-link' %></li>
<li><%= link_to 'Jednostki', currencies_path, :id => 'waluty-menu-link' %></li>
<li><%= link_to 'Kursy', exchanges_path, :id => 'kursy-menu-link' %></li>
<li><%= link_to 'Raporty', reports_path, :id => 'raporty-menu-link' %></li>
<li><%= link_to 'Planowanie', goals_path, :id => 'planowanie-menu-link' %></li>
<li><%= link_to 'Dłużnicy', debtors_path, :id => 'debtors-menu-link' %></li>
<li><%= link_to 'Wierzyciele', creditors_path, :id => 'creditors-menu-link' %></li>
<li><%= link_to 'Import', import_path, :id => 'import-menu-link' %></li>
<br />
<li><%= link_to 'Ustawienia', edit_user_url(self.current_user), :id => 'edycja-ustawien-menu-link' %></li>
<li id="logout"><%= link_to 'Wyloguj', logout_url, :id => 'wyloguj-menu-link' %></li>
<% end %>
</ul>
<% end %>
<% if logged_in? %>
<% inner_shadow({:style => 'width: 169px;'},{:style => 'background-color: white; margin-top: 30px; border: 1px solid #9BB3C2'}) do %>
<%= render :partial => 'shared/bottom_sidebar' %>
<% end %>
<% end %>
</div>
</div>
</body>
</html>