Skip to content

Commit

Permalink
Install welcome message update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Aug 15, 2024
1 parent f3246e9 commit 89bcdd6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 47 deletions.
3 changes: 3 additions & 0 deletions .idea/leantime-oss.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions app/Domain/Install/Templates/new.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
<br /><br />
<input type="hidden" name="install" value="Install" />
<p><input type="submit" name="installAction" class="btn btn-primary" value="<?=$tpl->language->__("buttons.install");?>" onClick="this.form.submit(); this.disabled=true; this.value='<?=$tpl->language->__("buttons.install");?>'; "/></p>

</form>



</div>
23 changes: 23 additions & 0 deletions app/Domain/Install/register.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use Leantime\Core\Events;
use Leantime\Core\Frontcontroller;

Events::add_filter_listener("leantime.core.template.*.welcomeText", function ($welcomeText) {

$language = app()->make(Leantime\Core\Language::class);

if (Frontcontroller::getCurrentRoute() == "install") {
$welcomeText = '<h1 class="mainWelcome">'.$language->__('headlines.welcome').'</h1>';
$subText = "";
$welcomeText = $welcomeText . $subText;
}

if (Frontcontroller::getCurrentRoute() == "install.update") {
$welcomeText = '<h1 class="mainWelcome">'.$language->__('headlines.welcome').'</h1>';
$subText = "";
$welcomeText = $welcomeText . $subText;
}

return $welcomeText;
});
45 changes: 1 addition & 44 deletions public/dist/mix-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,6 @@
"/images/03-1.png": "/images/03-1.png",
"/images/32px.png": "/images/32px.png",
"/images/40px.png": "/images/40px.png",
"/images/Screenshots/Confetti.png": "/images/Screenshots/Confetti.png",
"/images/Screenshots/Dashboard.png": "/images/Screenshots/Dashboard.png",
"/images/Screenshots/DocsEmbed.png": "/images/Screenshots/DocsEmbed.png",
"/images/Screenshots/DocsStandard.png": "/images/Screenshots/DocsStandard.png",
"/images/Screenshots/Files.png": "/images/Screenshots/Files.png",
"/images/Screenshots/Home.png": "/images/Screenshots/Home.png",
"/images/Screenshots/Ideas.png": "/images/Screenshots/Ideas.png",
"/images/Screenshots/Kanban2.png": "/images/Screenshots/Kanban2.png",
"/images/Screenshots/Leancanvas.png": "/images/Screenshots/Leancanvas.png",
"/images/Screenshots/Milestones.png": "/images/Screenshots/Milestones.png",
"/images/Screenshots/MyProjects.png": "/images/Screenshots/MyProjects.png",
"/images/Screenshots/Portfolio.png": "/images/Screenshots/Portfolio.png",
"/images/Screenshots/Reports.png": "/images/Screenshots/Reports.png",
"/images/Screenshots/Strategy.png": "/images/Screenshots/Strategy.png",
"/images/Screenshots/Task.png": "/images/Screenshots/Task.png",
"/images/Screenshots/Tasks-calendar.png": "/images/Screenshots/Tasks-calendar.png",
"/images/Screenshots/Tasks-kanban.png": "/images/Screenshots/Tasks-kanban.png",
"/images/Screenshots/Tasks-list.png": "/images/Screenshots/Tasks-list.png",
"/images/Screenshots/Tasks-table.png": "/images/Screenshots/Tasks-table.png",
"/images/Screenshots/Tasks-timeline.png": "/images/Screenshots/Tasks-timeline.png",
"/images/Screenshots/TimesheetAdmin.png": "/images/Screenshots/TimesheetAdmin.png",
"/images/Screenshots/Timesheets.png": "/images/Screenshots/Timesheets.png",
"/images/Screenshots/ToDoKanban.png": "/images/Screenshots/ToDoKanban.png",
"/images/Screenshots/ToDoTable.png": "/images/Screenshots/ToDoTable.png",
"/images/Screenshots/ToDoView.png": "/images/Screenshots/ToDoView.png",
"/images/Screenshots/UserDashboard.png": "/images/Screenshots/UserDashboard.png",
"/images/Screenshots/apps.png": "/images/Screenshots/apps.png",
"/images/Screenshots/blueprints.png": "/images/Screenshots/blueprints.png",
"/images/Screenshots/calendar.png": "/images/Screenshots/calendar.png",
Expand All @@ -55,7 +29,6 @@
"/images/Screenshots/table.png": "/images/Screenshots/table.png",
"/images/Screenshots/timeline.png": "/images/Screenshots/timeline.png",
"/images/Screenshots/timesheet.png": "/images/Screenshots/timesheet.png",
"/images/ajaxLoader.gif": "/images/ajaxLoader.gif",
"/images/apple-touch-icon.png": "/images/apple-touch-icon.png",
"/images/backgrounds/bg0.png": "/images/backgrounds/bg0.png",
"/images/backgrounds/bg1.png": "/images/backgrounds/bg1.png",
Expand All @@ -66,43 +39,28 @@
"/images/backgrounds/bg6.png": "/images/backgrounds/bg6.png",
"/images/backgrounds/bg7.png": "/images/backgrounds/bg7.png",
"/images/calarrow.png": "/images/calarrow.png",
"/images/canvas.PNG": "/images/canvas.PNG",
"/images/chosen-sprite-light.png": "/images/chosen-sprite-light.png",
"/images/[email protected]": "/images/[email protected]",
"/images/chosen-sprite.png": "/images/chosen-sprite.png",
"/images/close.png": "/images/close.png",
"/images/controls.png": "/images/controls.png",
"/images/default-user.png": "/images/default-user.png",
"/images/discord-logo.png": "/images/discord-logo.png",
"/images/doc.png": "/images/doc.png",
"/images/emptyChartBg.png": "/images/emptyChartBg.png",
"/images/favicon.png": "/images/favicon.png",
"/images/glyphicons-halflings-white.png": "/images/glyphicons-halflings-white.png",
"/images/glyphicons-halflings.png": "/images/glyphicons-halflings.png",
"/images/icon-192.png": "/images/icon-192.png",
"/images/icon-512.png": "/images/icon-512.png",
"/images/index.html": "/images/index.html",
"/images/leantime-no-access.jpg": "/images/leantime-no-access.jpg",
"/images/loading-animation.svg": "/images/loading-animation.svg",
"/images/logo-powered-by-leantime.png": "/images/logo-powered-by-leantime.png",
"/images/logo.png": "/images/logo.png",
"/images/logo.svg": "/images/logo.svg",
"/images/logo_blue.png": "/images/logo_blue.png",
"/images/logo_blue.svg": "/images/logo_blue.svg",
"/images/mattermost-logoHorizontal.png": "/images/mattermost-logoHorizontal.png",
"/images/onboarding/canvasScreen.png": "/images/onboarding/canvasScreen.png",
"/images/onboarding/ideaScreen.png": "/images/onboarding/ideaScreen.png",
"/images/onboarding/retroScreen.png": "/images/onboarding/retroScreen.png",
"/images/onboarding/roadmapScreen.png": "/images/onboarding/roadmapScreen.png",
"/images/onboarding/todoScreen.png": "/images/onboarding/todoScreen.png",
"/images/openid-icon.png": "/images/openid-icon.png",
"/images/spotlightBg.png": "/images/spotlightBg.png",
"/images/svg/30h/logo.png": "/images/svg/30h/logo.png",
"/images/svg/SVG/logo.svg": "/images/svg/SVG/logo.svg",
"/images/svg/apps-grid-icon.svg": "/images/svg/apps-grid-icon.svg",
"/images/svg/csv-icon.svg": "/images/svg/csv-icon.svg",
"/images/svg/loading-animation.svg": "/images/svg/loading-animation.svg",
"/images/svg/logo.svg": "/images/svg/logo.svg",
"/images/svg/undraw_Organizing_projects_0p9a.svg": "/images/svg/undraw_Organizing_projects_0p9a.svg",
"/images/svg/undraw_a_moment_to_relax_bbpa.svg": "/images/svg/undraw_a_moment_to_relax_bbpa.svg",
"/images/svg/undraw_adjustments_p22m.svg": "/images/svg/undraw_adjustments_p22m.svg",
Expand Down Expand Up @@ -186,8 +144,6 @@
"/fonts/Roboto-Medium.woff2": "/fonts/Roboto-Medium.woff2",
"/fonts/Roboto-MediumItalic.ttf": "/fonts/Roboto-MediumItalic.ttf",
"/fonts/Roboto-MediumItalic.woff2": "/fonts/Roboto-MediumItalic.woff2",
"/fonts/Roboto-Regular.ttf": "/fonts/Roboto-Regular.ttf",
"/fonts/Roboto-Regular.woff2": "/fonts/Roboto-Regular.woff2",
"/fonts/Shantell_Sans-Informal_Bold.woff2": "/fonts/Shantell_Sans-Informal_Bold.woff2",
"/fonts/Shantell_Sans-Informal_Bold_Italic.woff2": "/fonts/Shantell_Sans-Informal_Bold_Italic.woff2",
"/fonts/Shantell_Sans-Informal_Regular.woff2": "/fonts/Shantell_Sans-Informal_Regular.woff2",
Expand Down Expand Up @@ -245,6 +201,7 @@
"/lottie/leo/Mermaid.json": "/lottie/leo/Mermaid.json",
"/lottie/leo/Narhwal.json": "/lottie/leo/Narhwal.json",
"/lottie/leo/Peek_Unicorn.json": "/lottie/leo/Peek_Unicorn.json",
"/lottie/leo/Pirate.json": "/lottie/leo/Pirate.json",
"/lottie/leo/Rainbow_Unicorn.json": "/lottie/leo/Rainbow_Unicorn.json",
"/lottie/leo/Rolling LEO.json": "/lottie/leo/Rolling LEO.json",
"/lottie/leo/announcement.json": "/lottie/leo/announcement.json",
Expand Down

0 comments on commit 89bcdd6

Please sign in to comment.