1
0
Fork 0
mirror of https://github.com/safing/web synced 2025-04-17 01:19:08 +00:00

Outsource source code faq to shared file

gets repeated too often so it makes sense to DRY it up
This commit is contained in:
davegson 2022-02-07 16:20:00 +01:00
parent d0fb06a7b9
commit a235197b55
4 changed files with 32 additions and 67 deletions

View file

@ -0,0 +1,28 @@
{% if include.faq_id %}
{% assign faq_id = include.faq_id %}
{% else %}
{% assign faq_id = "0" %}
{% endif %}
<div class="faq-container-bottom-question">
<div class="card-faq hover-scale-out">
<label class="card-label" for="card-toggle-anchor-{{ faq_id }}">
<div class="wrapper-left">
<div class="card-title">
<h3 class="title">
Where can I find your source code?
</h3>
</div>
</div>
<div class="wrapper-right">
<i class="icon-arrow"></i>
</div>
</label>
<input class="card-input-toggle" id="card-toggle-anchor-{{ faq_id }}" type="checkbox">
<div class="card-dropdown-toggle">
<div class="card-dropdown-content">
You can find our code on <a href="{{ site.github_url }}" class="link-primary">Github</a>. <a href="{{ site.github_url }}/portmaster/" class="link-primary">The Portmaster</a>, the <a href="{{ site.github_url }}/portmaster-ui/" class="link-primary">Portmaster UI</a>, the <a href="{{ site.github_url }}/spn/" class="link-primary">SPN</a>, the <a href="{{ site.github_url }}/docs/" class="link-primary">docs</a> and <a href="{{ site.github_url }}/web/" class="link-primary">this website</a> have their respective repositories. <a href="{{ site.github_url }}/jess/" class="link-primary">Jess</a>, the heart of the SPN, which got <a href="https://cure53.de/pentest-report_safing-jess.pdf">audited by Cure53</a>, can also be found online.
</div>
</div>
</div>
</div>

View file

@ -239,28 +239,7 @@ redirect_from:
</div>
</div>
{% endfor %}
<div class="faq-container-bottom-question">
<div class="card-faq hover-scale-out">
<label class="card-label" for="card-toggle-anchor-0">
<div class="wrapper-left">
<div class="card-title">
<h3 class="title">
Where can I find your source code?
</h3>
</div>
</div>
<div class="wrapper-right">
<i class="icon-arrow"></i>
</div>
</label>
<input class="card-input-toggle" id="card-toggle-anchor-0" type="checkbox">
<div class="card-dropdown-toggle">
<div class="card-dropdown-content">
You can find our code on <a href="{{ site.github_url }}" class="link-primary">Github</a>. <a href="{{ site.github_url }}/portmaster/" class="link-primary">The Portmaster</a>, the <a href="{{ site.github_url }}/portmaster-ui/" class="link-primary">Portmaster UI</a>, the <a href="{{ site.github_url }}/spn/" class="link-primary">SPN</a>, the <a href="{{ site.github_url }}/docs/" class="link-primary">docs</a> and <a href="{{ site.github_url }}/web/" class="link-primary">this website</a> have their respective repositories. <a href="{{ site.github_url }}/jess/" class="link-primary">Jess</a>, the heart of the SPN, which got <a href="https://cure53.de/pentest-report_safing-jess.pdf">audited by Cure53</a>, can also be found online.
</div>
</div>
</div>
</div>
{% include source_code_faq.html %}
</div>
</div>
</section>

View file

@ -247,27 +247,7 @@ layout: page
</div>
</div>
{% endfor %}
<div class="faq-container-bottom-question">
<div class="card-faq hover-scale-out">
<label class="card-label" for="card-toggle-anchor-0">
<div class="wrapper-left">
<div class="card-title">
<h3 class="title">
Where can I find your source code?
</h3>
</div>
</div>
<div class="wrapper-right">
<i class="icon-arrow"></i>
</div>
</label>
<input class="card-input-toggle" id="card-toggle-anchor-0" type="checkbox">
<div class="card-dropdown-toggle">
<div class="card-dropdown-content">
You can find our code on <a href="{{ site.github_url }}" class="link-primary">Github</a>. <a href="{{ site.github_url }}/portmaster/" class="link-primary">The Portmaster</a>, the <a href="{{ site.github_url }}/portmaster-ui/" class="link-primary">Portmaster UI</a>, the <a href="{{ site.github_url }}/spn/" class="link-primary">SPN</a>, the <a href="{{ site.github_url }}/docs/" class="link-primary">docs</a> and <a href="{{ site.github_url }}/web/" class="link-primary">this website</a> have their respective repositories. <a href="{{ site.github_url }}/jess/" class="link-primary">Jess</a>, the heart of the SPN, which got <a href="https://cure53.de/pentest-report_safing-jess.pdf">audited by Cure53</a>, can also be found online.
</div>
</div>
</div>
{% include source_code_faq.html %}
</div>
</div>
</div>

View file

@ -78,30 +78,7 @@ layout: page
</div>
</div>
{% endfor %}
<div class="faq-container-bottom-question">
<div class="card-faq hover-scale-out">
<label class="card-label" for="card-toggle-anchor-portmaster-0">
<div class="wrapper-left">
<div class="card-title">
<h3 class="title">
Where can I find your source code?
</h3>
</div>
</div>
<div class="wrapper-right">
<i class="icon-arrow"></i>
</div>
</label>
<input class="card-input-toggle" id="card-toggle-anchor-portmaster-0" type="checkbox">
<div class="card-dropdown-toggle">
<div class="card-dropdown-content">
You can find our code on <a class="link-primary" href="">Github. The Portmaster</a>, the <a class="link-primary" href="">Portmaster UI</a>, the <a class="link-primary" href="">SPN</a>, the <a class="link-primary" href="">docs</a>
and <a class="link-primary" href="">this website</a> have their respective repositories. <a class="link-primary" href="">Jess</a>, the heart of the SPN, which
got audited by Cure53, can also be found online.
</div>
</div>
</div>
</div>
{% include source_code_faq.html %}
</div>
</div>
<div class="space-y-36" id="portmaster">
@ -166,6 +143,7 @@ layout: page
</div>
</div>
{% endfor %}
{% include source_code_faq.html faq_id='spn-0'%}
</div>
</div>
</section>