diff --git a/Changelog.md b/Changelog.md index f41d0b3a0..36b1df1ec 100644 --- a/Changelog.md +++ b/Changelog.md @@ -15,15 +15,21 @@ * Remove tiff support from photos [#7576](https://github.com/diaspora/diaspora/pull/7576) * Remove reference from reshares when original post is deleted [#7578](https://github.com/diaspora/diaspora/pull/7578) * Merge migrations from before 0.6.0.0 to CreateSchema [#7580](https://github.com/diaspora/diaspora/pull/7580) +* Remove auto detection of languages with highlightjs [#7591](https://github.com/diaspora/diaspora/pull/7591) +* Move enable/disable notification icon [#7592](https://github.com/diaspora/diaspora/pull/7592) +* Use Bootstrap 3 progress-bar for polls [#7600](https://github.com/diaspora/diaspora/pull/7600) ## Bug fixes * Fix displaying polls with long answers [#7579](https://github.com/diaspora/diaspora/pull/7579) * Fix S3 support [#7566](https://github.com/diaspora/diaspora/pull/7566) * Fix mixed username and timestamp with LTR/RTL scripts [#7575](https://github.com/diaspora/diaspora/pull/7575) +* Prevent users from zooming in IE Mobile [#7589](https://github.com/diaspora/diaspora/pull/7589) +* Fix recipient prefill on contacts and profile page [#7599](https://github.com/diaspora/diaspora/pull/7599) ## Features * Ask for confirmation when leaving a submittable comment field [#7530](https://github.com/diaspora/diaspora/pull/7530) * Show users vote in polls [#7550](https://github.com/diaspora/diaspora/pull/7550) +* Add explanation of ignore function to in-app help section [#7585](https://github.com/diaspora/diaspora/pull/7585) # 0.7.0.0 diff --git a/app/assets/javascripts/app/helpers/text_formatter.js b/app/assets/javascripts/app/helpers/text_formatter.js index b8f46f7ef..3fc051404 100644 --- a/app/assets/javascripts/app/helpers/text_formatter.js +++ b/app/assets/javascripts/app/helpers/text_formatter.js @@ -8,8 +8,7 @@ breaks: true, html: true, linkify: true, - typographer: true, - langPrefix: "" + typographer: true }); var inlinePlugin = window.markdownitForInline; @@ -72,10 +71,6 @@ } catch (__) {} } - try { - return hljs.highlightAuto(str).value; - } catch (__) {} - return ""; } }); diff --git a/app/assets/javascripts/app/pages/contacts.js b/app/assets/javascripts/app/pages/contacts.js index f9bd2db27..a7d21a0b0 100644 --- a/app/assets/javascripts/app/pages/contacts.js +++ b/app/assets/javascripts/app/pages/contacts.js @@ -80,7 +80,10 @@ app.pages.Contacts = Backbone.View.extend({ showMessageModal: function(){ $("#conversationModal").on("modal:loaded", function() { - new app.views.ConversationsForm({prefill: gon.conversationPrefill}); + var people = _.pluck(app.contacts.filter(function(contact) { + return contact.inAspect(app.aspect.get("id")); + }), "person"); + new app.views.ConversationsForm({prefill: people}); }); app.helpers.showModal("#conversationModal"); }, diff --git a/app/assets/javascripts/app/views/conversations_form_view.js b/app/assets/javascripts/app/views/conversations_form_view.js index a28b6d426..a360f0917 100644 --- a/app/assets/javascripts/app/views/conversations_form_view.js +++ b/app/assets/javascripts/app/views/conversations_form_view.js @@ -52,8 +52,13 @@ app.views.ConversationsForm = app.views.Base.extend({ this.setupAvatarFallback(personEl); }, - prefill: function(handles) { - handles.forEach(this.addRecipient.bind(this)); + prefill: function(people) { + people.forEach(function(person) { + this.addRecipient(_.extend({ + avatar: person.get("profile").avatar.small, + handle: person.get("diaspora_id") + }, person.attributes)); + }, this); }, updateContactIdsListInput: function() { diff --git a/app/assets/javascripts/app/views/poll_view.js b/app/assets/javascripts/app/views/poll_view.js index 275fb02d6..55710bfba 100644 --- a/app/assets/javascripts/app/views/poll_view.js +++ b/app/assets/javascripts/app/views/poll_view.js @@ -5,7 +5,7 @@ app.views.Poll = app.views.Base.extend({ events: { "click .submit" : "clickSubmit", - "click .toggle_result" : "toggleResult" + "click .toggle-result": "toggleResult" }, initialize: function() { @@ -55,7 +55,7 @@ app.views.Poll = app.views.Base.extend({ percent = Math.round(answer.vote_count / participation_count * 100); } - var progressBar = _this.$(".poll_progress_bar[data-answerid="+answer.id+"]"); + var progressBar = _this.$(".progress-bar[data-answerid=" + answer.id + "]"); _this.setProgressBarData(progressBar, percent); }); @@ -68,8 +68,8 @@ app.views.Poll = app.views.Base.extend({ pollButtons: function() { if(!this.poll || !this.poll.post_id) { - this.$('.submit').attr('disabled', true); - this.$('.toggle_result').attr('disabled', true); + this.$(".submit").attr("disabled", true); + this.$(".toggle-result").attr("disabled", true); } }, @@ -83,14 +83,14 @@ app.views.Poll = app.views.Base.extend({ } this.toggleElements(); - var toggle_result = this.$('.toggle_result'); + var toggleResult = this.$(".toggle-result"); if(!this.toggleMode) { - toggle_result.html(Diaspora.I18n.t("poll.close_result")); + toggleResult.html(Diaspora.I18n.t("poll.close_result")); this.toggleMode = 1; } else { - toggle_result.html(Diaspora.I18n.t("poll.show_result")); + toggleResult.html(Diaspora.I18n.t("poll.show_result")); this.toggleMode = 0; } }, diff --git a/app/assets/javascripts/app/views/profile_header_view.js b/app/assets/javascripts/app/views/profile_header_view.js index 1fb6e0e1d..14247369a 100644 --- a/app/assets/javascripts/app/views/profile_header_view.js +++ b/app/assets/javascripts/app/views/profile_header_view.js @@ -81,8 +81,8 @@ app.views.ProfileHeader = app.views.Base.extend({ showMessageModal: function(){ $("#conversationModal").on("modal:loaded", function() { - new app.views.ConversationsForm({prefill: gon.conversationPrefill}); - }); + new app.views.ConversationsForm({prefill: [this.model]}); + }.bind(this)); app.helpers.showModal("#conversationModal"); } }); diff --git a/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss b/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss index a09028a3e..90f859910 100644 --- a/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss +++ b/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss @@ -19,9 +19,9 @@ body { .info .tag { background-color: $gray-light; } - .poll_form .progress { + .poll-form .progress { background-color: $gray-dark; - .bar { background-color: $gray-light; } + .progress-bar { background-color: $gray-light; } .users-vote { background-color: $brand-primary; } } diff --git a/app/assets/stylesheets/poll.scss b/app/assets/stylesheets/poll.scss index 5bd220a98..146d4f2fa 100644 --- a/app/assets/stylesheets/poll.scss +++ b/app/assets/stylesheets/poll.scss @@ -1,4 +1,4 @@ -.poll_form { +.poll-form { border-bottom: 1px solid $border-grey; border-top: 1px solid $border-grey; margin: 10px 0; @@ -14,38 +14,27 @@ } .progress { - background-image: none; - box-shadow: 0 0 0; height: 10px; margin-bottom: 5px; clear: both; - .bar { - background: $border-dark-grey none; - color: $text-dark-grey; - height: 100%; - text-align: left; - } - - .users-vote { - background-color: $brand-primary; - } + .progress-bar { background-color: $border-dark-grey; } + .users-vote { background-color: $brand-primary; } } .submit[disabled] { color: $text-grey; cursor: default; - - &:hover, - &:active { - background-image: none; - } } } .poll-content { margin-top: 5px; + .result-head { + margin-bottom: 5px; + } + [type=radio], label { font-weight: normal; diff --git a/app/assets/templates/faq_posts_and_posting_tpl.jst.hbs b/app/assets/templates/faq_posts_and_posting_tpl.jst.hbs index 6fd047cc4..b2ef4b382 100644 --- a/app/assets/templates/faq_posts_and_posting_tpl.jst.hbs +++ b/app/assets/templates/faq_posts_and_posting_tpl.jst.hbs @@ -24,6 +24,16 @@
+