mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
Merge pull request #1446 from RaspAP/feat/contributing
Update about page with contributing tab
This commit is contained in:
commit
080e5140cf
5 changed files with 31 additions and 1 deletions
|
@ -11,6 +11,14 @@ function DisplayAbout()
|
||||||
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
|
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
|
||||||
$sponsorsHtml = $Parsedown->text($strContent);
|
$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.
|
@ -1374,3 +1374,14 @@ msgstr "Connect %s"
|
||||||
msgid "Disconnect %s"
|
msgid "Disconnect %s"
|
||||||
msgstr "Disconnect %s"
|
msgstr "Disconnect %s"
|
||||||
|
|
||||||
|
#: includes/about.php
|
||||||
|
|
||||||
|
msgid "About"
|
||||||
|
msgstr "About"
|
||||||
|
|
||||||
|
msgid "Insiders"
|
||||||
|
msgstr "Insiders"
|
||||||
|
|
||||||
|
msgid "Contributing"
|
||||||
|
msgstr "Contributing"
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ require_once 'app/lib/Parsedown.php';
|
||||||
<ul class="nav nav-tabs">
|
<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 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="#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>
|
</ul>
|
||||||
<!-- /.nav-tabs -->
|
<!-- /.nav-tabs -->
|
||||||
|
|
||||||
|
@ -26,6 +27,7 @@ require_once 'app/lib/Parsedown.php';
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<?php echo renderTemplate("about/general", $__template_data) ?>
|
<?php echo renderTemplate("about/general", $__template_data) ?>
|
||||||
<?php echo renderTemplate("about/insiders", $__template_data) ?>
|
<?php echo renderTemplate("about/insiders", $__template_data) ?>
|
||||||
|
<?php echo renderTemplate("about/contributing", $__template_data) ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.tab-content -->
|
<!-- /.tab-content -->
|
||||||
|
|
||||||
|
|
9
templates/about/contributing.php
Normal file
9
templates/about/contributing.php
Normal 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 -->
|
||||||
|
|
Loading…
Reference in a new issue