diff --git a/themes/standard_pages/js/profile.js b/themes/standard_pages/js/profile.js index 4cdceb597..647efe108 100644 --- a/themes/standard_pages/js/profile.js +++ b/themes/standard_pages/js/profile.js @@ -1,10 +1,11 @@ let PWG_TOKEN; $(function() { PWG_TOKEN = $('#pwg_token').val(); - $('.profile-section .display-btn').on('click', function () { + $('.profile-section .display-section').on('click', function() { const display = $(this).data('display'); const selector = $(`#${display}`); const element = selector.get(0); + const arrow = $(this).find('.display-btn'); if (selector.hasClass('open')) { // close @@ -12,17 +13,17 @@ $(function() { void element.offsetHeight; element.style.maxHeight = '1px'; selector.removeClass('open'); - $(this).addClass('close'); + arrow.addClass('close'); } else { // open selector.addClass('open'); resetSection(display); - $(this).removeClass('close'); + arrow.removeClass('close'); } }); setTimeout(() => { - $('#account-section .display-btn').trigger('click'); + $('#account-section .display-section').trigger('click'); }, 100); $('#save_account').on('click', function() { @@ -283,6 +284,7 @@ function AddApiLine(lines, reset) { api_list.append(api_line); api_line.after(api_collapse); } else { + $('#show_expired_list').show(); api_list_expired.append(api_line); api_line.after(api_collapse); api_line.find('.api-icon-action').remove(); diff --git a/themes/standard_pages/template/profile.tpl b/themes/standard_pages/template/profile.tpl index f58d33c60..ed1c8a046 100644 --- a/themes/standard_pages/template/profile.tpl +++ b/themes/standard_pages/template/profile.tpl @@ -72,12 +72,12 @@ const str_must_not_empty = "{'must not be empty'|translate|escape:javascript}"; {* ACCOUNT *}
-
+

{'Account'|translate}

{'Manage your account'|translate}

- +
@@ -106,12 +106,12 @@ const str_must_not_empty = "{'must not be empty'|translate|escape:javascript}"; {* PREFERENCES *} {if $ALLOW_USER_CUSTOMIZATION}
-
+

{'Preferences'|translate}

{'Choose how you want to see your gallery'|translate}

- +
@@ -199,12 +199,12 @@ const str_must_not_empty = "{'must not be empty'|translate|escape:javascript}"; {* PASSWORD *} {if not $SPECIAL_USER}
-
+

{'Password'|translate}

{'Change your password'|translate}

- +
@@ -246,12 +246,12 @@ const str_must_not_empty = "{'must not be empty'|translate|escape:javascript}"; {* API KEY *}
-
+

{'API Keys'|translate}

{'Create API Keys to secure your acount'|translate}

- +
@@ -446,12 +446,12 @@ const str_must_not_empty = "{'must not be empty'|translate|escape:javascript}"; {if isset($PLUGINS_PROFILE)} {foreach from=$PLUGINS_PROFILE item=plugin_block key=k_block}
-
+

{$plugin_block.name}

{$plugin_block.desc}

- +
{include file=$plugin_block.template} diff --git a/themes/standard_pages/theme.css b/themes/standard_pages/theme.css index 6f972bc12..82d4d3a1f 100644 --- a/themes/standard_pages/theme.css +++ b/themes/standard_pages/theme.css @@ -646,6 +646,10 @@ p.error-message, overflow: hidden; } +.profile-section #show_expired_list { + display: none; +} + .profile-section #api_key_list_expired .api_expiration { text-overflow: unset; max-width: unset; @@ -708,6 +712,10 @@ p.error-message, font-family: monospace !important; } +.profile-section .display-section { + cursor: pointer; +} + /* Modal */ .bg-modal {