Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a link back to the site #81

Open
AaronLasseigne opened this issue Jul 17, 2015 · 4 comments
Open

add a link back to the site #81

AaronLasseigne opened this issue Jul 17, 2015 · 4 comments

Comments

@AaronLasseigne
Copy link

It would be nice if the interface had a link that went to "/" for easily getting back to the site. A more complicated version might be a link you can set to return to something like an admin section of your site but even just going to the domain root would be handy.

Just to be extra clear about what I mean:

example_site.com -> click "Delayed Job" link in some admin area -> Delayed Job Web interface -> click "Return to Site" -> example_site.com

@chrismear
Copy link
Contributor

It's possible to have delayed_job_web running on its own domain, separate from the main website. So for this feature to be useful, the link would have to be configurable. If you just have it hardcoded to / then for some installations you'll end up with a 'Return to site' link that takes you to the page you're currently on.

@AaronLasseigne
Copy link
Author

Ha, yes, that wouldn't be too helpful. I still think it would be a convenient feature to have.

@rapcal
Copy link

rapcal commented Jan 25, 2016

Maybe implement something like rails generate delayed_job_web:views to allow customization?

@ioev
Copy link

ioev commented Jan 15, 2021

Super late to this party, but you can add your own links using:

module CustomTabs
  def tabs
    super.unshift({ :name => 'Home', :path => '/../' })
  end
end

DelayedJobWeb.prepend CustomTabs

Or you could subclass DelayedJobWeb and override tabs, then use that in the routes.rb declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants