Permalink
Browse files

closes #331

  • Loading branch information...
1 parent cd8f094 commit 3ba81b3c2dd2d1e3ff1b7953fef912bc92a26777 @benkeen committed Dec 7, 2015
Showing with 4 additions and 4 deletions.
  1. +2 −2 index.php
  2. +1 −1 resources/lang/en.php
  3. +1 −1 resources/templates/index.tpl
View
@@ -52,13 +52,13 @@
$pageParams["selectedDataTypes"] = Core::$user->getSelectedDataTypes();
$pageParams["selectedExportTypes"] = Core::$user->getSelectedExportTypes();
$pageParams["selectedCountries"] = Core::$user->getSelectedCountries();
-
- // the developer settings on the Settings page are only visible for the administrator, or
+ $pageParams["showSettingsTab"] = true;
$pageParams["showDeveloperSettings"] = Core::$user->isAdmin() || Core::$user->isAnonymousAdmin();
} else {
$pageParams["isLoggedIn"] = false;
$pageParams["accountType"] = "";
$pageParams["showDeveloperSettings"] = false;
+ $pageParams["showSettingsTab"] = false;
}
Templates::displayPage("resources/templates/index.tpl", $pageParams);
@@ -214,7 +214,7 @@
$L["create_account"] = "Create Account";
$L["edit"] = "Edit";
$L["delete"] = "Delete";
-$L["no_user_accounts_defined"] = "No user accounts defined.";
+$L["no_user_accounts_defined"] = "No user accounts added yet.";
$L["num_records_generated"] = "Generated";
$L["last_logged_in"] = "Last Logged In";
$L["date_created"] = "Date Created";
@@ -66,7 +66,7 @@
<ul>
<li id="gdMainTab1" class="gdSelected">{$L.generate}</li>
<li id="gdMainTab2" {if $settings.userAccountSetup != "multiple" || $accountType != "admin"}style="display:none"{/if}>{$L.accounts}</li>
- <li id="gdMainTab3" {if $settings.userAccountSetup != "anonymousAdmin" && $accountType != "admin"}style="display:none"{/if}>{$L.settings}</li>
+ <li id="gdMainTab3" {if !$showSettingsTab}style="display:none"{/if}>{$L.settings}</li>
<li id="gdMainTab4">{$L.about}</li>
</ul>
</nav>

0 comments on commit 3ba81b3

Please sign in to comment.