diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-03-08 21:21:09 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-08 21:21:09 +0000 |
| commit | 72c7fed975ce797da1f33ea82651c5a91ce3957e (patch) | |
| tree | 4e84359029adcd40e31c3b20031c1096018e50aa /core/views | |
| parent | 7cbc904be722b493a060e2ad69849344124fbe91 (diff) | |
Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog. The text in there needs a
little work but it's a start.
In the process, re-build the install.sql using the scaffolding code.
Diffstat (limited to 'core/views')
| -rw-r--r-- | core/views/after_install.html.php | 28 | ||||
| -rw-r--r-- | core/views/after_install_loader.html.php | 6 |
2 files changed, 34 insertions, 0 deletions
diff --git a/core/views/after_install.html.php b/core/views/after_install.html.php new file mode 100644 index 00000000..443141b5 --- /dev/null +++ b/core/views/after_install.html.php @@ -0,0 +1,28 @@ +<h1 style="display: none"> + <?= t("Welcome to Gallery 3!") ?> +</h1> + +<p> + <?= t("Congratulations on choosing Gallery to host your photos. We're confident that you're going to have a great experience.") ?> +</p> + +<p> + <?= t("You're logged in to the <b>%user_name</b> account. The very first thing you should do is to change your password to something that you'll remember.", array("user_name" => $user->name)) ?> +</p> + +<p> + <a href="<?= url::site("form/edit/users/{$user->id}") ?>" + title="<?= t("Edit Your Profile") ?>" + id="gAfterInstallChangePasswordLink"><?= t("Change Password Now") ?></a> + <script> + $("#gAfterInstallChangePasswordLink").bind("click", handleDialogEvent); + </script> +</p> + +<p> + <?= t("Want to learn more about Gallery? The <a href=\"%url\">Gallery website</a> has news and information about Gallery and the Gallery community.", array("url" => "http://gallery.menalto.com")) ?> +</p> + +<p> + <?= t("Having problems? We've got lots of information in our <a href=\"%codex_url\">documentation site</a> or you can <a href=\"%forum_url\">ask for help in the forums!</a>", array("codex_url" => "http://codex.gallery2.org/Main_Page", "forum_url" => "http://gallery.menalto.com/forum")) ?> +</ul> diff --git a/core/views/after_install_loader.html.php b/core/views/after_install_loader.html.php new file mode 100644 index 00000000..0e0ea1d0 --- /dev/null +++ b/core/views/after_install_loader.html.php @@ -0,0 +1,6 @@ +<span id="gAfterInstall" + title="<?= t("Welcome to Gallery 3") ?>" + href="<?= url::site("after_install") ?>"/> +<script type="text/javascript"> + $(document).ready(function(){openDialog($("#gAfterInstall"));}); +</script> |
