diff --git a/gosa-plugins/goto/addons/goto/log_view.tpl b/gosa-plugins/goto/addons/goto/log_view.tpl
index 9ee5bbcea03cc0afa787b63ec9ed66814549d308..8514b82f379e21efe37eb2a8c6b2da931d660e82 100644 (file)
+{if !$ACL}
-<h2>{t}Log view{/t}</h2>
+ <h3>{msgPool type=permView}</h3>
-{if $logs_available}
- <table>
- <tr>
- <td>{t}Creation time{/t}: </td>
- <td>
- <select name="selected_date" onChange="document.mainform.submit();">
- {foreach from=$logs.$mac item=stuff key=date}
- {if $date == $selected_date}
- <option value="{$date}" selected>{$stuff.REAL_DATE|date_format:"%d.%m.%Y %H:%m:%S"}</option>
- {else}
- <option value="{$date}">{$stuff.REAL_DATE|date_format:"%d.%m.%Y %H:%m:%S"}</option>
- {/if}
- {/foreach}
- </select>
- </td>
- </tr>
- <tr>
- <td>{t}Log file{/t}: </td>
- <td>
- <select name="selected_file" onChange="document.mainform.submit();">
- {foreach from=$logs.$mac.$selected_date.FILES item=filename}
- {if $filename == $selected_file}
- <option value="{$filename}" selected>{$filename}</option>
- {else}
- <option value="{$filename}">{$filename}</option>
- {/if}
- {/foreach}
- </select>
- </td>
- </tr>
- </table>
-
- <h2>{t}Log file{/t}</h2>
- <div style="width:100%;height:350px; overflow-y: scroll; background-color:#EEEEEE; border: solid 1px;">
- {$log_file}
- </div>
{else}
- <h2>No logs for this host</h2>
+ {if $logs_available}
+ <h3>{t}Available logs{/t}</h3>
+
+
+ <table style='width:100%;height:40px;' summary="{t}View system logs{/t}"><tr><td>
+ {$listing}
+ </td></tr></table>
+ <br>
+ <hr>
+ <h3>{t}Selected log{/t}: {$selected_log}</h3>
+ {$log_file}
+ {else}
+ <h3>{t}No logs for this host available!{/t}</h3>
+ {/if}
{/if}
-<p class='seperator'></p>
-<div style='text-align:right;width:100%; padding-right:5px; padding-top:5px;'>
- <input type='submit' name='abort_event_dialog' value='{msgPool type=okButton}'>
+{if $standalone}
+<br>
+<input type="hidden" name="ignore" value="1">
+<hr>
+<div class="plugin-actions">
+ <button type='submit' name='abort_event_dialog'>{msgPool type=backButton}</button>
</div>
+<br>
+{/if}