You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/11/20 01:21:07 UTC

ambari git commit: AMBARI-8390. Alerts UI: From alert-definition details page, need breadcrumb to go back to alerts (srimanth)

Repository: ambari
Updated Branches:
  refs/heads/trunk 7414a35fa -> 1fab75b3a


AMBARI-8390. Alerts UI: From alert-definition details page, need breadcrumb to go back to alerts (srimanth)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1fab75b3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1fab75b3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1fab75b3

Branch: refs/heads/trunk
Commit: 1fab75b3a25536084636b3161ac8eae5bdcbd66d
Parents: 7414a35
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Wed Nov 19 16:14:52 2014 -0800
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Wed Nov 19 16:14:52 2014 -0800

----------------------------------------------------------------------
 ambari-web/app/routes/main.js                               | 6 +++++-
 ambari-web/app/templates/main/alerts/definition_details.hbs | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1fab75b3/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index 058533c..361312b 100644
--- a/ambari-web/app/routes/main.js
+++ b/ambari-web/app/routes/main.js
@@ -340,7 +340,11 @@ module.exports = Em.Route.extend({
       exit: function(router) {
         router.set('mainAlertInstancesController.isUpdating', false);
       }
-    })
+    }),
+
+    back: function (router, event) {
+      window.history.back();
+    }
   }),
 
   admin: Em.Route.extend({

http://git-wip-us.apache.org/repos/asf/ambari/blob/1fab75b3/ambari-web/app/templates/main/alerts/definition_details.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/alerts/definition_details.hbs b/ambari-web/app/templates/main/alerts/definition_details.hbs
index 5027309..8c128b5 100644
--- a/ambari-web/app/templates/main/alerts/definition_details.hbs
+++ b/ambari-web/app/templates/main/alerts/definition_details.hbs
@@ -38,7 +38,8 @@
               class="icon-pencil"></i></a>
         {{/unless}}
       </div>
-
+      <div><a href="javascript:void(null)" data-toggle="modal" {{action back}}><i
+            class="icon-arrow-left"></i>&nbsp;{{t common.back}}</a></div>
       <div class="definition-details-block">
         <strong>{{t common.description}}</strong>
         {{#unless controller.editing.description.isEditing}}