Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide sign in / create account for logged in users #8368

Merged
merged 1 commit into from
Feb 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion res/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@
margin: 28px 0;
}

.mx_ButtonRow_guest {
display: none;
}

/* mx_HomePage_guest is set on the `HomePage` component for guest users */
.mx_HomePage_guest .mx_ButtonRow_guest {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}

.mx_buttonheadline {
margin-bottom: 14px;
}
Expand Down Expand Up @@ -162,7 +174,7 @@
<h1 class="mx_Header2">_t("Welcome to Riot.im")</h1>
<h4 class="mx_Header22">_t("Decentralised, encrypted chat &amp; collaboration powered by [matrix]")</h4>
<div class="mx_Well">
<div class="mx_ButtonRow">
<div class="mx_ButtonRow mx_ButtonRow_guest">
<a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
<div class="mx_buttonlabel">_t("Sign In")</div>
</a>
Expand Down