Permalink
Browse files

Add instance-ticker theme

  • Loading branch information...
noellabo committed Feb 9, 2019
1 parent 28866d3 commit 431b267752440c643b3a90ce0fb71332249bb63f
@@ -0,0 +1,2 @@
@import 'application';
@import url("https://wee.jp/css/0.css");
@@ -0,0 +1,2 @@
@import 'application';
@import url("https://wee.jp/css/1.css");
@@ -5,14 +5,15 @@
base_host = Rails.configuration.x.web_domain
assets_host = Rails.configuration.action_controller.asset_host
assets_host ||= "http#{Rails.configuration.x.use_https ? 's' : ''}://#{base_host}"
instance_ticker_host = "https://wee.jp"

Rails.application.config.content_security_policy do |p|
p.base_uri :none
p.default_src :none
p.frame_ancestors :none
p.font_src :self, assets_host
p.img_src :self, :https, :data, :blob, assets_host
p.style_src :self, :unsafe_inline, assets_host
p.style_src :self, :unsafe_inline, assets_host, instance_ticker_host
p.media_src :self, :https, :data, assets_host
p.frame_src :self, :https
p.manifest_src :self, assets_host
@@ -929,9 +929,11 @@ en:
<p>Originally adapted from the <a href="https://github.com/discourse/discourse">Discourse privacy policy</a>.</p>
title: "%{instance} Terms of Service and Privacy Policy"
themes:
contrast: High contrast
default: Mastodon
mastodon-light: Mastodon (light)
contrast: Mastodon (High contrast)
default: Mastodon (Dark)
mastodon-light: Mastodon (Light)
instance-ticker-type-0: Mastodon (Instance Ticker Type-0)
instance-ticker-type-1: Mastodon (Instance Ticker Type-1)
time:
formats:
default: "%b %d, %Y, %H:%M"
@@ -931,6 +931,8 @@ ja:
contrast: ハイコントラスト
default: Mastodon
mastodon-light: Mastodon (ライト)
instance-ticker-type-0: インスタンス・ティッカー Type-0
instance-ticker-type-1: インスタンス・ティッカー Type-1
time:
formats:
default: "%Y年%m月%d日 %H:%M"
@@ -1,3 +1,5 @@
default: styles/application.scss
contrast: styles/contrast.scss
mastodon-light: styles/mastodon-light.scss
instance-ticker-type-0: styles/instance-ticker-type-0.scss
instance-ticker-type-1: styles/instance-ticker-type-1.scss

0 comments on commit 431b267

Please sign in to comment.