diff --git a/Changelog.md b/Changelog.md index 262715223..60a3e770c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -106,6 +106,7 @@ This is disabled by default since it requires the installation of additional pac * Correctly validate if local recipients actually want to receive a conversation [#5449](https://github.com/diaspora/diaspora/pull/5449) * Improve consistency of poll answer ordering [#5471](https://github.com/diaspora/diaspora/pull/5471) * Fix broken aspect selectbox on asynchronous search results [#5488](https://github.com/diaspora/diaspora/pull/5488) +* Replace %{third_party_tools} by the appropriate hyperlink in tags FAQ [#5509](https://github.com/diaspora/diaspora/pull/5509) ## Features * Don't pull jQuery from a CDN by default [#5105](https://github.com/diaspora/diaspora/pull/5105) diff --git a/app/assets/javascripts/app/views/help_view.js b/app/assets/javascripts/app/views/help_view.js index ccb2e8070..fa93966a0 100644 --- a/app/assets/javascripts/app/views/help_view.js +++ b/app/assets/javascripts/app/views/help_view.js @@ -8,6 +8,7 @@ app.views.Help = app.views.StaticContentView.extend({ "click .faq-link-getting-help" : "gettingHelp", "click .faq-link-sharing" : "sharing", "click .faq-link-posts-and-posting" : "postsAndPosting", + "click .faq-link-tags": "tags", "click .faq-link-keyboard-shortcuts" : "keyboardShortcuts", }, @@ -28,6 +29,12 @@ app.views.Help = app.views.StaticContentView.extend({ } }; + this.TAGS_SUBS = { + filter_tags_a: { + third_party_tools: this.linkHtml("https://wiki.diasporafoundation.org/Tools_to_use_with_Diaspora", Diaspora.I18n.t( 'third_party_tools' )), + } + }; + this.data = { title_header: Diaspora.I18n.t( 'title_header' ), title_getting_help: Diaspora.I18n.t( 'getting_help.title' ), @@ -147,6 +154,13 @@ app.views.Help = app.views.StaticContentView.extend({ e.preventDefault(); }, + tags: function(e) { + this.renderStaticSection("tags", "faq_tags", this.TAGS_SUBS); + this.menuClicked(e); + + e.preventDefault(); + }, + keyboardShortcuts: function(e) { this.renderStaticSection("keyboard_shortcuts", "faq_keyboard_shortcuts", {}); this.menuClicked(e); diff --git a/app/assets/templates/faq_tags_tpl.jst.hbs b/app/assets/templates/faq_tags_tpl.jst.hbs new file mode 100644 index 000000000..f093dcea4 --- /dev/null +++ b/app/assets/templates/faq_tags_tpl.jst.hbs @@ -0,0 +1,30 @@ +
+ + + +