From fdc717a18528bffaa7b597fb417cc70df0cb266b Mon Sep 17 00:00:00 2001 From: imajit Date: Tue, 1 Jun 2021 01:28:18 +0530 Subject: [PATCH 1/3] Adding some more corrected tags --- app/views/like/index.html.erb | 2 +- app/views/users/list.html.erb | 2 +- app/views/users/profile.html.erb | 4 ++-- app/views/wiki/revisions.html.erb | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/like/index.html.erb b/app/views/like/index.html.erb index 1bf86771e5..e31f325b84 100644 --- a/app/views/like/index.html.erb +++ b/app/views/like/index.html.erb @@ -33,7 +33,7 @@ - <% else %> <% if like.user.status == 1 %> - <%= translation('users.profile.ban_user') %> + <%= translation('users.profile.ban_user') %> <% else %> <%= translation('users.profile.unban_user') %> <% end %> diff --git a/app/views/users/list.html.erb b/app/views/users/list.html.erb index 08d838fc48..047a6a5482 100644 --- a/app/views/users/list.html.erb +++ b/app/views/users/list.html.erb @@ -54,7 +54,7 @@ <%= translation('users.list.banned') %> <% elsif user.status == 1 && user != current_user %>
  • See Full Profile
  • -
  • <%= translation('users.list.ban') %>
  • +
  • <%= translation('users.list.ban') %>
  • <% end %> <% end %> diff --git a/app/views/users/profile.html.erb b/app/views/users/profile.html.erb index 3d13085d83..a05b9509cd 100644 --- a/app/views/users/profile.html.erb +++ b/app/views/users/profile.html.erb @@ -141,13 +141,13 @@ <% if logged_in_as(['admin', 'moderator']) && @profile_user.status == 0 %> <%= translation('users.profile.unban_user') %> <% elsif logged_in_as(['admin', 'moderator']) && @profile_user.status == 1 && @profile_user != current_user %> - <%= translation('users.profile.ban_user') %> + <%= translation('users.profile.ban_user') %> <% end %> <% if logged_in_as(['admin', 'moderator']) && @profile_user.status == 5 %> <%= translation('users.profile.unmoderate_user') %> <% elsif logged_in_as(['admin', 'moderator']) && @profile_user.status == 1 %> - <%= translation('users.profile.moderate_user') %> + <%= translation('users.profile.moderate_user') %> <% end %> <% if @profile_user && !@profile_user.reset_key.nil? && logged_in_as(['admin']) %> diff --git a/app/views/wiki/revisions.html.erb b/app/views/wiki/revisions.html.erb index e727011a9f..0af0dec9f8 100644 --- a/app/views/wiki/revisions.html.erb +++ b/app/views/wiki/revisions.html.erb @@ -28,10 +28,10 @@ | <%= distance_of_time_in_words(revision.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %> - <%= translation('wiki.revisions.revert') %> + <%= translation('wiki.revisions.revert') %> <% if logged_in_as(['admin', 'moderator']) %> <% if revision.status == 1 %> - + <% elsif revision.status == 0 %> <%= translation('wiki.revisions.republish') %> <% end %> From 438c7b763487dcbb4a23fc8872842491020ffe91 Mon Sep 17 00:00:00 2001 From: imajit Date: Sun, 30 May 2021 18:06:59 +0530 Subject: [PATCH 2/3] Changed translation function --- app/views/dashboard/_wiki.html.erb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/views/dashboard/_wiki.html.erb b/app/views/dashboard/_wiki.html.erb index 9b106938b2..4e913bd5df 100644 --- a/app/views/dashboard/_wiki.html.erb +++ b/app/views/dashboard/_wiki.html.erb @@ -5,7 +5,6 @@