-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AdminLTE to v3, Bootstrap to v4, jQuery to v3
- Loading branch information
1 parent
5dda9ea
commit 975717d
Showing
60 changed files
with
4,704 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
%ul.timeline | ||
.timeline | ||
= render partial: "shared/description_log", collection: @column_memo_logs | ||
- # The ending icon for the timeline. | ||
%div | ||
%i.fas.fa-clock.bg-gray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.box.box-info.with-border | ||
.box-header | ||
%h4 | ||
.card | ||
.card-header.border-0 | ||
%h4.card-title | ||
= @column_memo.name | ||
= render "shared/description_editor", memo: @column_memo | ||
.card-body | ||
= render "shared/description_editor", memo: @column_memo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,57 @@ | ||
.box-header.with-border | ||
%h2.box-title Schema Candidates | ||
.card-header | ||
%h2.card-title Schema Candidates | ||
|
||
.box-body | ||
%p | ||
Schema Candidates is a whitelist of schemas to be imported. Only | ||
%span.label.label-success subscribe | ||
status schemas will be imported by batch. Click the Import button to add a schema to the whitelist. | ||
%p | ||
This schemas list is retrieved from | ||
- case @data_source.adapter | ||
- when 'postgresql' | ||
%code pg_catalog.pg_namespace | ||
- when 'mysql2' | ||
%code database_name | ||
- when 'redshift' | ||
%code pg_catalog.pg_namespace | ||
- else | ||
%code (catalog table) | ||
, so it has no effect on search_path or Ignored Tables on the setting page. | ||
.card-body.p-0 | ||
.m-2 | ||
%p | ||
Schema Candidates is a whitelist of schemas to be imported. Only | ||
%span.badge.badge-success subscribe | ||
status schemas will be imported by batch. Click the Import button to add a schema to the whitelist. | ||
%p | ||
This schemas list is retrieved from | ||
- case @data_source.adapter | ||
- when 'postgresql' | ||
%code pg_catalog.pg_namespace | ||
- when 'mysql2' | ||
%code database_name | ||
- when 'redshift' | ||
%code pg_catalog.pg_namespace | ||
- else | ||
%code (catalog table) | ||
, so it has no effect on search_path or Ignored Tables on the setting page. | ||
|
||
%table.table.table-hover.table-bordered.table-striped{ role: "grid" } | ||
%tr | ||
%th schema name | ||
%th schema owner | ||
%th{ width: "90px"} subscribe status | ||
%th{ width: "90px"} data source status | ||
%th{ width: "170px"} | ||
- @all_schemas.each do |schema_name, schema_owner| | ||
%tr | ||
%td | ||
= schema_name | ||
%td | ||
= schema_owner | ||
%td | ||
- if subscribe?(schema_name) | ||
%span.label.label-success Subscribe | ||
- else | ||
%span.label.label-danger Unsubscribe | ||
%td | ||
- if exist?(schema_name) | ||
%span.label.label-success Exist | ||
- else | ||
%span.label.label-danger Disappeared | ||
%td | ||
= link_to import_schema_path(@data_source.id, schema_name), method: :patch, | ||
class: "btn btn-primary pull-left #{disable_import_button(schema_name)}", | ||
data: { confirm: "Import information of #{schema_name} schema? (Subscribe)" } do | ||
Import | ||
= link_to unlink_schema_path(@data_source.id, schema_name), method: :patch, | ||
class: "btn btn-primary pull-right #{disable_unlink_button(schema_name)}", | ||
data: { confirm: "Unlink #{schema_name} schema? \n(Not Delete, only unlink & stop subscribe)" } do | ||
Unlink | ||
.table-responsive | ||
%table.table.table-hover.table-bordered.table-striped{ role: "grid" } | ||
%thead | ||
%tr | ||
%th schema name | ||
%th schema owner | ||
%th.col-sm-1 subscribe status | ||
%th.col-sm-1 data source status | ||
%th.col-sm-2 | ||
%tbody | ||
- @all_schemas.each do |schema_name, schema_owner| | ||
%tr | ||
%td | ||
= schema_name | ||
%td | ||
= schema_owner | ||
%td | ||
- if subscribe?(schema_name) | ||
%span.badge.badge-success Subscribe | ||
- else | ||
%span.badge.badge-danger Unsubscribe | ||
%td | ||
- if exist?(schema_name) | ||
%span.badge.badge-success Exist | ||
- else | ||
%span.badge.badge-danger Disappeared | ||
%td | ||
= link_to import_schema_path(@data_source.id, schema_name), method: :patch, | ||
class: "btn btn-primary float-left #{disable_import_button(schema_name)}", | ||
data: { confirm: "Import information of #{schema_name} schema? (Subscribe)" } do | ||
Import | ||
= link_to unlink_schema_path(@data_source.id, schema_name), method: :patch, | ||
class: "btn btn-primary float-right #{disable_unlink_button(schema_name)}", | ||
data: { confirm: "Unlink #{schema_name} schema? \n(Not Delete, only unlink & stop subscribe)" } do | ||
Unlink |
Oops, something went wrong.