diff --git a/user/static/user/css/data_transfer.css b/user/static/user/css/data_transfer.css new file mode 100644 index 00000000..4eb0d0ba --- /dev/null +++ b/user/static/user/css/data_transfer.css @@ -0,0 +1,20 @@ +.code-container { + position: relative; +} + +.code-container.light-theme { + position: relative; + background-color: #f3f3f3; +} + +.code-container.dark-theme { + position: relative; + background-color: #303030; +} +.buttons { + top: 5px; + right: 5px; +} +.buttons button { + margin-left: 5px; +} \ No newline at end of file diff --git a/user/static/user/js/data_transfer.js b/user/static/user/js/data_transfer.js index 03b90a00..00f6a7fc 100644 --- a/user/static/user/js/data_transfer.js +++ b/user/static/user/js/data_transfer.js @@ -1,4 +1,6 @@ $(document).ready(function () { + hljs.highlightAll(); + $('.btn-copy-to-clipboard').on('click', function(event) { if (this.id == 'button1') var codeBlockId = "code-block1" diff --git a/user/templates/user/data_transfer.html b/user/templates/user/data_transfer.html index dd990887..e97aa411 100644 --- a/user/templates/user/data_transfer.html +++ b/user/templates/user/data_transfer.html @@ -4,8 +4,14 @@ {% block scripts %} + {% endblock %} +{% block style %} + + +{% endblock style %} + {% block content %}
Copy and paste the following configuraton into your ~/.irods/irods_environment.json configuration file.
--
{
"irods_host": "{{ config.get('IRODS_ICAT_HOSTNAME') }}",
"irods_port": 1247,
"irods_home": "/{{ config.get('IRODS_DEFAULT_ZONE') }}/home",
"irods_user_name": "{{ g.user }}",
"irods_zone_name": "{{ config.get('IRODS_DEFAULT_ZONE') }}",
"irods_authentication_scheme": "pam",
"irods_encryption_algorithm": "AES-256-CBC",
"irods_encryption_key_size": 32,
"irods_encryption_num_hash_rounds": 16,
"irods_encryption_salt_size": 8,
"irods_client_server_negotiation": "request_server_negotiation",
"irods_client_server_policy": "CS_NEG_REQUIRE"
}
+ {
"irods_host": "{{ config.get('IRODS_ICAT_HOSTNAME') }}",
"irods_port": 1247,
"irods_home": "/{{ config.get('IRODS_DEFAULT_ZONE') }}/home",
"irods_user_name": "{{ g.user }}",
"irods_zone_name": "{{ config.get('IRODS_DEFAULT_ZONE') }}",
"irods_authentication_scheme": "pam",
"irods_encryption_algorithm": "AES-256-CBC",
"irods_encryption_key_size": 32,
"irods_encryption_num_hash_rounds": 16,
"irods_encryption_salt_size": 8,
"irods_client_server_negotiation": "request_server_negotiation",
"irods_client_server_policy": "CS_NEG_REQUIRE"
}
+ Gocommands can read configuration from a YAML file.
Copy and paste the following configuration into your config.yml file.
-irods_host: "{{ config.get('IRODS_ICAT_HOSTNAME') }}"
irods_port: 1247
irods_user_name: "{{ g.user }}"
irods_zone_name: "iplant"
irods_user_password: "your password"
+ irods_host: "{{ config.get('IRODS_ICAT_HOSTNAME') }}"
irods_port: 1247
irods_user_name: "{{ g.user }}"
irods_zone_name: "iplant"
irods_user_password: "your password"
+