diff --git a/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js b/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js index 981d15c6fd2..dfaebeb04cf 100644 --- a/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_site_content_edit_controller.js @@ -9,8 +9,8 @@ Discourse.AdminSiteContentEditController = Discourse.Controller.extend({ saveDisabled: function() { - if (this.get('saving')) return true; - if (this.blank('content.content')) return true; + if (this.get('saving')) { return true; } + if ((!this.get('content.allow_blank')) && this.blank('content.content')) { return true; } return false; }.property('saving', 'content.content'), diff --git a/app/assets/javascripts/discourse/templates/header.js.handlebars b/app/assets/javascripts/discourse/templates/header.js.handlebars index 7d72ebf46c4..0fbf11769f9 100644 --- a/app/assets/javascripts/discourse/templates/header.js.handlebars +++ b/app/assets/javascripts/discourse/templates/header.js.handlebars @@ -123,6 +123,7 @@ {{#titledLinkTo "list.latest" titleKey="filters.latest.help"}}{{i18n filters.latest.title}}{{/titledLinkTo}}
@@ -76,3 +78,5 @@
Pokud se rozhodneme změnit naše podmínky ochrany soukromí, zašleme tyto změny na tuto stránku.
+ +<% end %> \ No newline at end of file diff --git a/app/views/static/privacy.en.html.erb b/app/views/static/privacy.en.html.erb index 63557d1d510..4465bfabee3 100644 --- a/app/views/static/privacy.en.html.erb +++ b/app/views/static/privacy.en.html.erb @@ -4,6 +4,8 @@@@ -95,4 +97,6 @@ If we decide to change our privacy policy, we will post those changes on this pa
This document is CC-BY-SA. It was last updated May 31, 2013. -
\ No newline at end of file + + +<% end %> \ No newline at end of file diff --git a/app/views/static/privacy.ru.html.erb b/app/views/static/privacy.ru.html.erb index 1ea1f5d4c3c..fbd7a6c47e9 100644 --- a/app/views/static/privacy.ru.html.erb +++ b/app/views/static/privacy.ru.html.erb @@ -4,6 +4,8 @@@@ -96,4 +98,6 @@
Данный документ распространяется под лицензией CC-BY-SA. Дата последнего обновления - 31 мая 2013 года. -
\ No newline at end of file + + +<% end %> \ No newline at end of file diff --git a/app/views/static/privacy.zh_CN.html.erb b/app/views/static/privacy.zh_CN.html.erb index 12a8b0a48c6..9ee00d86f82 100644 --- a/app/views/static/privacy.zh_CN.html.erb +++ b/app/views/static/privacy.zh_CN.html.erb @@ -4,6 +4,8 @@@@ -76,3 +78,5 @@ By using our site, you consent to our web site privacy policy.
If we decide to change our privacy policy, we will post those changes on this page.
+ +<% end %> \ No newline at end of file diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index c89cb401561..babe6e57fb0 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -87,6 +87,7 @@ en: show_more: "show more" links: Links faq: "FAQ" + privacy_policy: "Privacy Policy" you: "You" or: "or" now: "just now" diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index e0e4511636c..bc8cf11584d 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -413,12 +413,13 @@ en: welcome_invite: title: "Welcome: Invited User" description: "A private message automatically sent to all new invited users when they accept the invitation from another user to participate." - + privacy_policy: + title: "Privacy Policy" + description: "Your site's privacy policy. Leave blank for default policy." login_required_welcome_message: title: "Login Required: Welcome Message" description: "Welcome message that is displayed to logged out users when the 'login required' setting is enabled." - tos_user_content_license: title: "Terms of Service: Content License" description: "The text for the Content License section of the Terms of Service." diff --git a/db/fixtures/site_content_types.rb b/db/fixtures/site_content_types.rb deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/lib/site_content_class_methods.rb b/lib/site_content_class_methods.rb index 5e4055d1feb..5bc553f5e60 100644 --- a/lib/site_content_class_methods.rb +++ b/lib/site_content_class_methods.rb @@ -20,7 +20,6 @@ module SiteContentClassMethods replacements = {site_name: SiteSetting.title}.merge!(replacements) replacements = SiteSetting.settings_hash.merge!(replacements) - site_content = SiteContent.select(:content).where(content_type: content_type).first result = ""