Sha256: c996e2130a3d225d740269192cea846c4bd861418e8b7eadec237c63ad3be5fa

Contents?: true

Size: 1.67 KB

Versions: 21

Compression:

Stored size: 1.67 KB

Contents

<% add_decidim_page_title(t("decidim.admin.titles.dashboard")) %>

<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", announcement_body, callout_class: current_user.admin_terms_accepted? ? "success" : "warning" ) %>
  <% 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

21 entries across 21 versions & 1 rubygems

Version Path
decidim-admin-0.27.0 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.26.3 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.27.0.rc2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.27.0.rc1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.26.2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.26.1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.26.0 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.26.0.rc2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.26.0.rc1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.0 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.0.rc4 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.0.rc3 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.0.rc2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.25.0.rc1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.24.3 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.24.2 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.24.1 app/views/decidim/admin/dashboard/show.html.erb
decidim-admin-0.24.0 app/views/decidim/admin/dashboard/show.html.erb