Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

1.9 KB
Raw Blame
<!DOCTYPE html>
<html>
<head>
<title><%= t('application.title', default: 'Projektmanagement') %></title>
<%= csrf_meta_tags %> <%= csp_meta_tag %> 
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
<%= stylesheet_link_tag "slimselect", "data-turbo-track": "reload" %>
<!-- Bootstrap Icons: local via the asset pipeline (application.css) -->
<%= javascript_include_tag "sortable.min" %>

<!-- This is the import map tag that Rails uses -->
<meta name="turbo-prefetch" content="false">
</head>

  <body hx-boost="true" hx-ext="multi-swap">
    <%= render "admin/common/navigation" %>
    <%= yield :product_system_navigation %>
    <main class="container-fluid">
      <div class="row justify-content-md-center">

        <div class="col-12 text-left py-5 px-3">
          <%= render "layouts/flash" %>
          <%= yield %>
        </div>
        <div class="col-1"></div>
      </div>
    </main>

    <% if Rails.env.staging? %>
      <!-- Staging Environment Indicator -->
      
      <div class="staging-indicator">
        <input type="checkbox" id="staging-toggle" class="staging-toggle">
        <label for="staging-toggle" class="staging-badge">staging</label>
        <div class="staging-info">
          <div style="font-weight: bold; margin-bottom: 4px;">STAGING ENVIRONMENT</div>
          <div>Branch: main</div>
          <div>Deployed: <%= File.mtime(Rails.root.join('REVISION_TIME')).strftime('%Y-%m-%d %H:%M UTC') rescue 'Unknown' %></div>
          <div>Rev: <%= File.read(Rails.root.join('REVISION')).strip[0..7] rescue 'Unknown' %></div>
        </div>
      </div>
    <% end %>

<!-- 
  Deployment Info:
  - Deployed: <%= File.mtime(Rails.root.join('REVISION_TIME')).strftime('%Y-%m-%d %H:%M:%S UTC') rescue 'Unknown' %>
  - Revision: <%= File.read(Rails.root.join('REVISION')).strip rescue 'Unknown' %>
-->
  </body>
</html>