diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-05-23 10:12:50 +0000 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-05-23 10:12:50 +0000 |
commit | 4d8c223503257fce73cc67ec9b0fe09cc252c5c4 (patch) | |
tree | df90781353db8d42b23b4195db1e608777324122 | |
parent | 40bfdf4152c5bd6ef6d3b3b0e726ca5371f5a582 (diff) | |
download | vdr-plugin-live-4d8c223503257fce73cc67ec9b0fe09cc252c5c4.tar.gz vdr-plugin-live-4d8c223503257fce73cc67ec9b0fe09cc252c5c4.tar.bz2 |
- link to channel in search results
-rw-r--r-- | css/styles.css | 5 | ||||
-rw-r--r-- | pages/searchresults.ecpp | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/css/styles.css b/css/styles.css index da4c04a..31b76f7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -857,6 +857,11 @@ table.searchresults div.more { cursor: pointer; } +table.searchresults a { + text-decoration: none; + color: black; + font-weight: bold; +} /* ############################## # Login diff --git a/pages/searchresults.ecpp b/pages/searchresults.ecpp index a900061..6711ec8 100644 --- a/pages/searchresults.ecpp +++ b/pages/searchresults.ecpp @@ -56,6 +56,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); for (SearchResults::iterator result = results.begin(); result != results.end(); ++result) { // active_line = !active_line; string channelname = Channels.GetByChannelID(result->Channel())->Name(); + int channelnr = Channels.GetByChannelID(result->Channel())->Number(); string start(result->StartTime() ? FormatDateTime(tr("%I:%M %p"), result->StartTime()) : ""); string end(result->StopTime() ? FormatDateTime(tr("%I:%M %p"), result->StopTime()) : ""); string day(result->StartTime() ? FormatDateTime(tr("%A, %b %d %Y"), result->StartTime()) : ""); @@ -86,7 +87,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); % } <tr class="<? active_line ? "active" ?>"> <td style="border-left: 1px solid black"><& pageelems.event_timer channelid=(channel_id) eventid=(event)&></td> - <td><$ channelname $></td> + <td><a href="schedule.html?channel=<$ channelnr $>"><$ channelname $></a></td> <td><$ start $> - <$ end $></td> <td> |