diff options
| author | Xiaofeng An <futureweb2020@yandex.com> | 2019-02-06 14:28:50 -0500 |
|---|---|---|
| committer | Xiaofeng An <futureweb2020@yandex.com> | 2019-02-06 14:28:50 -0500 |
| commit | e107ed8ddcc536ad4879e5aa243fc7ac35c1272c (patch) | |
| tree | 9a103aa6bf6325f0266494162360ebe6727c84f1 /src | |
| parent | 460976c6e5b23f47d5520a99b3113825fc5dbda4 (diff) | |
| parent | 6cca15bade6f3cf2a2586c8e7390e2bc988f5f6e (diff) | |
Merge branch 'develop' into feature/add-an-option-for-a-default-formatting
Diffstat (limited to 'src')
| -rw-r--r-- | src/App.scss | 14 | ||||
| -rw-r--r-- | src/App.vue | 5 | ||||
| -rw-r--r-- | src/i18n/en.json | 3 |
3 files changed, 21 insertions, 1 deletions
diff --git a/src/App.scss b/src/App.scss index d3721b32..1eaed6ea 100644 --- a/src/App.scss +++ b/src/App.scss @@ -719,3 +719,17 @@ nav { margin-right: 0.8em; } } + +.login-hint { + text-align: center; + + @media all and (min-width: 801px) { + display: none; + } + + a { + display: inline-block; + padding: 1em 0px; + width: 100%; + } +} diff --git a/src/App.vue b/src/App.vue index 082c6cb6..7541928f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,6 +37,11 @@ </div> </div> <div class="main"> + <div v-if="!currentUser" class="login-hint panel panel-default"> + <router-link :to="{ name: 'login' }" class="panel-body"> + {{ $t("login.hint") }} + </router-link> + </div> <transition name="fade"> <router-view></router-view> </transition> diff --git a/src/i18n/en.json b/src/i18n/en.json index 87849e4c..a816ca7c 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -28,7 +28,8 @@ "password": "Password", "placeholder": "e.g. lain", "register": "Register", - "username": "Username" + "username": "Username", + "hint": "Log in to join discussion" }, "nav": { "about": "About", |
