diff --git a/package.json b/package.json index 4b272c9..3b51bc8 100755 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "load-google-maps-api": "^1.0.0", "lodash": "^4.17.4", "masonry-layout": "^4.2.0", - "moment": "^2.19.1", + "moment": "^2.24.0", "ng-tags-input": "^3.2.0", "node-sass": "^4.5.3", "perfect-scrollbar": "^1.1.0", diff --git a/src/assets/scripts/ads-details/ads-details.controller.js b/src/assets/scripts/ads-details/ads-details.controller.js new file mode 100644 index 0000000..16fb0e9 --- /dev/null +++ b/src/assets/scripts/ads-details/ads-details.controller.js @@ -0,0 +1,18 @@ +import moment from 'moment'; + +const AdsDetailsController = ($scope, AdsDetailsService, $routeParams) => { + AdsDetailsService.fetchAdDetails($routeParams) + .then(function(result){ + $scope.ad = result; + window.msnry.layout(); + console.log(result); + }) + .catch(function(error){ + console.log(error); + }); + $scope.daysAgo = (timestamp) => { + return moment(timestamp).fromNow(); + } +} + +export default AdsDetailsController; \ No newline at end of file diff --git a/src/assets/scripts/ads-details/ads-details.html b/src/assets/scripts/ads-details/ads-details.html index cf72bb6..9fddd12 100644 --- a/src/assets/scripts/ads-details/ads-details.html +++ b/src/assets/scripts/ads-details/ads-details.html @@ -20,36 +20,14 @@ class="avatar">
Great Southern Press is a leading B2B publishing and events company built on - partnerships with industry. We deliver quality business information to our industries and great marketing - results to our clients. - - We build long-lasting partnerships with our industry partners in the energy and infrastructure sectors, - aligning the success of our business with the continued growth and expansion of the industries we publish - for. -
-This part-time role will suit a university graduate or someone looking
- for an entry-level design position. The successful candidate will be involved in all areas of design
- including:
-
- • Publication layout (annual directories, books etc).
- • Creation of artwork for print and online advertisements.
- • Wallcharts, flyers, brochures and other print design as required.
- • Event collateral including branding, signage, handbooks etc.
- • Designs for website, email communications and social media.
-
- Reporting to the Head of Design, you will have an opportunity to work with and be mentored by someone
- with more than 10 years’ industry experience.
-
Melbourne, CBD & Inner Suburbs
+{{ad.location}}
14th March 2019 (Friday)
+Posted 3 days ago
+
- Sierra Delta Creative
- -Some quick example text to build on the card title and make up the bulk of the card's content.
-
- Sierra Delta Creative
- -Some quick example text to build on the card title and make up the bulk of the card's content.
-