tkh_admin_panel 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.0.9
6
+
7
+ * Fixed up generation of meta title and h1 title and customize them depending on whether there is a site_name setting.
5
8
 
6
9
 
7
10
  ## 0.0.8
@@ -3,7 +3,11 @@
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 defined?(SETTINGS) && SETTINGS['site_name'] %></title>
6
+ <title>Admin Panel
7
+ <% if defined?(SETTINGS) && SETTINGS['site_name'] %>
8
+ <%= " for #{link_to(SETTINGS['site_name'], root_path) }".html_safe %>
9
+ <% end %>
10
+ </title>
7
11
  <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
8
12
  <!--[if lt IE 9]>
9
13
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
@@ -24,7 +28,11 @@
24
28
  <div class="row-fluid">
25
29
  <div class="span12">
26
30
  <%= render 'shared/login_info' %>
27
- <h1>Admin Panel<%= " for #{link_to(SETTINGS['site_name'], root_path) if defined?(SETTINGS) && SETTINGS['site_name']}".html_safe %></h1>
31
+ <h1>Admin Panel
32
+ <% if defined?(SETTINGS) && SETTINGS['site_name'] %>
33
+ <%= " for #{link_to(SETTINGS['site_name'], root_path) }".html_safe %>
34
+ <% end %>
35
+ </h1>
28
36
 
29
37
  <% flash.each do |name, msg| %>
30
38
  <div class="alert alert-<%= name == :notice ? "success" : "error" %>">
@@ -4,5 +4,5 @@
4
4
  <li>links go here</li>
5
5
  </ul>
6
6
 
7
- <p>To override this, run "rake tkh_admin_panel:setup" and customize the new partial to your liking</p>
7
+ <p>To override this, run "rake tkh_admin_panel:setup" and customize the new partial to your liking.</p>
8
8
  <% end %>
@@ -2,6 +2,6 @@ namespace :tkh_admin_panel do
2
2
  desc "Create locale and other files"
3
3
  task :setup do
4
4
  system 'rails g tkh_admin_panel:copy_files'
5
- system 'rails g tkh_admin_panel:create_or_update_locales'
5
+ # system 'rails g tkh_admin_panel:create_or_update_locales' # there are no translations yet
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-01 00:00:00.000000000 Z
12
+ date: 2012-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties