Sha256: 0dd7426bbb95dbd4deef4563ce94bd0818d13e1b717525dffb39a30318bcae60

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<%= toolbar(
  buttons: [
    {
      icon: 'info-circle',
      label: Alchemy.t(:info),
      url: alchemy.dashboard_info_path,
      title: Alchemy.t(:info),
      dialog_options: {
        title: Alchemy.t(:info),
        size: "420x380"
      },
      if_permitted_to: [:info, :alchemy_admin_dashboard],
      hotkey: 'alt+i'
    }
  ],
  search: false
) %>

<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

4 entries across 4 versions & 1 rubygems

Version Path
alchemy_cms-4.1.2 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-4.1.1 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-4.2.0.rc1 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-4.1.0 app/views/alchemy/admin/dashboard/index.html.erb