diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/recordings.ecpp | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp index e307bed..4a8eb14 100644 --- a/pages/recordings.ecpp +++ b/pages/recordings.ecpp @@ -2,23 +2,29 @@ #include <sstream> #include <vdr/plugin.h> #include <vdr/config.h> -#include <vdr/i18n.h> +#include <tnt/savepoint.h> +#include "exception.h" #include "tools.h" #include "recordings.h" using namespace vdrlive; </%pre> +<%args> +</%args> +<%request scope="global"> +std::string pageTitle(tr("Recordings")); +</%request> <%request scope="page"> RecordingsTree recordingsTree; </%request> -<%args> -</%args> -<{ -}> +<%cpp> +try { + tnt::Savepoint spoint(reply); +</%cpp> <html> <head> - <title>VDR-Live - <$ tr("Recordings") $></title> + <title>VDR-Live - <$ pageTitle $></title> <link rel="stylesheet" type="text/css" href="styles.css" /> <script src="treeview.js" type="text/javascript" /> </head> @@ -95,3 +101,12 @@ for (iter = recordingsTree.begin(path); iter != end; iter++) { }> </ul> </%def> +<%cpp> + spoint.commit(); +} catch ( HtmlError const& ex ) { + cxxtools::QueryParams param = qparam; + param.add( "errorTitle", ex.GetTitle() ); + param.add( "errorMessage", ex.GetMessage() ); + callComp( "error", request, reply, param ); +} +</%cpp> |