Sha256: 93ba4925dc96f99b63ab4888d8a3da136d2ee8ac163a06d7e45f1892decacd0f

Contents?: true

Size: 1.54 KB

Versions: 9

Compression:

Stored size: 1.54 KB

Contents

<h2 class="card-title">
  <%= t "decidim.admin.titles.dashboard" %>
</h2>

<div class="content">
  <p><%= t ".welcome" %></p>

  <% unless current_user.admin_terms_accepted? %>
    <%= cell("decidim/announcement", admin_terms_announcement_args ) %>
  <% end %>

  <div class="grid-x grid-margin-x">
    <% if current_user.admin? && current_user.organization&.id == current_organization.id %>
      <div class="cell small-12 medium-6 large-4">
        <%= render(
          partial: "decidim/admin/users_statistics/users_count",
          locals: {
            result: users_counter
          }
        ) %>
      </div>
    <% end %>
  </div>

  <div class="grid-x grid-margin-x">
    <% if allowed_to? :read, :metrics %>
      <div class="cell small-6">
        <%= render(
          partial: "decidim/admin/metrics/metrics",
          locals: {
            metrics_presenter: metrics_presenter,
            show_link_to_more: true
          }
        ) %>
      </div>
    <% end %>

    <% if allowed_to? :read, :admin_log %>
      <div class="cell small-6">
        <%= render partial: "decidim/admin/logs/logs_list", locals: { logs: latest_action_logs } %>
        <% if latest_action_logs.any? %>
          <div class="text-center"><%= link_to t(".view_more_logs"), logs_path %></div>
        <% end %>
      </div>
    <% end %>
  </div>

  <% if current_user.admin_terms_accepted? %>
    <p class="text-right">
      <small>
        <%= link_to( t("title", scope: "decidim.admin.admin_terms_of_use"), admin_terms_show_path) %>
      </small>
    </p>
  <% end %>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-admin-0.23.6 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.5 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.4 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.3 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.1.rc1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.23.0 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.22.0 app/views/decidim/admin/dashboard/show.html.erb