projects
/
catagits/Reaction.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Image File widget
[catagits/Reaction.git]
/
lib
/
Reaction
/
UI
/
Widget
/
Value
/
Image.pm
1
package Reaction::UI::Widget::Value::Image;
2
3
use Reaction::UI::WidgetClass;
4
5
class Image, which {
6
7
implements fragment image {
8
warn $_{viewport};
9
if($_{viewport}->value_string) {
10
arg uri => $_{viewport}->uri;
11
render 'has_image';
12
} else {
13
render 'no_image';
14
}
15
};
16
17
};
18
19
1;