templates/history/historie.tpl
changeset 0 4869aea77e21
new file mode 100644
--- /dev/null
+++ b/templates/history/historie.tpl
@@ -0,0 +1,35 @@
+<h2 class="text-center">Historie des Tickets Nr. {$ticket->getId()}</h2>
+<hr/>
+
+<table border="1" style="width: 100%">
+    <tr>
+        <th>Aktion</th>
+        <th>Status</th>
+        <th>Benutzer</th>
+        <th>Betreff</th>
+        <th>Nachricht</th>
+        <th>Gesperrt</th>
+        <th>Letzter Zugriff</th>
+    </tr>
+
+    {foreach $histories as $history}
+        {assign var="coloredRow" value=""}
+        {if $history->getLocked() == 1}
+            {assign var="coloredRow" value=" yellow-row"}
+        {/if}
+
+        {if $history->getStatus_Id() == $tStatus::GESCHLOSSEN}
+            {assign var="coloredRow" value=" red-row"}
+        {/if}
+        <tr class="clickable{$coloredRow}" id="tid{$ticket->getId()}">
+            <td>{$history->getActionName()}</td>
+            <td>{$history->getStatusName()}</td>
+            <td>{$history->getUsername()}</td>
+            <td>{$history->getSubject()}</td>
+            <td>{$history->getMessage()}</td>
+            <td>{$history->getLocked()}</td>
+            <td>{$history->getLast_Access()}</td>
+        </tr>
+    {/foreach}
+</table>
+