-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the missing link for Technical Assistance in footer #4731
Conversation
@javierm This is my very first PR and I am still learning about programming and github 😄 |
@chkoun No problem 👌. Thank you very much for your contribution 😄. We'll have a look at this pull requests and check whether we can write tests for it. Right now we're preparing version 1.4.0 and are in the middle of the testing phase, so it might take a while. Thank you for your patience! |
@chkoun Since we're still deciding how to handle the Help/FAQ/Docs links, and since with the current format handling translations in certain languages would be quite hard, how about removing the broken text while we make a decision? Here's a suggested patch: diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb
index f1ad2f47e..8b63dbab5 100644
--- a/app/views/layouts/_footer.html.erb
+++ b/app/views/layouts/_footer.html.erb
@@ -9,10 +9,6 @@
<%= sanitize(t("layouts.footer.description",
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"),
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow"))) %>
- <% if feature?(:help_page) %>
- <%= t("layouts.footer.contact_us") %>
- <%= link_to t("layouts.header.help"), help_path %>
- <% end %>
</p>
</div>
diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml
index 3857076a8..f36edf408 100644
--- a/config/locales/en/general.yml
+++ b/config/locales/en/general.yml
@@ -213,7 +213,6 @@ en:
conditions: Terms and conditions of use
consul: CONSUL application
consul_url: https://github.com/consul/consul
- contact_us: For technical assistance visit
copyright: CONSUL, %{year}
description: This portal uses the %{consul} which is %{open_source}.
open_source: open-source software
diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml
index 16cd81b01..34f132ada 100644
--- a/config/locales/es/general.yml
+++ b/config/locales/es/general.yml
@@ -213,7 +213,6 @@ es:
conditions: Condiciones de uso
consul: aplicación CONSUL
consul_url: https://github.com/consul/consul
- contact_us: Para asistencia técnica entra en
copyright: CONSUL, %{year}
description: Este portal usa la %{consul} que es %{open_source}.
open_source: software de código abierto |
This reverts commit 47d79da.
References
#722
Objectives
Right now there is a 'Technical Assistance' link in the footer, but without links
We can fix the missing link in the footer by linking to the Help Page when the Help Page feature is enable
Visual Changes
Currently
![Screenshot from 2021-11-06 13-15-13](https://user-images.githubusercontent.com/92028375/140609218-13f92888-a449-46cb-801b-f9f93d59867f.png)
After changes if Help feature is enabled
![Screenshot from 2021-11-06 13-14-43](https://user-images.githubusercontent.com/92028375/140609253-05942483-97cd-4a30-9696-ea80996b11a2.png)
After changes if Help feature is disabled
![Screenshot from 2021-11-06 13-17-20](https://user-images.githubusercontent.com/92028375/140609297-a5ca4ddb-8a1a-4008-a25d-4f38b81480fb.png)
Notes
We string layouts.footer.contact_us will not be displayed when the help page is not enable but currently it does not make sense to display it without link