* fix: remove hardcoded paths * fix: use path helpers * swap href for link_to * feat: use path helpers * feat: use a data path to send through the path that we will be calling * feat: pass route through to js * dus index path * chore: change to use path_helpers * feat: update DUS controller * chore: oops remove these paths
85 lines
4.6 KiB
Text
85 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"><%= link_to "Invite people", admin_invitations_path, 'data-action': "click->ahoy#trackOverviewLink" %> 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>
|