-
-
-
-
-
-
-
- % if ($tile->type ne "toggle"){
-
- % } elsif ($tile->type eq "toggle" && $tile->status == "0")
-
- % } else {
-
- % }
-
-
-
-
-
-
- % if(defined $tile->picture()) {
- %= image '/thumb/'.$tile->title.'.jpg' => (class => 'img-responsive') , width=> '260px', alt => $tile->title, itemprop => "image"
- % } else {
- %= image '/thumb/no-image.jpg' => (class => 'img-responsive') , width=> '260px', alt => $tile->title, itemprop => "image"
- % }
+ % my $class = "tile-default tile-detail";
+ % my $data-post = "/tile-detail/".$tile->title;
+ % if ($tile->toggle == 1) {
+ % $class = "tile-toggle command";
+ % $class .= (exists $tile->status && $tile->status == 1) ? "tile-status-on";
+ % $data-post = "/command/".$tile->title;
+ % }
+
>
+
<%= $tile->title %>
+
<% #glipycon light-bulb %>
+
<%= $tile->gpio %>
+
<%= $tile->room %>