Sha256: e91924a5a9b8d6f0f4548be8b6c3d35a43dc01e85013910b7ab8bb0064dcb288

Contents?: true

Size: 1.12 KB

Versions: 8

Compression:

Stored size: 1.12 KB

Contents

<%= 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">
  <h1>
    <% if @first_time -%>
    <%= Alchemy.t(:welcome_note, name: current_alchemy_user.try(:name)) %>
    <% else -%>
    <%= Alchemy.t(:welcome_back_note, name: current_alchemy_user.try(:name)) %>
    <% end -%>
  </h1>
  <% if @last_sign_at %>
  <p>
    <small><%= Alchemy.t('Your last login was on', time: l(@last_sign_at, format: :'alchemy.default')) %></small>
  </p>
  <% end %>
  <div class="column left">
    <%= render 'locked_pages' %>
    <%= render 'recent_pages' %>
  </div>
  <div class="column right">
    <% if @online_users.try(:any?) %>
      <%= render 'users' %>
    <% end %>

    <% if multi_site? %>
      <%= render 'sites' %>
    <% end %>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-7.2.8 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/dashboard/index.html.erb