Skip to content

Commit 8246142

Browse files
committed
layout refinements
1 parent 0ab73de commit 8246142

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

apps/files_external/css/settings.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#global_credentials {
2-
padding-top: 0;
2+
padding: 0 30px;
3+
margin-bottom: 0px;
4+
}
5+
6+
#files_external {
7+
margin-bottom: 0px;
8+
}
9+
10+
#externalStorage {
11+
margin: 15px 0 20px 0;
312
}
413

514
#externalStorage td.status {

apps/files_external/lib/config.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public static function dependencyMessage($backends) {
285285
foreach ($backends as $backend) {
286286
foreach ($backend->checkDependencies() as $dependency) {
287287
if ($message = $dependency->getMessage()) {
288-
$message .= '<br />' . $l->t('<b>Note:</b> ') . $message;
288+
$message .= '<p>' . $message . '</p>';
289289
} else {
290290
$dependencyGroups[$dependency->getDependency()][] = $backend;
291291
}
@@ -294,9 +294,9 @@ public static function dependencyMessage($backends) {
294294

295295
foreach ($dependencyGroups as $module => $dependants) {
296296
$backends = implode(', ', array_map(function($backend) {
297-
return '<i>' . $backend->getText() . '</i>';
297+
return '"' . $backend->getText() . '"';
298298
}, $dependants));
299-
$message .= '<br />' . OC_Mount_Config::getSingleDependencyMessage($l, $module, $backends);
299+
$message .= '<p>' . OC_Mount_Config::getSingleDependencyMessage($l, $module, $backends) . '</p>';
300300
}
301301

302302
return $message;
@@ -313,11 +313,11 @@ public static function dependencyMessage($backends) {
313313
private static function getSingleDependencyMessage(\OCP\IL10N $l, $module, $backend) {
314314
switch (strtolower($module)) {
315315
case 'curl':
316-
return (string)$l->t('<b>Note:</b> The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend);
316+
return (string)$l->t('The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend);
317317
case 'ftp':
318-
return (string)$l->t('<b>Note:</b> The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend);
318+
return (string)$l->t('The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it.', $backend);
319319
default:
320-
return (string)$l->t('<b>Note:</b> "%s" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it.', array($module, $backend));
320+
return (string)$l->t('"%s" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it.', array($module, $backend));
321321
}
322322
}
323323

apps/files_external/templates/settings.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,8 @@ function writeParameterInput($parameter, $options, $classes = []) {
160160
</tr>
161161
</tbody>
162162
</table>
163-
<br />
164163

165164
<?php if ($_['visibilityType'] === BackendService::VISIBILITY_ADMIN): ?>
166-
<br />
167165
<input type="checkbox" name="allowUserMounting" id="allowUserMounting" class="checkbox"
168166
value="1" <?php if ($_['allowUserMounting'] == 'yes') print_unescaped(' checked="checked"'); ?> />
169167
<label for="allowUserMounting"><?php p($l->t('Allow users to mount external storage')); ?></label> <span id="userMountingMsg" class="msg"></span>

0 commit comments

Comments
 (0)