From f597d6e6e44e61d03df11047f948c964adb8fdff Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 13 Feb 2015 15:10:30 -0600 Subject: [PATCH] Issue #560 - Link to issues Submitted by Me from homepage --- webcompat/static/js/lib/diagnose.js | 2 ++ webcompat/templates/browse-issues/my-issues.html | 4 +++- webcompat/views.py | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/webcompat/static/js/lib/diagnose.js b/webcompat/static/js/lib/diagnose.js index c0c398c96..84e1b06e6 100644 --- a/webcompat/static/js/lib/diagnose.js +++ b/webcompat/static/js/lib/diagnose.js @@ -32,6 +32,7 @@ diagnose.SiteWaitCollection = Backbone.Collection.extend({ diagnose.MyIssuesView = Backbone.View.extend({ el: $('#my-issues'), + _userName: $('body').data('username'), initialize: function() { var self = this; var headersBag = {headers: {'Accept': 'application/json'}}; @@ -45,6 +46,7 @@ diagnose.MyIssuesView = Backbone.View.extend({ this.$el.html(this.template({ // manually slice out the latest 6. // in the future we'll allow the user to "scroll" these. + userName: this._userName, userIssues: this.issues.toJSON().slice(0,6) })); return this; diff --git a/webcompat/templates/browse-issues/my-issues.html b/webcompat/templates/browse-issues/my-issues.html index f8e52e52e..824b37f72 100644 --- a/webcompat/templates/browse-issues/my-issues.html +++ b/webcompat/templates/browse-issues/my-issues.html @@ -1,6 +1,8 @@