Skip to content
Extraits de code Groupes Projets
Valider be05f454 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Merge pull request #6535 from Flaburgan/stream-modification

Design of stream pages
parents 49b71d30 847fdb0d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 14 ajouts et 13 suppressions
...@@ -42,7 +42,7 @@ public/500.html ...@@ -42,7 +42,7 @@ public/500.html
app/assets/images/branding-*.png app/assets/images/branding-*.png
app/assets/images/branding/logos-*.png app/assets/images/branding/logos-*.png
app/assets/images/icons-*.png app/assets/images/icons-*.png
app/assets/images/social_media_logos-*.png app/assets/images/social-media-logos-*.png
# Documentation # Documentation
.yardoc/ .yardoc/
......
...@@ -94,6 +94,7 @@ Contributions are very welcome, the hard work is done! ...@@ -94,6 +94,7 @@ Contributions are very welcome, the hard work is done!
* Optimized the pod up checks [#6727](https://github.com/diaspora/diaspora/pull/6727) * Optimized the pod up checks [#6727](https://github.com/diaspora/diaspora/pull/6727)
* Prune and do not create aspect visibilities for public posts [#6732](https://github.com/diaspora/diaspora/pull/6732) * Prune and do not create aspect visibilities for public posts [#6732](https://github.com/diaspora/diaspora/pull/6732)
* Optimized mobile login and registration forms [#6764](https://github.com/diaspora/diaspora/pull/6764) * Optimized mobile login and registration forms [#6764](https://github.com/diaspora/diaspora/pull/6764)
* Redesign stream pages [#6535](https://github.com/diaspora/diaspora/pull/6535)
## Bug fixes ## Bug fixes
* Destroy Participation when removing interactions with a post [#5852](https://github.com/diaspora/diaspora/pull/5852) * Destroy Participation when removing interactions with a post [#5852](https://github.com/diaspora/diaspora/pull/5852)
......
...@@ -104,9 +104,9 @@ var app = { ...@@ -104,9 +104,9 @@ var app = {
evt.preventDefault(); evt.preventDefault();
var link = $(this); var link = $(this);
if(link.data("stream-title") && link.data("stream-title").length) { if(link.data("stream-title") && link.data("stream-title").length) {
$(".stream_title").text(link.data("stream-title")); $(".stream-title").text(link.data("stream-title"));
} else { } else {
$(".stream_title").text(link.text()); $(".stream-title").text(link.text());
} }
$("html, body").animate({scrollTop: 0}); $("html, body").animate({scrollTop: 0});
......
...@@ -59,7 +59,7 @@ app.views.AspectsList = app.views.Base.extend({ ...@@ -59,7 +59,7 @@ app.views.AspectsList = app.views.Base.extend({
}, },
updateStreamTitle: function() { updateStreamTitle: function() {
$('.stream_title').text(this.collection.toSentence()); $(".stream-title").text(this.collection.toSentence());
}, },
updateAspectList: function() { updateAspectList: function() {
......
...@@ -20,15 +20,13 @@ app.views.PublisherGettingStarted = Backbone.View.extend({ ...@@ -20,15 +20,13 @@ app.views.PublisherGettingStarted = Backbone.View.extend({
show: function() { show: function() {
this._addPopover(this.firstMessage, { this._addPopover(this.firstMessage, {
trigger: "manual", trigger: "manual",
offset: 30,
id: "first_message_explain", id: "first_message_explain",
placement: "right", placement: "left",
html: true, html: true,
container: "body" container: "body"
}, 600); }, 600);
this._addPopover(this.visibility, { this._addPopover(this.visibility, {
trigger: "manual", trigger: "manual",
offset: 10,
id: "message_visibility_explain", id: "message_visibility_explain",
placement: "bottom", placement: "bottom",
html: true, html: true,
...@@ -36,7 +34,6 @@ app.views.PublisherGettingStarted = Backbone.View.extend({ ...@@ -36,7 +34,6 @@ app.views.PublisherGettingStarted = Backbone.View.extend({
}, 1000); }, 1000);
this._addPopover(this.stream, { this._addPopover(this.stream, {
trigger: "manual", trigger: "manual",
offset: -5,
id: "stream_explain", id: "stream_explain",
placement: "left", placement: "left",
html: true, html: true,
...@@ -77,4 +74,3 @@ app.views.PublisherGettingStarted = Backbone.View.extend({ ...@@ -77,4 +74,3 @@ app.views.PublisherGettingStarted = Backbone.View.extend({
} }
}); });
// @license-end // @license-end
...@@ -121,7 +121,7 @@ app.views.Publisher = Backbone.View.extend({ ...@@ -121,7 +121,7 @@ app.views.Publisher = Backbone.View.extend({
this.viewGettingStarted = new app.views.PublisherGettingStarted({ this.viewGettingStarted = new app.views.PublisherGettingStarted({
firstMessageEl: this.inputEl, firstMessageEl: this.inputEl,
visibilityEl: this.$(".public_toggle .aspect_dropdown > .dropdown-toggle"), visibilityEl: this.$(".public_toggle .aspect_dropdown > .dropdown-toggle"),
streamEl: $("#gs-shim") streamEl: $("#main_stream")
}); });
this.viewUploader = new app.views.PublisherUploader({ this.viewUploader = new app.views.PublisherUploader({
......
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
app.views.Sidebar = app.views.Base.extend({ app.views.Sidebar = app.views.Base.extend({
el: ".rightbar", el: ".info-bar",
events: { events: {
"click input#invite_code": "selectInputText" "click input#invite_code": "selectInputText",
"click .section .title": "toggleSection"
}, },
selectInputText: function(event) { selectInputText: function(event) {
event.target.select(); event.target.select();
},
toggleSection: function(e) {
$(e.target).closest(".section").toggleClass("collapsed");
} }
}); });
// @license-end // @license-end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter