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
@@ -1,6 +1,11 @@
1
1
  # TKH Admin Panel
2
2
 
3
3
 
4
+ ## 0.0.4
5
+
6
+ * Admin layout doesn't blow up if SETTINGS constant is not initialized in host app
7
+
8
+
4
9
  ## 0.0.3
5
10
 
6
11
  * Enabled popover and tooltip javascript functionality
@@ -37,6 +37,10 @@ footer {
37
37
  margin: 2em 1em .5em;
38
38
  text-align: center;
39
39
  }
40
+
41
+ input, textarea {
42
+ width: 450px;
43
+ }
40
44
  //
41
45
  //.navbar { margin-bottom: 0; }
42
46
  //
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: