summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-06 20:03:36 +0300
committerAndrew Dolgov <[email protected]>2021-03-06 20:03:36 +0300
commit68ecf52594e76f3f5ac40846359fb774cd366989 (patch)
tree51fe5fcbab0fa600f375b545b89db8f475e1ceb4 /js
parent473ea6255c634fa47ee8c8e24de910785b9b095b (diff)
some small layout fixes, remove a few inline styles
Diffstat (limited to 'js')
-rw-r--r--js/CommonDialogs.js2
-rw-r--r--js/PrefFeedTree.js2
-rw-r--r--js/PrefHelpers.js25
3 files changed, 14 insertions, 15 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index b9b053a5a..15c2021b6 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -248,7 +248,7 @@ const CommonDialogs = {
${reply.map((row) => `
<tr data-row-id='${row.id}'>
- <td width='5%' align='center'>
+ <td class='checkbox'>
<input onclick='Tables.onRowChecked(this)' dojoType="dijit.form.CheckBox"
type="checkbox">
</td>
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js
index 0e89e1978..013c01262 100644
--- a/js/PrefFeedTree.js
+++ b/js/PrefFeedTree.js
@@ -513,7 +513,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
<div class='panel panel-scrollable'>
<table width='100%' id='inactive-feeds-list'>
${reply.map((row) => `<tr data-row-id='${row.id}'>
- <td width='5%' align='center'>
+ <td class='checkbox'>
<input onclick='Tables.onRowChecked(this)' dojoType='dijit.form.CheckBox' type='checkbox'>
</td>
<td>
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js
index 296028f44..eed55f229 100644
--- a/js/PrefHelpers.js
+++ b/js/PrefHelpers.js
@@ -183,7 +183,7 @@ const Helpers = {
<table width='100%' id='pref-profiles-list'>
${reply.map((profile) => `
<tr data-row-id="${profile.id}">
- <td width='5%'>
+ <td class='checkbox'>
${App.FormFields.checkbox_tag("", false, "", {onclick: 'Tables.onRowChecked(this)'})}
</td>
<td>
@@ -533,17 +533,15 @@ const Helpers = {
disabled: is_installed,
onclick: `App.dialogOf(this).performInstall("${App.escapeHtml(plugin.name)}")`})}
- <h3 style="margin-top: 0">${plugin.name}
+ <h3>${plugin.name}
<a target="_blank" href="${App.escapeHtml(plugin.html_url)}">
${App.FormFields.icon("open_in_new_window")}
</a>
</h3>
- <div class='text-muted'>${__("Updated: %s").replace("%s", plugin.last_update)}</div>
+ <div class='small text-muted'>${__("Updated: %s").replace("%s", plugin.last_update)}</div>
- <p>${plugin.description}</p>
-
- <hr/>
+ <div class='description'>${plugin.description}</div>
</li>
`
}
@@ -626,13 +624,14 @@ const Helpers = {
container.innerHTML +=
`
- <li><h3 style="margin-top: 0">${p.plugin}</h3>
+ <li>
+ <h3>${p.plugin}</h3>
${p.rv.e ? `<pre class="small text-error pre-wrap">${p.rv.e}</pre>` : ''}
${p.rv.o ? `<pre class="small text-success pre-wrap">${p.rv.o}</pre>` : ''}
- <p class="small">
+ <div class="small">
${p.rv.s ? App.FormFields.icon("error_outline") + " " + __("Exited with RC: %d").replace("%d", p.rv.s) :
App.FormFields.icon("check") + " " + __("Update done.")}
- </p>
+ </div>
</li>
`
});
@@ -642,7 +641,7 @@ const Helpers = {
});
},
content: `
- <ul class="panel panel-scrollable update-results">
+ <ul class="panel panel-scrollable plugin-updater-list update-results">
<li class='text-center'>${__("Looking for changes...")}</li>
</ul>
@@ -681,13 +680,13 @@ const Helpers = {
container.innerHTML +=
`
- <li><h3 style="margin-top: 0">${p.plugin}</h3>
+ <li><h3>${p.plugin}</h3>
${p.rv.e ? `<pre class="small text-error pre-wrap">${p.rv.e}</pre>` : ''}
${p.rv.o ? `<pre class="small text-success pre-wrap">${p.rv.o}</pre>` : ''}
- <p class="small">
+ <div class="small">
${p.rv.s ? App.FormFields.icon("error_outline") + " " + __("Exited with RC: %d").replace("%d", p.rv.s) :
App.FormFields.icon("check") + " " + __("Ready to update")}
- </p>
+ </div>
</li>
`
});