docbrown/app/views/admin/overview/index.html.erb
Ridhwana cf5207564f
RFC#50-P5 Prepares the admin restructure to be tested (#13114)
* feat: make the sidebar more dynamic

* refactor: use the action in the same controller instead of the whole path

* feat: remove hardcoded routes

* feat: move routes into file

* feat: use rails 6 draw for the admin routes

* add a helper method

* oops: fix super

* feat: add the hacky helper methods :( )

* WIP: created different path helpers for the new routes and point the old helpers to the new ones if the FF is toggled

* feat: update the module

* chore: add new paths

* feat: change link_to's use paths instead

* feat: feedback_messages to scoped admin route

* chore: update the feature flag urls helpers

* feat: feedback_messages issue

* chore: remove all the workarounds

* chore: rubucop

* fix: oops remove helper

* chore: comment out the tests that touch the tabbed navbar which is affected by the rails application needing to be reloaded

* feat: ensure that we chcek if the db table exists
2021-04-15 14:53:46 +02:00

86 lines
4.6 KiB
Text

<h2 class="crayons-title">
Overview
</h2>
<div class="px-0 crayons-layout crayons-layout--2-cols crayons-layout--2-cols--1-2 crayons-layout--2-cols--inverted">
<article class="crayons-layout__content">
<section class="crayons-card mb-4">
<div class="crayons-card__body p-4" data-controller="ahoy">
<h3 class="crayons-subtitle-1">Welcome Checklist</h3>
<p class="crayons-subtitle-4 color-base-70 mb-3">Here are a few things we recommend doing now that you're using Forem!</p>
<ol>
<li class="mb-1 -ml-4">Set up and configure your Forem under <%= link_to "Config", admin_config_path, 'data-action': "click->ahoy#trackOverviewLink" %></li>
<li class="mb-1 -ml-4"><a href="/admin/invitations" data-action="click->ahoy#trackOverviewLink">Invite people</a> to join your Forem</li>
<li class="mb-1 -ml-4"><%= link_to "Update your Forem tags", admin_tags_path, 'data-action': "click->ahoy#trackOverviewLink" %></li>
<li class="mb-1 -ml-4"><%= link_to "Create pages", admin_pages_path, 'data-action': "click->ahoy#trackOverviewLink" %> and <%= link_to "sort them in the navigation sidebar", admin_navigation_links_path, 'data-action': "click->ahoy#trackOverviewLink" %></li>
<li class="mb-1 -ml-4">Read the <a href="https://forem.gitbook.io/forem-admin-guide/quick-start-guide" data-action="click->ahoy#trackOverviewLink">Quick Start Guide</a></li>
<li class="mb-1 -ml-4"><%= link_to "Set up a Welcome Thread", admin_welcome_index_path, 'data-action': "click->ahoy#trackOverviewLink" %></li>
<li class="mb-1 -ml-4">Browse the <a href="https://forem.gitbook.io/forem-admin-guide" data-action="click->ahoy#trackOverviewLink">Forem Admin Guide</a></li>
<li class="-ml-4">Join the private <a href="https://creators.forem.com">Creators Forem</a> (email <a href="mailto:support@forem.com" data-action="click->ahoy#trackOverviewLink">support@forem.com</a> if you need an invite)</li>
</ol>
<div class="align-center">
<a class="crayons-btn crayons-btn--ghost-brand" href="https://forem.gitbook.io/forem-admin-guide" data-action="click->ahoy#trackOverviewLink">Visit Forem Admin Guide</a>
</div>
</div>
</section>
<h2 class="crayons-subtitle-1 mb-3">Analytics</h2>
<article class="grid s:grid-cols-2 gap-3 mb-4" data-controller="ahoy">
<section class="crayons-card">
<div class="crayons-card__body">
<h2 class="crayons-title"><%= @open_abuse_reports_count %></h2>
<p class="crayons-subtitle-4 color-base-70">
<%= "Open report".pluralize(@open_abuse_reports_count) %>
</p>
</div>
</section>
</article>
<h2 class="crayons-subtitle-1 mb-3">Resources</h2>
<article class="grid s:grid-cols-2 gap-3" data-controller="ahoy">
<section class="crayons-card">
<div class="crayons-card__header">
<h3 class="crayons-subtitle-2">Forem Admin Guide</h3>
</div>
<div class="crayons-card__body flex flex-wrap" style="min-height: 150px;">
<p class="mb-2">
This guide gives you the best practices on how you can manage and
grow your community on Forem.
</p>
<a role="button" href="https://forem.gitbook.io/forem-admin-guide" class="crayons-btn mt-1 w-100 self-end" data-action="click->ahoy#trackOverviewLink">Visit Guide</a>
</div>
</section>
<section class="crayons-card">
<div class="crayons-card__header">
<h3 class="crayons-subtitle-2">Forem Creators Community</h3>
</div>
<div class="crayons-card__body flex flex-wrap" style="min-height: 150px;">
<p class="mb-2">
Meet other creators using Forem so that you can share tips with
each other.
</p>
<a role="button" href="https://creators.forem.com" class="crayons-btn mt-1 w-100 self-end" data-action="click->ahoy#trackOverviewLink">Join Community</a>
</div>
</section>
</article>
</article>
<div class="crayons-layout__sidebar-right">
<article class="crayons-card">
<div class="crayons-card__header">
<h3 class="crayons-subtitle-2">Deployment</h3>
</div>
<div class="crayons-card__body">
<small class="crayons-field__description">
Last Deployed
</small>
<p class="mb-2">
<%= ForemInstance.deployed_at %>
</p>
<small class="crayons-field__description">
Latest Commit ID
</small>
<p>
<%= ForemInstance.latest_commit_id || "Not Available" %>
</p>
</div>
</article>
</div>
</div>