Sha256: eb475787478d479f17dfd9ad2dc470cd28e72fb2591ea64b397660c8fdc4a092

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 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.any? %>
      <%= render 'users' %>
    <% end %>
    <% if multi_site? %>
      <%= render 'sites' %>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

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