summaryrefslogtreecommitdiff
path: root/pages/setup.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/setup.ecpp')
-rw-r--r--pages/setup.ecpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/pages/setup.ecpp b/pages/setup.ecpp
index 548846f..d89acf0 100644
--- a/pages/setup.ecpp
+++ b/pages/setup.ecpp
@@ -22,6 +22,7 @@ using namespace std;
string useAjax;
string showInfoBox;
string useStreamdev;
+ string showIMDb;
string streamdevport;
string streamdevtype;
int authchanged = 0;
@@ -63,6 +64,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
LiveSetup().SetUseStreamdev(!useStreamdev.empty());
LiveSetup().SetStreamdevPort(streamdevport.empty() ? 3000 : lexical_cast<int>(streamdevport));
LiveSetup().SetStreamdevType(streamdevtype.empty() ? "PES" : streamdevtype);
+ LiveSetup().SetShowIMDb(!showIMDb.empty());
LiveSetup().SaveSetup();
message = tr("Setup saved.");
}
@@ -86,6 +88,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
useStreamdev = LiveSetup().GetUseStreamdev() ? "1" : "";
streamdevport = lexical_cast<std::string, int>(LiveSetup().GetStreamdevPort());
streamdevtype = LiveSetup().GetStreamdevType();
+ showIMDb = LiveSetup().GetShowIMDb() ? "1" : "";
</%cpp>
<& pageelems.doc_type &>
@@ -203,6 +206,12 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
</td>
</tr>
<tr>
+ <td class="label leftcol"><div class="withmargin"><$ tr("Add links to IMDb") $>:</div></td>
+ <td class="rightcol">
+ <input type="checkbox" name="showIMDb" id="showIMDb" value="1" <%cpp> CHECKIF(!showIMDb.empty()); </%cpp>/>
+ </td>
+ </tr>
+ <tr>
<td class="label leftcol"><div class="withmargin"><$ tr("additional fixed times in 'What's on?'") $>:</div></td>
<td class="rightcol"><input type="text" name="times" value="<$ times $>" id="times" />
<& tooltip.help text=(tr("Format is HH:MM. Separate multiple times with a semicolon")) &></td>