Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
activeadmin_custom_layout
Advanced tools
This gem allows to change the default layout of ActiveAdmin without monkey patching its code. You can just use standard application layout templates to organize where ActiveAdmin layout sections should be rendered.
The following layout template will render the default ActiveAdmin layout:
<!DOCTYPE html>
<html>
<head>
<%= yield :title %>
<%= yield :stylesheets %>
<%= yield :javascripts %>
<%= yield :favicon %>
<%= yield :meta_tags %>
<%= yield :favicon %>
<%= csrf_meta_tag %>
<%= active_admin_js_data_tag %>
</head>
<body class="<%= yield :body_classes %>" >
<div id="wrapper">
<%= yield :unsupported_browser %>
<div class="header" id="header"> <%#= yield :header %>
<%= yield :site_title %>
<%= yield :global_navigation %>
<%= yield :utility_navigation %>
</div>
<div class="title_bar" id="title_bar"> <%#= yield :title_bar %>
<div id="titlebar_left">
<%= yield :breadcrumb %>
<%= yield :title_tag %>
</div>
<div id="titlebar_right">
<%= yield :action_items %>
</div>
</div>
<%#= yield :page_content %>
<%= yield :flash_messages %>
<div id="active_admin_content" class="<%= (content_for? :sidebar) ? "with_sidebar" : "without_sidebar" %>" >
<%= yield :main_content %>
<%= yield :sidebar %>
</div>
<%= yield :footer %>
</div>
</body>
</html>
When rendering the index view:
<div class="table_tools"> <%#= yield :table_tools %>
<%= yield :index_batch_actions %>
<%= yield :index_scopes %>
<%= yield :index_index_list %>
</div>
<%= yield :index_collection %>
Add this line to your application's Gemfile:
gem 'activeadmin_custom_layout'
And then execute:
$ bundle
Execute installer:
rails g activeadmin_custom_layout:install
You can override the default gem layout by creating your own using the structure shown above and then modify /app/admin/custom_base_controller.rb
file to reference the new layout.
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that activeadmin_custom_layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.