Skip to content
Draft
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions app/home/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ const {
export default class Home extends Controller {
@service features!: Features;

queryParams = [{
loginNotAvailable: {
as: 'login_not_available',
},
}];

organization: string = organization;
brand: string = longBrand;
useSimplePage: boolean = simplePage;
loginNotAvailable: boolean = false;

get heroStyle(): string {
return simplePage ? 'height: 600px !important;' : 'min-height: auto;';
Expand Down
9 changes: 9 additions & 0 deletions app/home/template.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<main data-analytics-scope='Home'>
{{#if this.loginNotAvailable}}
<BsAlert
@type='danger'
@dismissible={{true}}
style='margin-bottom: 0'
>
{{t 'banners.login_availability.error'}}
</BsAlert>
{{/if}}
<Home::-Components::HeroBanner />
</main>
2 changes: 2 additions & 0 deletions translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ banners:
view_only:
warning: 'You are viewing GakuNin RDM through a view-only link, which may limit the data you have permission to see.'
view_normally: 'Leave this view'
login_availability:
error: 'Login availability is not available.'
move_to_project:
create_new_project: 'Create new public project'
connect_to_existing: 'Connect file to existing GakuNin RDM project'
Expand Down
2 changes: 2 additions & 0 deletions translations/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ banners:
view_only:
warning: 'GakuNin RDMを表示専用リンクから表示しているため、表示する権限があるデータが制限される場合があります。'
view_normally: このページを離れます。
login_availability:
error: 'ログインできません。'
move_to_project:
create_new_project: 新規の公開プロジェクトを作成
connect_to_existing: '既存のGakuNin RDMプロジェクトへファイルを接続する'
Expand Down