Permalink
Browse files

#12

  • Loading branch information...
Hakaba Hitoyo
Hakaba Hitoyo committed Oct 27, 2017
1 parent c8b39c6 commit f5f1d865f4a5d6ac95cfd5f08b585e1c0fd92714
@@ -44,6 +44,9 @@ def update
end
end
setting = Setting.where(var: 'site_terms').first_or_initialize(var: 'site_terms')
setting.update(value: value_for_update('site_terms', current_account.username))
flash[:notice] = I18n.t('generic.changes_saved_msg')
redirect_to edit_admin_settings_path
end
@@ -39,4 +39,8 @@ def source_url
def thumbnail
@thumbnail ||= Rails.cache.fetch('site_uploads/thumbnail') { SiteUpload.find_by(var: 'thumbnail') }
end
def site_description_and_author
site_description + ' <small>(by <a href="/@' + site_terms + '">' + site_terms + '</a>)</small>'
end
end
@@ -28,7 +28,7 @@
.container.hero
.heading
%h3= t('about.description_headline', domain: site_hostname)
%p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
%p= @instance_presenter.site_description_and_author.html_safe.presence || t('about.generic_description', domain: site_hostname)
.information-board
.container
@@ -52,7 +52,7 @@
.about-short
.container
%h3= t('about.description_headline', domain: site_hostname)
%p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
%p= @instance_presenter.site_description_and_author.html_safe.presence || t('about.generic_description', domain: site_hostname)
.features
.container

0 comments on commit f5f1d86

Please sign in to comment.