Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.md1
-rw-r--r--app/views/admins/pods.mobile.haml4
-rw-r--r--app/views/help/faq.mobile.haml6
-rw-r--r--config/locales/diaspora/en.yml4
-rw-r--r--spec/controllers/help_controller_spec.rb7
5 files changed, 15 insertions, 7 deletions
diff --git a/Changelog.md b/Changelog.md
index 894ea1231..f6585b78e 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -68,6 +68,7 @@ We use yarn to install the frontend dependencies now, so you need to have that i
* Show total and active pods count in the pods list for podmins [#8383](https://github.com/diaspora/diaspora/pull/8383)
* Allow to select multiple aspects when posting on mobile [#8217](https://github.com/diaspora/diaspora/pull/8217)
* Add info links to drawer in mobile UI [#8405](https://github.com/diaspora/diaspora/pull/8405)
+* Tell users that there is no help in mobile version, allow to switch to desktop [#8407](https://github.com/diaspora/diaspora/pull/8407)
# 0.7.18.1
diff --git a/app/views/admins/pods.mobile.haml b/app/views/admins/pods.mobile.haml
index 97a3ceeb7..23a7ea8e4 100644
--- a/app/views/admins/pods.mobile.haml
+++ b/app/views/admins/pods.mobile.haml
@@ -2,4 +2,6 @@
= t(".pod_network")
.alert.alert-warning
- != t(".pod_desktop_view", desktop_link: link_to(t(".pod_desktop_link"), toggle_mobile_path))
+ != t("error_messages.mobile_not_available",
+ desktop_link: link_to(t("error_messages.desktop_view_link"),
+ toggle_mobile_path))
diff --git a/app/views/help/faq.mobile.haml b/app/views/help/faq.mobile.haml
new file mode 100644
index 000000000..6efaff27a
--- /dev/null
+++ b/app/views/help/faq.mobile.haml
@@ -0,0 +1,6 @@
+%h1= t("_help")
+
+.alert.alert-warning
+ != t("error_messages.mobile_not_available",
+ desktop_link: link_to(t("error_messages.desktop_view_link"),
+ toggle_mobile_path))
diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml
index f79db200e..e47713b4f 100644
--- a/config/locales/diaspora/en.yml
+++ b/config/locales/diaspora/en.yml
@@ -89,6 +89,8 @@ en:
correct_the_following_errors_and_try_again: "Correct the following errors and try again."
need_javascript: "This website requires JavaScript to function properly. If you disabled JavaScript, please enable it and refresh this page."
csrf_token_fail: "The CSRF token is invalid. Please sign in and try again."
+ mobile_not_available: "This page is not available on mobile view, please switch to %{desktop_link}."
+ desktop_view_link: "desktop view"
admins:
admin_bar:
@@ -192,8 +194,6 @@ en:
tag_name: "Tag name: %{name_tag} Count: %{count_tag}"
pods:
pod_network: "Pod network"
- pod_desktop_view: "This page is not available on mobile view, please switch to %{desktop_link}."
- pod_desktop_link: "desktop view"
aspects:
edit:
confirm_remove_aspect: "Are you sure you want to delete this aspect?"
diff --git a/spec/controllers/help_controller_spec.rb b/spec/controllers/help_controller_spec.rb
index a4d1c03c4..959049ad0 100644
--- a/spec/controllers/help_controller_spec.rb
+++ b/spec/controllers/help_controller_spec.rb
@@ -7,10 +7,9 @@ describe HelpController, type: :controller do
expect(response).to be_successful
end
- it "fails on mobile" do
- expect {
- get :faq, format: :mobile
- }.to raise_error ActionController::UnknownFormat
+ it "succeeds on mobile" do
+ get :faq, format: :mobile
+ expect(response).to be_successful
end
end
end