Permalink
Browse files

Adding display of original response from server

Closing issue #14
  • Loading branch information...
ScottMansfield committed May 26, 2015
1 parent 1847e02 commit 54855d0246e259eea8320aef4cb3aeba4f129465
@@ -2,6 +2,9 @@ controllers = angular.module 'wa.controllers'

controllers.controller 'PageVisitController', ($scope, $stateParams, $http, $modal, Encoding) ->

# defaults
$scope.visitInfo = null

$scope.visitProps = [
{propKey: 'TITLE', display: 'Page Title'}
{propKey: 'ORIGINAL_URL', display: 'Original URL'}
@@ -37,7 +40,7 @@ controllers.controller 'PageVisitController', ($scope, $stateParams, $http, $mod
$modal.open {
templateUrl: 'templates/modals/rawContentModal.html'
controller: 'RawContentModalController'
size: 'lg',
size: 'fit',
resolve: {
contentID: -> $scope.visitInfo.PAGE_CONTENT_REF
}
@@ -24,7 +24,6 @@ html
script(src="lib/angular/angular.js")
script(src="lib/angular-bootstrap/ui-bootstrap-tpls.js")
script(src="lib/angular-ui-router/release/angular-ui-router.js")
script(src="lib/angular-highlightjs/build/angular-highlightjs.js")

// Utils
script(src="js/util/module.js")
@@ -4,7 +4,12 @@
.row
.col-xs-12
.btn-group
button.btn.btn-default(ng-click="showRawContents()") Show raw page contents
button.btn.btn-default(
ng-click="showRawContents()",
ng-class="{hidden: visitInfo == null}",
style="margin: 5px 0 5px 0;"
)
| Show raw page contents
.row
.col-xs-12
h3.visit-time {{visitTime}}
@@ -22,4 +22,9 @@ table.headers
border-radius: 5px
padding: 5px
margin: 5px
background: #f5f5f5
background: #f5f5f5

.modal-fit
width: 95%
margin-right: auto
margin-left: auto

0 comments on commit 54855d0

Please sign in to comment.