tkh_admin_panel 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>Admin Panel<%= " for #{SETTINGS['site_name']}" if SETTINGS['site_name'] %></title>
|
6
|
+
<title>Admin Panel<%= " for #{SETTINGS['site_name']}" if defined?(SETTINGS) && SETTINGS['site_name'] %></title>
|
7
7
|
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
|
8
8
|
<!--[if lt IE 9]>
|
9
9
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<div class="row-fluid">
|
25
25
|
<div class="span12">
|
26
26
|
<p><b><%= I18n.locale == :en ? link_to('switch to Spanish', locale: :es) : link_to('switch to English', locale: :en) %></b></p>
|
27
|
-
<h1>Admin Panel<%= " for #{SETTINGS['site_name']}" if SETTINGS['site_name'] %></h1>
|
27
|
+
<h1>Admin Panel<%= " for #{SETTINGS['site_name']}" if defined?(SETTINGS) && SETTINGS['site_name'] %></h1>
|
28
28
|
|
29
29
|
<% flash.each do |name, msg| %>
|
30
30
|
<div class="alert alert-<%= name == :notice ? "success" : "error" %>">
|
@@ -47,9 +47,9 @@
|
|
47
47
|
|
48
48
|
<div class="row-fluid">
|
49
49
|
<footer class="span12">
|
50
|
-
<p><b><%= SETTINGS['web_shop_name'] || "Ten Thousand Hours" %></b><br />
|
51
|
-
<%= SETTINGS['web_shop_short_url'] ? link_to(SETTINGS['web_shop_short_url'], SETTINGS['web_shop_url']) : link_to("http://TenThousandHours.eu", 'http://TenThousandHours.eu') %><br />
|
52
|
-
<%= SETTINGS['web_shop_email'] ? link_to(SETTINGS['web_shop_email'], 'mailto:' + SETTINGS['web_shop_email']) : link_to("swami@TenThousandHours.eu", 'mailto:http://TenThousandHours.eu') %><br /></p>
|
50
|
+
<p><b><%= defined?(SETTINGS) && SETTINGS['web_shop_name'] || "Ten Thousand Hours" %></b><br />
|
51
|
+
<%= defined?(SETTINGS) && SETTINGS['web_shop_short_url'] && SETTINGS['web_shop_url'] ? link_to(SETTINGS['web_shop_short_url'], SETTINGS['web_shop_url']) : link_to("http://TenThousandHours.eu", 'http://TenThousandHours.eu') %><br />
|
52
|
+
<%= defined?(SETTINGS) && SETTINGS['web_shop_email'] ? link_to(SETTINGS['web_shop_email'], 'mailto:' + SETTINGS['web_shop_email']) : link_to("swami@TenThousandHours.eu", 'mailto:http://TenThousandHours.eu') %><br /></p>
|
53
53
|
</footer>
|
54
54
|
</div>
|
55
55
|
|