default.txt 655 B

1234567891011121314151617181920
  1. %layout 'bootstrap';
  2. % title "Import your subs";
  3. %= form_for '/settings/import' => (method => 'post', enctype => 'multipart/form-data') => begin
  4. %= file_field 'opmlfile' => multiple => 'true'
  5. %= submit_button 'Import', 'class' => 'btn'
  6. % end
  7. <div>
  8. % if ($subs) {
  9. <dl>
  10. % for my $item (@$subs) {
  11. % my ($dir, $align) = ($item->{rtl}) ? ('rtl', 'right') : ('ltr', 'left');
  12. <dt align="<%= $align %>"><a href="<%= $item->{'xmlUrl'} %>"><i class="icon-rss"></i> rss</a>
  13. <a dir="<%= $dir %>" href="<%= $item->{htmlUrl} %>"><%== $item->{title} %></a>
  14. </dt>
  15. <dd><b>Categories</b>
  16. %= join q{, }, sort @{ $item->{categories} || [] };
  17. </dd>
  18. </dl>
  19. % }
  20. </div>