Remove stream title from main stream

This commit is contained in:
Steffen van Bergerem 2016-08-21 12:46:34 +02:00
parent 08c6d485e4
commit fa06eba840
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0
5 changed files with 2 additions and 17 deletions

View file

@ -108,12 +108,6 @@ var app = {
evt.preventDefault();
var link = $(this);
if(link.data("stream-title") && link.data("stream-title").length) {
$(".stream-title").text(link.data("stream-title"));
} else {
$(".stream-title").text(link.text());
}
$("html, body").animate({scrollTop: 0});
// app.router.navigate doesn't tell us if it changed the page,

View file

@ -15,7 +15,6 @@ app.views.AspectsList = app.views.Base.extend({
initialize: function() {
this.collection.on("change", this.toggleSelector, this);
this.collection.on("change", this.updateStreamTitle, this);
this.collection.on("aspectStreamFetched", this.updateAspectList, this);
app.events.on("aspect:create", function(id) { window.location = "/contacts?a_id=" + id });
},
@ -26,7 +25,6 @@ app.views.AspectsList = app.views.Base.extend({
postRenderTemplate: function() {
this.collection.each(this.appendAspect, this);
this.updateStreamTitle();
this.toggleSelector();
},
@ -58,10 +56,6 @@ app.views.AspectsList = app.views.Base.extend({
}
},
updateStreamTitle: function() {
$(".stream-title").text(this.collection.toSentence());
},
updateAspectList: function() {
this.collection.each(function(aspect) {
var element = this.$("li[data-aspect_id="+aspect.get("id")+"]");

View file

@ -5,6 +5,7 @@
}
.main-stream-publisher {
margin-top: 20px;
padding: 0;
.avatar {

View file

@ -2,10 +2,6 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- if user_signed_in? && @person != current_user.person
%h3.stream-title
= stream.title
.container-fluid.main-stream-publisher
.pull-left.hidden-xs
= owner_image_link

View file

@ -25,7 +25,7 @@ Feature: Keyboard navigation
Scenario: navigate downwards after changing the stream
When I go to the activity stream page
And I click on selector "[data-stream='stream'] a"
Then I should see "Stream" within ".stream-title"
Then I should see "Stream" within "#stream_selection .selected"
When I press the "J" key somewhere
Then post 1 should be highlighted