2016-03-20 17:54:30 +02:00
|
|
|
///<reference path="../../../browser.d.ts"/>
|
|
|
|
|
2016-03-26 20:24:12 +02:00
|
|
|
import {Component, Input} from 'angular2/core';
|
2016-03-20 17:54:30 +02:00
|
|
|
import {Photo} from "../../../../common/entities/Photo";
|
2016-03-26 17:25:48 +02:00
|
|
|
import {Directory} from "../../../../common/entities/Directory";
|
|
|
|
import {Utils} from "../../../../common/Utils";
|
2016-03-20 17:54:30 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'gallery-photo',
|
|
|
|
templateUrl: 'app/gallery/photo/photo.gallery.component.html'
|
|
|
|
})
|
|
|
|
export class GalleryPhotoComponent{
|
|
|
|
@Input() photo: Photo;
|
2016-03-26 17:25:48 +02:00
|
|
|
@Input() directory: Directory;
|
2016-03-20 17:54:30 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
|
|
|
|
getPhotoPath(){
|
2016-03-29 21:46:44 +02:00
|
|
|
return Utils.concatUrls("/api/gallery",this.directory.path,this.directory.name,this.photo.name,"thumbnail");
|
2016-03-20 17:54:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|