Files
ubicloud/views/github/index.erb
Enes Cakir 741839e77b Make the GitHub related views installation based
The project can have multiple installations. Currently, we list all
runners and caches for all installations of the project. We also list
all installations on the settings page. Most customers have a single
project, and combining all resources makes things complicated.

Displaying only the resources of a single installation and allowing
users to switch between them using a dropdown simplifies the process.

This also allows us to make the settings page more focused on a single
installation.

At some point, we will add a dashboard and API for our GitHub Actions
integration as well. So, an installation based listing will simplify
those features too.
2025-05-14 11:52:10 +03:00

25 lines
886 B
Plaintext

<% @page_title = "GitHub Runners Integration" %>
<% if !@project.has_valid_payment_method? %>
<form action="<%= "#{@project_data[:path]}/billing" %>" method="POST">
<%== csrf_tag("#{@project_data[:path]}/billing") %>
<%== part(
"components/empty_state",
icon: "hero-banknotes",
title: "No billing information",
description:
"Project doesn't have valid billing information. First, you need to update the project's billing details to use GitHub Runners.",
button_title: "New Billing Information"
) %>
</form>
<% else %>
<%== part(
"components/empty_state",
icon: "github",
title: "No Connected Accounts",
description: "Get started by installing our GitHub app to your user or organization account.",
button_link: "#{@project_data[:path]}/github/create",
button_title: "Connect New Account"
) %>
<% end %>