* 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?` * feat: add a Forem Instance Model * chore: rename variable * feat: use the new model that we created * feat: Update the Forem Instance model to remove Not available from the model method and add it to the view layer * test: Forem Instance model to return the correct values when present * feat: use Forem.deployed_at instead of the Application config directly * chore: remove the initializer * feat: rename the data keys to reflect what it does * fix: oops evaluate the var * refactor: static values that can never change during the lifetime of the app should be constants * chore: setup the test to have a release footprint before the test gets executed * chore: remove the methods * revert to method + cache * revert to using method * reset the instance variable
12 lines
746 B
Text
12 lines
746 B
Text
<base target="_parent">
|
|
<% cache "liquid_tag_styles_#{ForemInstance.deployed_at}", expires_in: 8.hours do #TODO: Render specific ltag class instead of everything %>
|
|
<style><%= Rails.application.assets["ltags/LiquidTags.css"].to_s.html_safe %></style>
|
|
<% end %>
|
|
<% begin %>
|
|
<% @liquid_node = Liquid::Template.parse("{% #{params[:embeddable]} #{params[:args]} %}").root.nodelist.first %>
|
|
<%= @liquid_node.render({}) %>
|
|
<% rescue %>
|
|
<% raise ActionController::RoutingError, "Not Found" %>
|
|
<% end %>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.1.1/iframeResizer.contentWindow.min.js" integrity="sha384-G6tHzK74z1pvDJPpiekQQg/Ad3+gDzJkLvIheIjfKjYVFG7Wpsot40rOJkXT92B2" crossorigin="anonymous" defer="defer"></script>
|