projects
/
catagits/Reaction.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
added Field::File and Widget::Image
[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
if($_{viewport}->value_string) {
9
arg uri => $_{viewport}->uri;
10
render 'has_image';
11
} else {
12
render 'no_image';
13
}
14
};
15
16
};
17
18
1;