tkh_admin_panel 0.3.2 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.3.5
6
+
7
+ * Cleaned up the settings form
8
+ * The navbar login info has been extracted to the tkh_authentication gem
9
+
10
+
11
+ ## 0.3.4
12
+
13
+ * Debugged the de locale
14
+
15
+
16
+ ## 0.3.3
17
+
18
+ * Flash messages DRYed up and extracted to the tkh_toolbox gem
19
+ * Hyphenation of the admin layout
20
+ * Slight debugging
21
+
22
+
5
23
  ## 0.3.2
6
24
 
7
25
  * Refactored tab admin context navigation of site settings section
@@ -1,5 +1,6 @@
1
1
  body {
2
2
  margin-top: 35px;
3
+ @include hyphens;
3
4
  }
4
5
 
5
6
  footer {
@@ -3,6 +3,6 @@ class AdminMailer < ActionMailer::Base
3
3
 
4
4
  def rescued_exceptions(exception, message)
5
5
  @exception, @message = exception, message
6
- mail to: "Swami Atma <swami@TenThousandHours.eu>", subject: "Rescued Exception - #{Setting.first.site_name}"
6
+ mail to: "Swami Atma <swami@TenThousandHours.eu>", subject: "Rescued Exception - #{Setting.first.try(:site_name)}"
7
7
  end
8
8
  end
@@ -27,13 +27,8 @@
27
27
  <div class="container">
28
28
  <ul class="nav">
29
29
  <%= content_tag :li, link_to(Setting.first.try(:site_name), root_path) %>
30
- <%= content_tag :li, link_to(t('blog'), blog_path) %>
31
- <li class='dropdown'>
32
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= current_user.email %> <b class="caret"></b></a>
33
- <ul class="dropdown-menu">
34
- <%= content_tag :li, link_to(t('logout'), logout_path) %>
35
- </ul>
36
- </li>
30
+ <%= content_tag :li, link_to(t('blog.itself'), blog_path) %>
31
+ <%= render 'shared/login_info_for_navbar' %>
37
32
  </ul>
38
33
  </div>
39
34
  </div>
@@ -46,13 +41,7 @@
46
41
  <%= t "admin_panel" %><br />
47
42
  <%= image_tag 'admin-logo.png', alt: 'Ten Thousand Hours logo' %>
48
43
  </h1>
49
-
50
- <% flash.each do |name, msg| %>
51
- <div class="alert alert-<%= name == :notice ? "success" : "error" %>">
52
- <a class="close" data-dismiss="alert">×</a>
53
- <%= msg %>
54
- </div>
55
- <% end %>
44
+ <%= render 'shared/flash_messages' %>
56
45
  </div>
57
46
  </div>
58
47
 
@@ -7,13 +7,13 @@
7
7
 
8
8
  <div class="form-inputs">
9
9
  <%= f.input :company_name %><br />
10
- <%= f.input :contact_email, hint: t('settings.hint.contact_email') %><br />
11
- <%= f.input :site_name, hint: t('settings.hint.site_name') %><br />
12
- <%= f.input :site_tagline, hint: t('settings.hint.site_tagline') %><br />
13
- <%= f.input :enable_comments_in_pages, as: :boolean, inline_label: true, label: false %><br />
14
- <%= f.input :disable_blog, as: :boolean, inline_label: true, label: false, hint: t('settings.hint.disable_blog') %><br />
15
- <%= f.input :blog_name %><br />
16
- <%= f.input :blog_tagline, hint: t('settings.hint.blog_tagline') %><br />
10
+ <%= f.input :contact_email, hint: t('settings.hint.contact_email') %>
11
+ <%= f.input :site_name, hint: t('settings.hint.site_name') %>
12
+ <%= f.input :site_tagline, hint: t('settings.hint.site_tagline') %>
13
+ <%= f.input :enable_comments_in_pages, as: :boolean, inline_label: true, label: false %>
14
+ <%= f.input :disable_blog, as: :boolean, inline_label: true, label: false, hint: t('settings.hint.disable_blog') %>
15
+ <%= f.input :blog_name %>
16
+ <%= f.input :blog_tagline, hint: t('settings.hint.blog_tagline') %>
17
17
  <%= f.input :enable_comments_in_blog, as: :boolean, inline_label: true, label: false %>
18
18
  </div>
19
19
 
@@ -4,29 +4,29 @@ de:
4
4
 
5
5
  activerecord:
6
6
  models:
7
- settings: 'site settings'
8
-
7
+ settings: 'Seiten Einstellungen'
8
+
9
9
  attributes:
10
10
  setting:
11
- site_name: 'site name'
12
- site_tagline: 'site tagline'
13
- enable_comments_in_pages: 'enable comments in pages'
14
- disable_blog: 'disable blog'
15
- blog_name: 'blog name'
16
- blog_tagline: 'blog tagline'
17
- enable_comments_in_blog: 'enable comments in blog'
18
- contact_email: 'contact email'
19
- company_name: 'company name'
20
-
11
+ site_name: 'Seitenname'
12
+ site_tagline: 'Seiten-Überschrift'
13
+ enable_comments_in_pages: 'Kommentare auf der Seite aktivieren'
14
+ disable_blog: 'Blog ausschalten'
15
+ blog_name: 'Blogname'
16
+ blog_tagline: 'Blog-Überschrift'
17
+ enable_comments_in_blog: 'Kommentare im Blog aktivieren'
18
+ contact_email: 'Kontaktemail'
19
+ company_name: 'Firmenname'
20
+
21
21
  settings:
22
- blog_enabled: 'blog enabled?'
22
+ blog_enabled: 'Blog aktiviert?'
23
23
  hint:
24
- contact_email: 'this is used to get the messages from the contact form and for other things as well.'
25
- site_name: 'this is often the same as the company name'
26
- site_tagline: 'a small descriptive sentence'
27
- disable_blog: 'should be checked if you do NOT want a blog'
28
- blog_tagline: 'a small descriptive sentence'
29
-
24
+ contact_email: 'dies wird benötigt, um die Nachrichten des Kontaktformulars zu erhalten und auch für ander Dinge.'
25
+ site_name: 'Ist häufig identisch mit dem Firmennamen'
26
+ site_tagline: 'ein kurzer beschreibender Satz'
27
+ disable_blog: 'sollte markiert sein, wenn du KEINEN Blog willst'
28
+ blog_tagline: 'ein kurzer beschreibender Satz'
29
+
30
30
  update:
31
- notice: 'Site Settings were successfully updated.'
32
- warning: 'There was a problem saving your changes.'
31
+ notice: 'Die Seiteneinstellungen wurden aktualisiert.'
32
+ warning: 'Beim Speichern der Änderungen ist ein Fehler aufgetreten.'
@@ -2,6 +2,7 @@ require "tkh_admin_panel/version"
2
2
  require 'bootstrap-sass'
3
3
  require 'simple_form'
4
4
  require 'tkh_admin_panel/tkh_admin_panel_action_controller_extension'
5
+ require 'tkh_authentication'
5
6
 
6
7
  module TkhAdminPanel
7
8
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.add_dependency "railties", "~> 3.2"
12
12
  gem.add_dependency "bootstrap-sass", '~> 2.0'
13
13
  gem.add_dependency "simple_form", '~> 2.0'
14
+ gem.add_dependency "tkh_authentication", '~> 0.1'
14
15
 
15
16
  gem.files = `git ls-files`.split($\)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
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.3.2
4
+ version: 0.3.5
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: 2013-01-30 00:00:00.000000000 Z
12
+ date: 2013-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: tkh_authentication
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '0.1'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '0.1'
62
78
  description: Admin panel layout engine
63
79
  email:
64
80
  - swami@TenThousandHours.eu