diff --git a/refstack-ui/app/app.js b/refstack-ui/app/app.js
index ea6fd192..eaa608c4 100644
--- a/refstack-ui/app/app.js
+++ b/refstack-ui/app/app.js
@@ -1,6 +1,6 @@
/** Main app module where application dependencies are listed. */
var refstackApp = angular.module('refstackApp', [
- 'ui.router', 'ui.bootstrap', 'cgBusy']);
+ 'ui.router', 'ui.bootstrap', 'cgBusy', 'ngResource']);
/**
* Handle application routing. Specific templates and controllers will be
diff --git a/refstack-ui/app/components/alerts/alertModal.html b/refstack-ui/app/components/alerts/alertModal.html
new file mode 100644
index 00000000..7aee7921
--- /dev/null
+++ b/refstack-ui/app/components/alerts/alertModal.html
@@ -0,0 +1,8 @@
+
+
+
+
+
+ {{::data.title}} {{::data.text}}
+
+
\ No newline at end of file
diff --git a/refstack-ui/app/components/alerts/alertModalFactory.js b/refstack-ui/app/components/alerts/alertModalFactory.js
new file mode 100644
index 00000000..8cb76e47
--- /dev/null
+++ b/refstack-ui/app/components/alerts/alertModalFactory.js
@@ -0,0 +1,42 @@
+var refstackApp = angular.module('refstackApp');
+
+refstackApp.factory('raiseAlert',
+ ['$modal', function($modal) {
+ 'use strict';
+ return function(mode, title, text) {
+ $modal.open({
+ templateUrl: '/components/alerts/alertModal.html',
+ controller: 'raiseAlertModalController',
+ backdrop: true,
+ keyboard: true,
+ backdropClick: true,
+ size: 'md',
+ resolve: {
+ data: function () {
+ return {
+ mode: mode,
+ title: title,
+ text: text
+ };
+ }
+ }
+ });
+ };
+ }]
+);
+
+
+refstackApp.controller('raiseAlertModalController',
+ ['$scope', '$modalInstance', '$interval', 'data',
+ function ($scope, $modalInstance, $interval, data) {
+ 'use strict';
+ $scope.data = data;
+ $scope.close = function() {
+ $modalInstance.close();
+ };
+ $interval(function(){
+ $scope.close();
+ }, 3000, 1);
+ }
+ ]
+);
diff --git a/refstack-ui/app/components/profile/importPubKeyModal.html b/refstack-ui/app/components/profile/importPubKeyModal.html
new file mode 100644
index 00000000..d9b1107a
--- /dev/null
+++ b/refstack-ui/app/components/profile/importPubKeyModal.html
@@ -0,0 +1,21 @@
+
+