mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 14:25:17 +02:00
Added a modal lightbox-image directive.
Added a fallback-image directive. Added the Device Photo on the Info tab.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
module.exports = function InfoCtrl($scope) {
|
||||
|
||||
module.exports = function InfoCtrl($scope, LightboxImageService) {
|
||||
$scope.openDevicePhoto = function (device) {
|
||||
var title = device.name
|
||||
var enhancedPhoto800 = '/static/devices/photo/x800/' + device.image
|
||||
LightboxImageService.open(title, enhancedPhoto800)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user