aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordedeibel2018-12-28 10:42:44 +0100
committerdedeibel2018-12-28 10:42:44 +0100
commitd033c89f003ee9ae03ccff3d54fb534a61d08075 (patch)
treeba8597a1fead1c6d3d21129ea07ca0d4b4825583
parent50dac4c2dfa72ad9b4ef0e1a4656999bb3d3d478 (diff)
Feedback read: add hostname to read page
-rw-r--r--assets/css/_feedback.less4
-rw-r--r--template/feedback-read.phtml2
-rw-r--r--view/feedback-read.php3
3 files changed, 7 insertions, 2 deletions
diff --git a/assets/css/_feedback.less b/assets/css/_feedback.less
index 6d9056a..a7e8fd1 100644
--- a/assets/css/_feedback.less
+++ b/assets/css/_feedback.less
@@ -12,6 +12,10 @@ body.feedback {
}
body.feedback-read {
+ h1 {
+ display: inline-block;
+ }
+
td {
white-space: nowrap;
&.issuetext {
diff --git a/template/feedback-read.phtml b/template/feedback-read.phtml
index 8dc9cc7..15d491f 100644
--- a/template/feedback-read.phtml
+++ b/template/feedback-read.phtml
@@ -1,5 +1,5 @@
<div class="container">
- <h1><?=h($title)?></h1>
+<h1><?=h($title)?></h1> <span><i>on <?= $hostname ?></i></span>
<form action="<?=h($conference->getFeedbackReadUrl())?>" method="POST">
<div class="row">
diff --git a/view/feedback-read.php b/view/feedback-read.php
index b1b582b..446c86e 100644
--- a/view/feedback-read.php
+++ b/view/feedback-read.php
@@ -9,7 +9,7 @@ if(!$feedback->isLoggedIn())
$from = isset($_POST['from']) ? strtotime($_POST['from']) : time();
$to = isset($_POST['to']) ? strtotime($_POST['to']) : time() + 24*60*60;
-$cols = isset($_POST['col']) ? $_POST['col'] : array('reported', 'stream', 'player', 'issuetext');
+$cols = isset($_POST['col']) ? $_POST['col'] : array('reported', 'stream', 'os', 'player', 'issues', 'issuetext');
$allcols = array('reported', 'datetime', 'net', 'os', 'stream', 'player', 'ipproto_v4', 'ipproto_v6', 'provider', 'issues', 'issuetext');
@@ -23,4 +23,5 @@ echo $tpl->render(array(
'columns' => array_intersect($allcols, $cols),
'allcolumns' => $allcols,
+ 'hostname' => @$_SERVER['SERVER_NAME'],
));