Exemple #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
}
Exemple #2
0
func (self *ImageRef) OriginalVersion() (*ImageVersion, error) {
	image, err := self.Get()
	if err != nil {
		return nil, err
	}
	return image.OriginalVersion(), nil
}
Exemple #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
}