tkh_admin_panel 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +18 -0
- data/app/assets/stylesheets/custom.css.scss +1 -0
- data/app/mailers/admin_mailer.rb +1 -1
- data/app/views/layouts/admin.html.erb +3 -14
- data/app/views/settings/edit.html.erb +7 -7
- data/lib/generators/tkh_admin_panel/create_or_update_locales/templates/de.yml +21 -21
- data/lib/tkh_admin_panel.rb +1 -0
- data/lib/tkh_admin_panel/version.rb +1 -1
- data/tkh_admin_panel.gemspec +1 -0
- metadata +18 -2
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
|
data/app/mailers/admin_mailer.rb
CHANGED
@@ -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
|
-
|
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')
|
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')
|
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: '
|
8
|
-
|
7
|
+
settings: 'Seiten Einstellungen'
|
8
|
+
|
9
9
|
attributes:
|
10
10
|
setting:
|
11
|
-
site_name: '
|
12
|
-
site_tagline: '
|
13
|
-
enable_comments_in_pages: '
|
14
|
-
disable_blog: '
|
15
|
-
blog_name: '
|
16
|
-
blog_tagline: '
|
17
|
-
enable_comments_in_blog: '
|
18
|
-
contact_email: '
|
19
|
-
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: '
|
22
|
+
blog_enabled: 'Blog aktiviert?'
|
23
23
|
hint:
|
24
|
-
contact_email: '
|
25
|
-
site_name: '
|
26
|
-
site_tagline: '
|
27
|
-
disable_blog: '
|
28
|
-
blog_tagline: '
|
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: '
|
32
|
-
warning: '
|
31
|
+
notice: 'Die Seiteneinstellungen wurden aktualisiert.'
|
32
|
+
warning: 'Beim Speichern der Änderungen ist ein Fehler aufgetreten.'
|
data/lib/tkh_admin_panel.rb
CHANGED
data/tkh_admin_panel.gemspec
CHANGED
@@ -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.
|
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-
|
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
|