From fc7cf0400ca50d8d6f560ff0b11c5b8b713ed383 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 10 Mar 2019 17:16:39 +0100 Subject: [PATCH] Improved a11y of notices See #2713 --- com.woltlab.wcf/templates/accountManagement.tpl | 4 ++-- com.woltlab.wcf/templates/articleAdd.tpl | 4 ++-- com.woltlab.wcf/templates/articleList.tpl | 2 +- com.woltlab.wcf/templates/avatarEdit.tpl | 4 ++-- com.woltlab.wcf/templates/categoryArticleList.tpl | 2 +- com.woltlab.wcf/templates/categoryTrophyList.tpl | 2 +- com.woltlab.wcf/templates/combinedTagged.tpl | 2 +- com.woltlab.wcf/templates/deletedContentList.tpl | 2 +- com.woltlab.wcf/templates/following.tpl | 2 +- com.woltlab.wcf/templates/footer.tpl | 2 +- com.woltlab.wcf/templates/formError.tpl | 4 ++-- com.woltlab.wcf/templates/ignoredUsers.tpl | 2 +- com.woltlab.wcf/templates/login.tpl | 4 ++-- com.woltlab.wcf/templates/lostPassword.tpl | 2 +- com.woltlab.wcf/templates/membersList.tpl | 2 +- com.woltlab.wcf/templates/moderationList.tpl | 2 +- com.woltlab.wcf/templates/moderationReportDialog.tpl | 2 +- com.woltlab.wcf/templates/newPassword.tpl | 2 +- com.woltlab.wcf/templates/notificationList.tpl | 2 +- com.woltlab.wcf/templates/notificationSettings.tpl | 2 +- com.woltlab.wcf/templates/offline.tpl | 2 +- com.woltlab.wcf/templates/paidSubscriptionList.tpl | 2 +- com.woltlab.wcf/templates/recentActivityList.tpl | 2 +- com.woltlab.wcf/templates/register.tpl | 2 +- com.woltlab.wcf/templates/registerActivation.tpl | 2 +- com.woltlab.wcf/templates/search.tpl | 2 +- com.woltlab.wcf/templates/settings.tpl | 2 +- com.woltlab.wcf/templates/signatureEdit.tpl | 4 ++-- com.woltlab.wcf/templates/tagSearch.tpl | 2 +- com.woltlab.wcf/templates/tagged.tpl | 2 +- com.woltlab.wcf/templates/trophy.tpl | 2 +- com.woltlab.wcf/templates/trophyList.tpl | 2 +- com.woltlab.wcf/templates/unreadArticleList.tpl | 2 +- com.woltlab.wcf/templates/user.tpl | 4 ++-- com.woltlab.wcf/templates/userBirthdayList.tpl | 2 +- com.woltlab.wcf/templates/userNotice.tpl | 10 +++++----- com.woltlab.wcf/templates/userProfileAbout.tpl | 2 +- com.woltlab.wcf/templates/userSearch.tpl | 2 +- com.woltlab.wcf/templates/watchedArticleList.tpl | 2 +- 39 files changed, 50 insertions(+), 50 deletions(-) diff --git a/com.woltlab.wcf/templates/accountManagement.tpl b/com.woltlab.wcf/templates/accountManagement.tpl index 8262f074dd..90a94e1b23 100644 --- a/com.woltlab.wcf/templates/accountManagement.tpl +++ b/com.woltlab.wcf/templates/accountManagement.tpl @@ -4,10 +4,10 @@ {include file='formError'} -

{lang}wcf.user.accountManagement.warning{/lang}

+

{lang}wcf.user.accountManagement.warning{/lang}

{if $success|isset && $success|count > 0} -
+
{foreach from=$success item=successMessage}

{lang}{@$successMessage}{/lang}

{/foreach} diff --git a/com.woltlab.wcf/templates/articleAdd.tpl b/com.woltlab.wcf/templates/articleAdd.tpl index f149a9eeeb..355012dcdc 100644 --- a/com.woltlab.wcf/templates/articleAdd.tpl +++ b/com.woltlab.wcf/templates/articleAdd.tpl @@ -86,13 +86,13 @@ {include file='formError'} {if $success|isset} -

{lang}wcf.global.success.{$action}{/lang}

+

{lang}wcf.global.success.{$action}{/lang}

{/if} {if $action == 'edit'}

isDeleted} style="display: none;"{/if}>{lang}wcf.acp.article.trash.notice{/lang}

- {if $lastVersion}

{lang}wcf.acp.article.lastVersion{/lang}

{/if} + {if $lastVersion}

{lang}wcf.acp.article.lastVersion{/lang}

{/if} {/if}
diff --git a/com.woltlab.wcf/templates/articleList.tpl b/com.woltlab.wcf/templates/articleList.tpl index 504ab36e5d..e56b92e61e 100644 --- a/com.woltlab.wcf/templates/articleList.tpl +++ b/com.woltlab.wcf/templates/articleList.tpl @@ -110,7 +110,7 @@ {include file='articleListItems'}
{else} -

{lang}wcf.global.noItems{/lang}

+

{lang}wcf.global.noItems{/lang}

{/if}
diff --git a/com.woltlab.wcf/templates/avatarEdit.tpl b/com.woltlab.wcf/templates/avatarEdit.tpl index 03193c37ad..0ebe55c328 100644 --- a/com.woltlab.wcf/templates/avatarEdit.tpl +++ b/com.woltlab.wcf/templates/avatarEdit.tpl @@ -3,13 +3,13 @@ {include file='header' __disableAds=true __sidebarLeftHasMenu=true} {if $__wcf->user->disableAvatar} -

{lang}wcf.user.avatar.error.disabled{/lang}

+ {/if} {include file='formError'} {if $success|isset} -

{lang}wcf.global.success.edit{/lang}

+

{lang}wcf.global.success.edit{/lang}

{/if} diff --git a/com.woltlab.wcf/templates/categoryArticleList.tpl b/com.woltlab.wcf/templates/categoryArticleList.tpl index b4ff17be1f..a6d7cac427 100644 --- a/com.woltlab.wcf/templates/categoryArticleList.tpl +++ b/com.woltlab.wcf/templates/categoryArticleList.tpl @@ -108,7 +108,7 @@ {include file='articleListItems'}
{else} -

{lang}wcf.global.noItems{/lang}

+

{lang}wcf.global.noItems{/lang}

{/if}