diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:30:52 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:30:52 +0200 |
| commit | cdf5d9941ca866d437612d2f863eac6eb0b3db12 (patch) | |
| tree | f446ebc26a7707c7b64a937aa51a155df146c80a /app | |
| parent | 802e81f8551e10a3f97846a49636e675c7e21cb3 (diff) | |
Remove orphaned language selector for admin views
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/admin_helper.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 1e84620..afed245 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb | |||
| @@ -1,14 +1,4 @@ | |||
| 1 | module AdminHelper | 1 | module AdminHelper |
| 2 | |||
| 3 | def language_selector | ||
| 4 | case I18n.locale | ||
| 5 | when :de | ||
| 6 | link_to raw('<span class="inactive">English</span>'), url_for(params.permit(:locale, :page_path).to_h.merge('locale' => 'en')) | ||
| 7 | when :en | ||
| 8 | link_to raw('<span class="inactive">English</span>'), url_for(params.permit(:locale, :page_path).to_h.merge('locale' => 'de')) | ||
| 9 | end | ||
| 10 | end | ||
| 11 | |||
| 12 | def mtime_busted_path(path) | 2 | def mtime_busted_path(path) |
| 13 | file = Rails.public_path.join(path.sub(%r{\A/}, "")) | 3 | file = Rails.public_path.join(path.sub(%r{\A/}, "")) |
| 14 | raise "Static asset not found for cache-busting: #{path} (looked for #{file})" unless File.exist?(file) | 4 | raise "Static asset not found for cache-busting: #{path} (looked for #{file})" unless File.exist?(file) |
