AlchemyCMS/alchemy_cms

View on GitHub
app/views/alchemy/admin/dashboard/index.html.erb

Summary

Maintainability
Test Coverage
<%= content_for :toolbar do %>
  <div class="toolbar_buttons">
    <%= render Alchemy::Admin::ToolbarButton.new(
      icon: 'information',
      label: Alchemy.t(:info),
      url: alchemy.dashboard_info_path,
      title: Alchemy.t(:info),
      dialog_options: {
        title: Alchemy.t(:info),
        size: "420x435"
      },
      if_permitted_to: [:info, :alchemy_admin_dashboard],
      hotkey: 'alt+i'
    ) %>
  </div>
<% end %>

<div id="dashboard">
  <%= render "dashboard" %>
</div>