Merge pull request #1446 from RaspAP/feat/contributing

Update about page with contributing tab
This commit is contained in:
Bill Zimmerman 2023-11-06 17:48:59 +01:00 committed by GitHub
commit 080e5140cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 1 deletions

View file

@ -11,6 +11,14 @@ function DisplayAbout()
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
$sponsorsHtml = $Parsedown->text($strContent);
echo renderTemplate("about", compact('sponsorsHtml'));
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/CONTRIBUTING.md');
$contributingHtml = $Parsedown->text($strContent);
echo renderTemplate(
"about", compact(
'sponsorsHtml',
'contributingHtml'
)
);
}

Binary file not shown.

View file

@ -1374,3 +1374,14 @@ msgstr "Connect %s"
msgid "Disconnect %s"
msgstr "Disconnect %s"
#: includes/about.php
msgid "About"
msgstr "About"
msgid "Insiders"
msgstr "Insiders"
msgid "Contributing"
msgstr "Contributing"

View file

@ -19,6 +19,7 @@ require_once 'app/lib/Parsedown.php';
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" href="#aboutgeneral" data-toggle="tab"><?php echo _("About"); ?></a></li>
<li class="nav-item"><a class="nav-link" href="#aboutsponsors" data-toggle="tab"><?php echo _("Insiders"); ?></a></li>
<li class="nav-item"><a class="nav-link" href="#aboutcontrib" data-toggle="tab"><?php echo _("Contributing"); ?></a></li>
</ul>
<!-- /.nav-tabs -->
@ -26,6 +27,7 @@ require_once 'app/lib/Parsedown.php';
<div class="tab-content">
<?php echo renderTemplate("about/general", $__template_data) ?>
<?php echo renderTemplate("about/insiders", $__template_data) ?>
<?php echo renderTemplate("about/contributing", $__template_data) ?>
</div>
<!-- /.tab-content -->

View file

@ -0,0 +1,9 @@
<!-- about contributing tab -->
<div class="tab-pane fade" id="aboutcontrib">
<div class="row">
<div class="col-lg-12 mt-3">
<?php echo $contributingHtml; ?>
</div>
</div><!-- /.row -->
</div><!-- /.tab-pane | contributing tab -->