Skip to content

Commit

Permalink
Merge pull request #567 from nextcloud/wb-admin-log-buttons
Browse files Browse the repository at this point in the history
Orders Admin Log Button
  • Loading branch information
nickvergessen authored Jul 26, 2016
2 parents cc5ddcf + 3b44d73 commit 1b1ff3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions settings/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ span.version {
table.grid td.date{
white-space: nowrap;
}
#log-section p {
margin-top:20px;
}

/* ADMIN */
#security-warning li {
Expand Down
20 changes: 10 additions & 10 deletions settings/templates/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@
</tr>
<?php endforeach;?>
</table>
<p><?php p($l->t('What to log'));?> <select name='loglevel' id='loglevel'>
<?php for ($i = 0; $i < 5; $i++):
$selected = '';
if ($i == $_['loglevel']):
$selected = 'selected="selected"';
endif; ?>
<option value='<?php p($i)?>' <?php p($selected) ?>><?php p($levelLabels[$i])?></option>
<?php endfor;?>
</select></p>

<?php if ($_['logFileSize'] > 0): ?>
<a href="<?php print_unescaped(OC::$server->getURLGenerator()->linkToRoute('settings.LogSettings.download')); ?>" class="button" id="downloadLog"><?php p($l->t('Download logfile'));?></a>
<?php endif; ?>
Expand All @@ -528,16 +538,6 @@
</em>
<?php endif; ?>
<?php endif; ?>

<p><?php p($l->t('What to log'));?> <select name='loglevel' id='loglevel'>
<?php for ($i = 0; $i < 5; $i++):
$selected = '';
if ($i == $_['loglevel']):
$selected = 'selected="selected"';
endif; ?>
<option value='<?php p($i)?>' <?php p($selected) ?>><?php p($levelLabels[$i])?></option>
<?php endfor;?>
</select></p>
</div>

<div class="section" id="admin-tips">
Expand Down

0 comments on commit 1b1ff3b

Please sign in to comment.