From 0de5d08e371923871d75fbdc68732c2402006c91 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 31 Aug 2012 19:28:32 -0400 Subject: [PATCH] Give Resque route a name and use that for the iframe src Closes #1350 --- app/views/admin/resque/show.html.haml | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/resque/show.html.haml b/app/views/admin/resque/show.html.haml index 0375d94bc..d889a5d08 100644 --- a/app/views/admin/resque/show.html.haml +++ b/app/views/admin/resque/show.html.haml @@ -1,2 +1,2 @@ %h3 Resque -%iframe{src: "/info/resque", width: 1168, height: 600, style: "border: none"} \ No newline at end of file +%iframe{src: resque_url, width: 1168, height: 600, style: "border: none"} diff --git a/config/routes.rb b/config/routes.rb index f895478fb..51e657218 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,7 +10,7 @@ Gitlab::Application.routes.draw do # Optionally, enable Resque here require 'resque/server' - mount Resque::Server.new, at: '/info/resque' + mount Resque::Server.new, at: '/info/resque', as: 'resque' # Enable Grack support mount Grack::Bundle.new({ -- 2.11.0