mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 03:44:52 +00:00
02_RSS: device alias displayed in device overview
git-svn-id: https://svn.fhem.de/fhem/trunk@27258 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc8fab970b
commit
465475a3cb
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 02_RSS: device alias displayed in device overview
|
||||
- change: 93_DbLog: adapt configCheck, new get...configCheck, commref edited
|
||||
- change: 93_DbLog: adapt configCheck
|
||||
- feature: 93_DbRep: Support of utf8mb4 collation, minor fixes,
|
||||
|
@ -204,13 +204,15 @@ sub RSS_getURL($) {
|
||||
# list all RSS devices
|
||||
sub RSS_Overview {
|
||||
|
||||
my ( $name, $url );
|
||||
my ( $name, $url, $alias );
|
||||
my $html = RSS_HTMLHead( "RSS Overview", undef ) . "<body>\n";
|
||||
foreach my $def ( sort keys %defs ) {
|
||||
if ( $defs{$def}{TYPE} eq "RSS" ) {
|
||||
$name = $defs{$def}{NAME};
|
||||
$alias = AttrVal($name, 'alias', '');
|
||||
$alias = $alias ne '' ? qq( ($alias)) : '' ;
|
||||
$url = RSS_getURL($name);
|
||||
$html .= "$name<br>\n<ul>";
|
||||
$html .= "$name$alias<br>\n<ul>";
|
||||
$html .=
|
||||
"<a href='$url/rss/$name.rss' target='_blank' >RSS</a><br>\n";
|
||||
$html .=
|
||||
|
Loading…
x
Reference in New Issue
Block a user