Skip to content

Commit

Permalink
Added upgrade to IHP Pro button
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Oct 11, 2021
1 parent 714fe12 commit b88dbe0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions IHP/IDE/ToolServer/Layout.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ toolServerLayout inner = H.docTypeHtml ! A.lang "en" $ [hsx|
{deploy}
{docu}

{getPro}
{help}
<a href="https://www.digitallyinduced.com/" id="nav-copyright" target="_blank">©<br />digitally induced GmbH</a>
</div>
Expand Down Expand Up @@ -118,6 +119,18 @@ toolServerLayout inner = H.docTypeHtml ! A.lang "en" $ [hsx|
</div>
|]

getPro :: Html
getPro = [hsx|
<a
href="https://ihp.digitallyinduced.com/Pricing?source=ide"
class="nav-item text-center"
target="_blank"
id="nav-upgrade"
>
Upgrade to <br /> IHP Pro
</a>
|]

appNavItem :: Text -> Html
appNavItem "Web" = navItem "APP" fileIcon (appUrl <> "/") False
appNavItem name = navItem (toUpper name) fileIcon (appUrl <> "/" <> (toLower name) <> "/") False
Expand Down
2 changes: 1 addition & 1 deletion lib/IHP/static/IDE/ihp-toolserver-layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ body {
.data-rows-table [data-fieldname="created_at"] { font-size: 8px }
.data-rows-table [data-fieldname="password_hash"] { font-size: 8px }

#nav-help {
#nav-upgrade {
margin-top: auto;
}

Expand Down

0 comments on commit b88dbe0

Please sign in to comment.