app/views/settings/show.html.erb in tkh_admin_panel-0.3 vs app/views/settings/show.html.erb in tkh_admin_panel-0.3.1
- old
+ new
@@ -1,16 +1,18 @@
-<h1>Settings</h1>
+<h1><%= t('activerecord.models.settings') %></h1>
+<%= render 'tab_admin_menu' %>
+
<p>
- <strong>Company name:</strong> <%= @setting.company_name %><br />
- <strong>Contact email:</strong> <%= @setting.contact_email %><br />
- <strong>Site name:</strong> <%= @setting.site_name %><br />
- <strong>Site tagline:</strong> <%= @setting.site_tagline %><br />
- <strong>Enable comments in pages?:</strong> <%= @setting.enable_comments_in_pages? ? "<span class=\"label label-success\">✓</span>".html_safe : "<span class=\"label label-important\">X</span>".html_safe %><br />
- <strong>Blog enabled?:</strong> <%= @setting.disable_blog? ? "<span class=\"label label-important\">X</span>".html_safe : "<span class=\"label label-success\">✓</span>".html_safe %><br />
- <strong>Blog name:</strong> <%= @setting.blog_name %><br />
- <strong>Blog tagline:</strong> <%= @setting.blog_tagline %><br />
- <strong>Enable comments in blog?:</strong> <%= @setting.enable_comments_in_blog? ? "<span class=\"label label-success\">✓</span>".html_safe : "<span class=\"label label-important\">X</span>".html_safe %>
+ <strong><%= t('activerecord.attributes.settings.company_name') + t('colon') %></strong> <%= @setting.company_name %><br />
+ <strong><%= t('activerecord.attributes.settings.contact_email') + t('colon') %></strong> <%= @setting.contact_email %><br />
+ <strong><%= t('activerecord.attributes.settings.site_name') + t('colon') %></strong> <%= @setting.site_name %><br />
+ <strong><%= t('activerecord.attributes.settings.site_tagline') + t('colon') %></strong> <%= @setting.site_tagline %><br />
+ <strong><%= t('activerecord.attributes.settings.enable_comments_in_pages') + t('questionmark') %></strong> <%= @setting.enable_comments_in_pages? ? "<span class=\"label label-success\">✓</span>".html_safe : "<span class=\"label label-important\">X</span>".html_safe %><br />
+ <strong><%= t('settings.blog_enabled') %></strong> <%= @setting.disable_blog? ? "<span class=\"label label-important\">X</span>".html_safe : "<span class=\"label label-success\">✓</span>".html_safe %><br />
+ <strong><%= t('activerecord.attributes.settings.blog_name') + t('colon') %></strong> <%= @setting.blog_name %><br />
+ <strong><%= t('activerecord.attributes.settings.blog_tagline') + t('colon') %></strong> <%= @setting.blog_tagline %><br />
+ <strong><%= t('activerecord.attributes.settings.enable_comments_in_blog') + t('questionmark') %></strong> <%= @setting.enable_comments_in_blog? ? "<span class=\"label label-success\">✓</span>".html_safe : "<span class=\"label label-important\">X</span>".html_safe %>
</p>
<%= link_to t('edit'), edit_setting_path(@setting), class: 'btn btn-primary' %>
<%= render 'shared/admin_sidebar' %>
\ No newline at end of file