]> cat aescling's git repositories - mastodon.git/commitdiff
Site title is now a setting
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 10 Feb 2017 21:37:11 +0000 (22:37 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 10 Feb 2017 21:37:11 +0000 (22:37 +0100)
app/views/admin/settings/index.html.haml
app/views/layouts/application.html.haml
config/locales/en.yml
config/settings.yml

index 5b482213bac1e18d40d36a000a8eeacbb79f4821..1429dbd9ee2301cbc81e14df3eda45ddbb64bd20 100644 (file)
       %td= best_in_place @settings['site_contact_username'], :value, url: admin_setting_path(@settings['site_contact_username']), place_holder: 'Enter a username'
     %tr
       %td= best_in_place @settings['site_contact_email'], :value, url: admin_setting_path(@settings['site_contact_email']), place_holder: 'Enter a public e-mail address'
+    %tr
+      %td
+        %strong Site title
+      %td= best_in_place @settings['site_title'], :value, url: admin_setting_path(@settings['site_title'])
     %tr
       %td
         %strong Site description
@@ -33,4 +37,4 @@
         Displayed on extended information page
         %br/
         You can use HTML tags
-      %td= best_in_place @settings['site_extended_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_extended_description'])
\ No newline at end of file
+      %td= best_in_place @settings['site_extended_description'], :value, as: :textarea, url: admin_setting_path(@settings['site_extended_description'])
index e122e1c55fecbac44737ac64a464d9528e616a92..7eae6982bd0dc90290a261f3eed85b8c31c2e65c 100644 (file)
@@ -13,7 +13,7 @@
 
     %title
       = "#{yield(:page_title)} - " if content_for?(:page_title)
-      Mastodon
+      = Setting.site_title
 
     = stylesheet_link_tag 'application', media: 'all'
     = csrf_meta_tags
index 018c923df2a7e44a10f04736bf7961394ae7a230..c6c7c236e7e71839475ffa2ff2718b7ec310bff5 100644 (file)
@@ -10,7 +10,7 @@ en:
     get_started: Get started
     learn_more: Learn more
     links: Links
-    other_instances: Other Instances
+    other_instances: Other instances
     source_code: Source code
     status_count_after: statuses
     status_count_before: Who authored
index a78bd067d53246beebb4102d7d1e38d750e3f53f..71ce12e632eee9a73804ce935a59b3a872942465 100644 (file)
@@ -1,5 +1,6 @@
 # config/app.yml for rails-settings-cached
 defaults: &defaults
+  site_title: 'Mastodon'
   site_description: ''
   site_extended_description: ''
   site_contact_username: ''