From 7ad09abcbe802748f408691478243272017981b8 Mon Sep 17 00:00:00 2001 From: Syphax Date: Thu, 12 Dec 2024 03:22:19 +0100 Subject: [PATCH 1/2] remove username input from user edit form --- app/views/users/edit.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index d00e8c61b4..570f6e4f44 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -88,10 +88,11 @@ = t('users.edit.last_name') %font{:color => "red"} * = text_field :user, :lastName, value: @user.lastName, class: "register-input-short" - %p.register-input-title - = t('users.edit.username') - %font{:color => "red"} * - = text_field :user, :username, value: @user.username, class: "register-input-long" + %div.hidden + %p.register-input-title + = t('users.edit.username') + %font{:color => "red"} * + = text_field :user, :username, value: @user.username, class: "register-input-long" %p.register-input-title = t('users.edit.email') %font{:color => "red"} * @@ -129,4 +130,4 @@ - unless params[:password].eql?("true") .change-password %a{:href => edit_user_path(@user.username, password: true)} - = t('users.edit.change_password') \ No newline at end of file + = t('users.edit.change_password') From afd56c0e38e2b779702f51d2c7eaf1674cf2aafe Mon Sep 17 00:00:00 2001 From: Syphax Date: Tue, 10 Dec 2024 00:04:17 +0100 Subject: [PATCH 2/2] fix visits page error after changing analytics last month method --- app/views/visits/index.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/visits/index.html.haml b/app/views/visits/index.html.haml index 98c9847fb8..1cfc2e5a74 100644 --- a/app/views/visits/index.html.haml +++ b/app/views/visits/index.html.haml @@ -1,7 +1,7 @@ %div.px-3.py-3.pt-md-5.pb-md-4.text-center - %h1.display-4 + %h1.display-4 = t('visits.ontology_visits') - %p.lead (#{@analytics.date.strftime("%B %Y")}) + %p.lead (#{DateTime.now.prev_month.strftime("%B %Y")}) %div.container.pb-3.pb-md-4 %div.table-responsive