* WIP: release footprint in the admin UI * feat: show the commit ID and the date * chore: change env optional to empty string * fix: change the FOREM_BUILD_DATE to RELEASE_FOOTPRINT * feat: add Not Available as a last option * test: last deployed time and latest commit id * feat: update the way we change the env variable! * fix: we need to set the RELEASE FOOTPRINT so that this clause is not hit - `return path if release_footprint.blank?`
24 lines
1 KiB
Text
24 lines
1 KiB
Text
<div>
|
|
<div class="tag-card crayons-card p-4 m:p-6 m:pt-4 mb-4 flex flex-row relative">
|
|
<div class="mr-8">
|
|
<div class="crayons-field__description">Last deployed</div>
|
|
<div><%= ApplicationConfig["RELEASE_FOOTPRINT"].presence || ENV["HEROKU_RELEASE_CREATED_AT"].presence || "Not Available" %></div>
|
|
</div>
|
|
<div>
|
|
<div class="crayons-field__description">Latest Commit ID</div>
|
|
<div><%= ApplicationConfig["FOREM_BUILD_SHA"].presence || ENV["HEROKU_SLUG_COMMIT"].presence || "Not Available" %></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid gap-2 m:gap-4 l:gap-6 m:grid-cols-2 l:grid-cols-3 px-2 m:px-0">
|
|
<% admin_menu_items.each do |menu_item| %>
|
|
<div class="tag-card crayons-card branded-4 p-4 m:p-6 m:pt-4 flex flex-col relative">
|
|
<h3 class="crayons-tag crayons-tag--l mb-2">
|
|
<a href="/admin/<%= menu_item[:controller] %>" class="crayons-link">
|
|
<%= menu_item[:name].to_s.titleize %>
|
|
</a>
|
|
</h3>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|