diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-14 02:17:04 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-14 02:17:04 +0200 |
| commit | 88ebeaac7fcf140cbab489e841bf9c197f84c4ea (patch) | |
| tree | ff97b50deebdaa44eb6a40d8550e912457c2fb8f /app/controllers/page_translations_controller.rb | |
| parent | c693069db6ddce4582209a1cf60a564f6947bd56 (diff) | |
Make revisions locale aware
Diffstat (limited to 'app/controllers/page_translations_controller.rb')
| -rw-r--r-- | app/controllers/page_translations_controller.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/page_translations_controller.rb b/app/controllers/page_translations_controller.rb index 9446cd2..38a7c4f 100644 --- a/app/controllers/page_translations_controller.rb +++ b/app/controllers/page_translations_controller.rb | |||
| @@ -5,11 +5,6 @@ class PageTranslationsController < ApplicationController | |||
| 5 | before_action :find_node | 5 | before_action :find_node |
| 6 | before_action :find_locale, :only => [:show, :edit, :update, :autosave, :destroy] | 6 | before_action :find_locale, :only => [:show, :edit, :update, :autosave, :destroy] |
| 7 | 7 | ||
| 8 | def index | ||
| 9 | page = @node.draft || @node.head | ||
| 10 | @translations = page ? page.translation_summary : [] | ||
| 11 | end | ||
| 12 | |||
| 13 | def show | 8 | def show |
| 14 | @page = @node.draft || @node.head | 9 | @page = @node.draft || @node.head |
| 15 | @translation = @page.translations.find_by(:locale => @locale) | 10 | @translation = @page.translations.find_by(:locale => @locale) |
