Skip to content

Commit

Permalink
web-browser: Add browser cache refresh warning
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Feb 22, 2017
1 parent dc1b648 commit 6557c7d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -6652,3 +6652,8 @@ div.diff-body[data-outdated="true"] tr:hover .icon-comment {
height: 40px;
}
}

.cache-warning {
color: darkviolet;
font-weight: bold;
}
3 changes: 3 additions & 0 deletions app/views/common/loginDialog.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
}
}
} else {
@if(UserApp.currentUser().isAnonymous){
<div class="cache-warning">@Messages("browser.cache.refresh.message")</div>
}
<a href="@routes.Application.oAuthLogout()" class="ybtn oauth-login-btn">@Messages("title.logout")</a>
}
}
Expand Down
1 change: 1 addition & 0 deletions conf/messages
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ app.welcome.warning.title = Create website-admin account
app.warn.support.social.login.only = Only allow sign-in via social login
app.warn.cannot.access.email.information = Cannot confirm email address. If you are a Github/Github Enterprise user, please make sure that your personal email settings.
branch.recently.update = Last updated
browser.cache.refresh.message = If you see this message, please force-refresh (Ctrl-R or Cmd-R). If you keep seeing this message, leave it as an issue.
button.add = Add
button.apply = Apply
button.back = Back
Expand Down
1 change: 1 addition & 0 deletions conf/messages.ko-KR
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ app.welcome.warning.title = 사이트 관리자 계정을 생성합니다.
app.warn.support.social.login.only = 소셜 로그인을 통한 로그인만 가능합니다.
app.warn.cannot.access.email.information = 이메일을 확인할 수 없습니다. Github/Github Enterprise 유저의 경우 개인 설정에서 이메일을 비공개로 지정해 놓지 않았는지 확인해 주세요.
branch.recently.update = 최근 업데이트
browser.cache.refresh.message = 만약 이 메시지를 보신다면 강제 화면 갱신(Ctrl-R 혹은 Cmd-R)을 해주세요. 만약 이 메시지를 계속 본다면 이슈로 남겨주세요.
button.add = 추가
button.apply = 적용
button.back = 돌아가기
Expand Down

0 comments on commit 6557c7d

Please sign in to comment.