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

Link from mission control back to the main rails application #155

Open
volodymyr-mykhailyk opened this issue Aug 28, 2024 · 2 comments
Open

Comments

@volodymyr-mykhailyk
Copy link

Currently, when opening mission control - there is no easy way to return to your app.

While it is possible to override one of the templates and implement this in your app:

Create File app/views/layouts/mission_control/jobs/_application_selection.html.erb

<nav class="navbar" role="navigation" aria-label="main navigation">
  <div class="navbar-menu is-active mb-4">
    <div class="navbar-start">
      <!-- This is main application link-->
      <h4 class="title is-4">
        <%= link_to 'My Cool App', '/' %>
      </h4>
    </div>

    <div class="navbar-end">
      <%= render "layouts/mission_control/jobs/application_selection/servers", application: @application %>
      <%= render "layouts/mission_control/jobs/application_selection/applications" if selectable_applications.any? %>
    </div>
  </div>
</nav>

Would it be better to support it as part of a configuration? I am happy to submit a pull request if you think it is a needed functionality.

@virolea
Copy link

virolea commented Oct 24, 2024

I came here to suggest it as well, that'd be swell.

I could see this using main_app.root_path as a default and allowing a configuration override.

@rosa
Copy link
Member

rosa commented Nov 8, 2024

Sorry for the delay!

I am happy to submit a pull request if you think it is a needed functionality.

Yes, I think it'd be useful! Maybe not even allowing a configuration override by default, just using main_app.root_path to start with would be enough.

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

3 participants