parent
25e4d8c365
commit
517cd56f21
3 changed files with 14 additions and 5 deletions
|
|
@ -41,6 +41,7 @@ and on a pod that received that data.
|
|||
* Guard against passing nil into person\_image\_tag [#6286](https://github.com/diaspora/diaspora/pull/6286)
|
||||
* Prevent Handlebars from messing up indentation of pre tags [#6339](https://github.com/diaspora/diaspora/pull/6339)
|
||||
* Fix pagination design on notifications page [#6364](https://github.com/diaspora/diaspora/pull/6364)
|
||||
* Improve handling of j/k hotkeys [#6462](https://github.com/diaspora/diaspora/pull/6462)
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
|||
|
|
@ -101,10 +101,18 @@ var app = {
|
|||
|
||||
// there's probably a better way to do this...
|
||||
$(document).on("click", "a[rel=backbone]", function(evt){
|
||||
if (!(app.stream && /^\/(?:stream|activity|aspects|public|mentions|likes)/.test(app.stream.basePath()))) {
|
||||
// We aren't on a regular stream page
|
||||
return;
|
||||
}
|
||||
|
||||
evt.preventDefault();
|
||||
var link = $(this);
|
||||
|
||||
$(".stream_title").text(link.text());
|
||||
if(link.data("stream-title") && link.data("stream-title").length) {
|
||||
$(".stream_title").text(link.data("stream-title"));
|
||||
} else {
|
||||
$(".stream_title").text(link.text());
|
||||
}
|
||||
app.router.navigate(link.attr("href").substring(1) ,true);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
<div class="container" style="position:relative;">
|
||||
|
||||
<a href="/stream">
|
||||
<a href="/stream" rel="backbone" data-stream-title="{{t "my_stream"}}">
|
||||
<div alt="logo" class="diaspora_header_logo logos-header-logo">
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<span class="header-nav">
|
||||
<span>
|
||||
<a href="/stream">
|
||||
<a href="/stream" rel="backbone">
|
||||
{{t "my_stream"}}
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<span>
|
||||
<a href="/activity">
|
||||
<a href="/activity" rel="backbone">
|
||||
{{t "my_activity"}}
|
||||
</a>
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue