Beispiel #1
0
func (self *ImageRef) OriginalVersionLinkedView(imageClass, linkClass string) (*view.Link, error) {
	image, err := self.Get()
	if err != nil {
		return nil, err
	}
	return image.OriginalVersion().LinkedView(imageClass, linkClass), nil
}
Beispiel #2
0
func (self *ImageRef) OriginalVersion() (*ImageVersion, error) {
	image, err := self.Get()
	if err != nil {
		return nil, err
	}
	return image.OriginalVersion(), nil
}
Beispiel #3
0
func (self *ImageRef) OriginalVersionView(class string) (*view.Image, error) {
	image, err := self.Get()
	if err != nil {
		return nil, err
	}
	return image.OriginalVersion().View(class), nil
}