Commit 381fb3f8 authored by Rebecca Blundell's avatar Rebecca Blundell Committed by Robert Lyon
Browse files

Bug 1855630: Add styleguide and behat steps to development menu

- Make the styleguide and behat steps accessible from a menu
- langstrings as required

Change-Id: Id8a163a24266ddcd02cec11ee5193b55cf86496f
parent 36031e76
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1488,7 +1488,7 @@ $string['behatvariables'] = 'Behat steps';
$string['behatvariablesdesc'] = 'Tool to find available Behat steps quickly';
$string['nobehatfeaturefiles'] = 'No Behat feature files found';
$string['behatmatchingrows'] = '%s in ';
$string['behatnocore'] = 'Unable to read core Behat steps from behat.yml file';
$string['behatnocoresteps'] = '<p>Unable to read Behat steps from the behat.yml file. To see them, <a href="https://wiki.mahara.org/wiki/Testing_Area/Behat_Testing/Setup#chown">make the www-data the owner of your Behat dataroot directory.</a></p>';
$string['behatstepnotused'] = 'Currently, this Behat step is not used.';

// Privacy Statement section
@@ -1568,10 +1568,11 @@ $string['defaultreset'] = 'Reset to default';
$string['defaultresetlabel'] = 'Reset';
$string['defaultresetdesc'] = 'Reset all of the above options to their default values.';

//Mahara map/ Component library
// Mahara map / component library
$string['componentmap'] = 'Components library';
$string['development'] = 'Development';
$string['exportthirdpartycsv'] = 'Export plugins in CSV format';
$string['exportthirdpartycsv'] = 'Export plugin information in CSV format';
$string['Path'] = 'Path';
$string['styleguide'] = 'Style guide';
$string['thirdpartyplugins'] = 'Third party plugins - List based on README.Mahara files';
$string['url'] = 'url';
+12 −0
Original line number Diff line number Diff line
@@ -2583,12 +2583,24 @@ function admin_nav() {
            'weight' => 80,
            'iconclass' => 'code',
        ),
        'development/behatsteps' => array(
            'path'   => 'development/behatsteps',
            'url'    => 'testing/frameworks/behat/behat_steps_used.php',
            'title'  => get_string('behatvariables', 'admin'),
            'weight' => 10,
        ),
        'development/componentmap' => array(
            'path'   => 'development/componentmap',
            'url'    => 'map/componentmap.php',
            'title'  => get_string('componentmap', 'admin'),
            'weight' => 20,
        ),
        'development/styleguide' => array(
            'path'   => 'development/styleguide',
            'url'    => 'theme/styleguide.php',
            'title'  => get_string('styleguide', 'admin'),
            'weight' => 30,
        ),
    );

    // Add the menu items for skins, if that feature is enabled
+1 −1
Original line number Diff line number Diff line
@@ -103,4 +103,4 @@ setpageicon($smarty, 'icon-cogs');
$smarty->assign('PAGEHEADING', TITLE);
$smarty->assign('data', $data);
$smarty->assign('hascore', $hascore);
$smarty->display('testing/behatvariables.tpl');
$smarty->display('misc/behatvariables.tpl');
+2 −2
Original line number Diff line number Diff line
{include file="header.tpl"}
<p>{str tag=behatvariablesdesc section=admin}</p>
<p class="lead view-description">{str tag=behatvariablesdesc section=admin}</p>
{if !$hascore}
<div class="alert alert-warning">{str tag=behatnocore section=admin}</div>
<div class="alert alert-warning">{str tag=behatnocoresteps section=admin}</div>
{/if}
{if $data}
    {assign var="prevkey" value=''}