mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-16 11:37:13 +02:00
25 lines
660 B
TypeScript
25 lines
660 B
TypeScript
///<reference path="../../../browser.d.ts"/>
|
|
|
|
import {Component, Input} from 'angular2/core';
|
|
import {Photo} from "../../../../common/entities/Photo";
|
|
import {Directory} from "../../../../common/entities/Directory";
|
|
import {Utils} from "../../../../common/Utils";
|
|
|
|
@Component({
|
|
selector: 'gallery-photo',
|
|
templateUrl: 'app/gallery/photo/photo.gallery.component.html'
|
|
})
|
|
export class GalleryPhotoComponent{
|
|
@Input() photo: Photo;
|
|
@Input() directory: Directory;
|
|
|
|
constructor() {
|
|
}
|
|
|
|
getPhotoPath(){
|
|
return Utils.concatUrls("/api/gallery",this.directory.path,this.directory.name,this.photo.name,"thumbnail");
|
|
}
|
|
|
|
}
|
|
|