Sha256: afc145b40e2ef1611957de03ada554817eb7c7d1eb720bf4cdc07035ff68fa16

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

<%= toolbar(
  buttons: [
    {
      icon: 'info',
      label: _t(:info),
      url: alchemy.dashboard_info_path,
      title: _t(:info),
      overlay_options: {
        title: _t(:info),
        size: "420x360"
      },
      if_permitted_to: [:info, :alchemy_admin_dashboard],
     hotkey: 'alt-i'
    }
  ],
  search: false
) %>

<div id="dashboard">
  <h1>
    <% if @first_time -%>
    <%= _t('Welcome, %{name}', name: current_user.firstname.blank? ? current_user.login : current_user.firstname) %>
    <% else -%>
    <%= _t('Welcome back, %{name}', name: current_user.firstname.blank? ? current_user.login : current_user.firstname) %>
    <% end -%>
  </h1>
  <p>
    <small><%= _t('Your last login was on %{time}', time: l(current_user.last_sign_in_at)) unless current_user.last_sign_in_at.blank? %></small>
  </p>
  <div class="column left">
    <%= render 'locked_pages' %>
    <%= render 'recent_pages' %>
  </div>
  <div class="column right">
    <%= render 'users' %>
    <% if multi_site? %>
      <%= render 'sites' %>
    <% end %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.8.3 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/dashboard/index.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/dashboard/index.html.erb