diff --git a/templates/identity/account/resource.html.ejs b/templates/identity/account/resource.html.ejs
index b3739d4b3..fbe904d53 100644
--- a/templates/identity/account/resource.html.ejs
+++ b/templates/identity/account/resource.html.ejs
@@ -93,16 +93,23 @@
})();
// Adds account info to the UI
- function showAccountInfo(rootElement, data, addLink, addDel, confirmMsg, finishMsg) {
+ function showAccountInfo(rootElement, data, addUpdate, addDel, confirmMsg, finishMsg) {
for (const [ key, url ] of Object.entries(data)) {
const li = document.createElement('li');
- if (addLink) {
- li.insertAdjacentHTML('beforeend', `${key}`);
+
+ // I didn't want to add another parameter to the function to indicate if the key should be a link
+ if (/^https?:\/\//.test(key)) {
+ li.insertAdjacentHTML('beforeend', `${key}`);
} else {
li.append(key);
}
+ if (addUpdate) {
+ li.insertAdjacentHTML('beforeend', ` (update)`);
+ }
+
+
if (addDel) {
const del = createUrlDeleteElement(li, url, { method: 'DELETE' }, confirmMsg, finishMsg);
li.append(' ');