summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-20 12:50:30 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-20 12:50:30 +0200
commita8cf725312d245d8d1f1df0fff22718975ce249e (patch)
treec5084dfe79e6eac647b0253a305361aa8ff6efbc /app/controllers
parent4df88b601b1900c287051d827eaff46f498f60d0 (diff)
Add redirect ui in in nodes#edit and apply some minor cleanup
Also give search inputs a magnifier and a clear control: input_group wraps a field with an icon and, where clearing is meaningful, a button that empties it and any hidden companion named by data-clears. Clean up some inconistency between field hints presented as p and as span. Remove stray console.log.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/content_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb
index 8be4bfbd..debb69b9 100644
--- a/app/controllers/content_controller.rb
+++ b/app/controllers/content_controller.rb
@@ -14,6 +14,11 @@ class ContentController < ApplicationController
14 expires_in 20.minutes, :public => true 14 expires_in 20.minutes, :public => true
15 15
16 if @page and @page.public? 16 if @page and @page.public?
17 if (target = @page.redirect_target)
18 return redirect_to(target.internal? ? content_path(target.node.unique_name) : target.url,
19 :status => @page.redirect_status)
20 end
21
17 render( 22 render(
18 :template => @page.valid_template, 23 :template => @page.valid_template,
19 :layout => true 24 :layout => true