Skip to content

Commit

Permalink
Fix RSS link
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGaudin committed Feb 13, 2013
1 parent c40ba33 commit 63d1d95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _attachments/partials/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div class="row-fluid">
<div id="content" ng-controller="CrashReportsCtrl" class="span12">
<div class="rss"><a href="{{rsslink}}"><img src="img/rss.png"></a></div>
<div class="rss"><a href="/acra-{{acralyzer.app}}/_design/acra-storage/_list/rss/recent-items?descending=true"><img src="img/rss.png"></a></div>
<span ng-bind-template="{{reports.length}} latest reports (out of {{totalReports}}):">Loading...</span>
<ul>
<li ng-repeat="report in reports" ng-cloak>
Expand Down
5 changes: 2 additions & 3 deletions _attachments/script/DashboardControllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

function CrashReportsCtrl($scope, ReportsStore) {
$scope.selectedReport = "";
$scope.rsslink = "/acra-storage/_design/acra-storage/_list/rss/recent-items?descending=true";

$scope.getData = function() {
ReportsStore.recentReports(function(data) {
Expand All @@ -36,7 +35,7 @@ function CrashReportsCtrl($scope, ReportsStore) {
$scope.reports=[];
$scope.totalReports="";
});
}
};

$scope.loadReport = function(report) {
$scope.selectedReport = ReportsStore.reportDetails(report.id, function(data) {
Expand All @@ -48,7 +47,7 @@ function CrashReportsCtrl($scope, ReportsStore) {
data.formatedCrashDate = moment(data.USER_CRASH_DATE).format('LLL');
data.formatedTimestamp = moment(data.timestamp).format('LLL');
});
}
};

$scope.getData();
$scope.$on("refresh", $scope.getData);
Expand Down

0 comments on commit 63d1d95

Please # to comment.