Skip to content

Commit

Permalink
Merge pull request #1402 from codidact/cellio/1349-generalize-footer-…
Browse files Browse the repository at this point in the history
…communities

generalized footer
  • Loading branch information
cellio authored Sep 22, 2024
2 parents 712ec5d + 9e4073f commit c811ddd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
1 change: 1 addition & 0 deletions app/views/application/dashboard.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<%= content_for :title, 'Dashboard' %>

<h1>Dashboard</h1>
<p>All communities, with their categories. You can also see the communities from the dropdown arrow at the top right of each page.</p>
<div class="grid community-list">
<% @communities.each do |c| %>
<% categories = Category.unscoped.where(community: c).order(sequence: :asc, id: :asc) %>
Expand Down
21 changes: 8 additions & 13 deletions app/views/layouts/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,23 @@
<div class="footer--container container">
<div class="grid">
<div class="grid--cell is-6 is-12-md is-12-sm">
<h3>The Codidact Project</h3>
<ul>
<li><%= link_to 'Terms of Service', '/policy/tos' %></li>
<li><%= link_to 'Privacy Policy', '/policy/privacy-policy' %></li>
<li><%= link_to 'Code of Conduct', '/policy/code-of-conduct' %></li>
<li><%= link_to 'About us', 'https://codidact.org/' %></li>
<li><%= link_to 'Contact us', 'https://codidact.com/contact' %></li>
<li><%= link_to 'Other communities', 'https://codidact.com/' %></li>
<li><%= link_to 'Our Communities', '/dashboard' %></li>
<li><%= link_to 'About Us', '/policy/network-faq' %></li>
</ul>
</div>
<div class="grid--cell is-6 is-12-md is-12-sm">
<h3>Other Codidact Communities</h3>
<ul>
<% Rails.cache.persistent('codidact_sites').each do |site| %>
<li><%= link_to site['name'], site['canonical_url'] %></li>
<% end %>
<li><%= link_to 'Terms of Service', '/policy/tos' %></li>
<li><%= link_to 'Privacy Policy', '/policy/privacy-policy' %></li>
<li><%= link_to 'Code of Conduct', '/policy/code-of-conduct' %></li>
</ul>
</div>
</div>
<% commit = Rails.cache.persistent('current_commit') %>
<p>
Version <%= link_to commit[0][0..7], "https://github.com/codidact/qpixel/commit/#{commit[0]}" %> (<%= commit[1] %>)
<p>Powered by <%= link_to 'Codidact', 'https://codidact.org/' %>. Version <%=
link_to commit[0][0..7], "https://github.com/codidact/qpixel/commit/#{commit[0]}"
%> (<%= DateTime.iso8601(commit[1]).to_time.utc.strftime('%F %TZ') %>)
</p>
</div>
</footer>
2 changes: 1 addition & 1 deletion config/initializers/zz_cache_setup.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Rails.cache.persistent 'current_commit', clear: true do
[`git rev-parse HEAD`.strip, `git log -1 --date=iso --pretty=format:%cd`.strip]
[`git rev-parse HEAD`.strip, `git log -1 --date=iso-strict --pretty=format:%cd`.strip]
end
7 changes: 5 additions & 2 deletions db/seeds/posts/global_faq.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- This section appears under a "Global FAQ" heading in the help. Insert something about your network here. We've provided some other sections as starting points. The section about the Codidact software and project is meant to go at the end, after the stuff about *your* network and communities. -->
<!-- This section appears under a "Global FAQ" heading in the help. Insert something about your network here. We've provided some other sections as starting points. Please ADD A SUPPORT CONTACT METHOD in the support section! -->
<!-- The section about the Codidact software and project is meant to go at the end, after the stuff about *your* network and communities. -->

<h2 id="how-do-i-ask-a-question-">How do I ask a question?</h2>
<p>You will need to register an account. Make sure you are logged into the appropriate topic-related site for your question and click the &quot;Ask Question&quot; button at the top of the page. A template should appear with helpful guidelines on how to ask a quality question. Check out the local FAQ page for important information about each community.</p>
Expand All @@ -7,7 +8,9 @@ <h2 id="how-do-i-ask-a-question-">How do I ask a question?</h2>
<h2 id="what-license-do-my-posts-fall-under-">What license do my posts fall under?</h2>
<p>Most posts fall under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>. Some communities or contributors may use a license that more closely aligns with the content posted or their ideological position. Check a community&#39;s local FAQ page and Terms of Service for site-specific details. </p>

<!-- uncomment and populate: -->
<!-- <h2 id="support">Where can I get support?</h2> -->

<h2 id="what-is-codidact-">What is Codidact?</h2>
<p>This community is built using the <a href="https://github.com/codidact/qpixel">open-source QPixel software</a> provided by <a href="https://codidact.org">The Codidact Foundation</a>. The software is free, open-source, and customizable.</p>
<p>This community is built with the <a href="https://github.com/codidact/qpixel">QPixel engine</a> provided by <a href="https://codidact.org">The Codidact Foundation</a>. The software is free, open-source, and highly customizable.</p>

0 comments on commit c811ddd

Please sign in to comment.