Render subscription table header icons using CSS (#4175); revert commit 99567e9b

This commit is contained in:
Thomas Bruederli 2015-01-13 16:44:52 +01:00
parent 21d7d8ba24
commit 0dc0490ba0
5 changed files with 20 additions and 3 deletions

View file

@ -146,10 +146,12 @@ class kolab_activesync_ui
$table = new html_table(array('cellspacing' => 0));
$table->add_header(array('class' => 'subscription', 'title' => $this->plugin->gettext('synchronize'), 'tabindex' => 0),
$attrib['syncicon'] ? html::img(array('src' => $this->skin_path . $attrib['syncicon'])) : '');
$attrib['syncicon'] ? html::img(array('src' => $this->skin_path . $attrib['syncicon'])) :
$this->plugin->gettext('synchronize'));
if ($alarms) {
$table->add_header(array('class' => 'alarm', 'title' => $this->plugin->gettext('withalarms'), 'tabindex' => 0),
$attrib['alarmicon'] ? html::img(array('src' => $this->skin_path . $attrib['alarmicon'])) : '');
$attrib['alarmicon'] ? html::img(array('src' => $this->skin_path . $attrib['alarmicon'])) :
$this->plugin->gettext('withalarms'));
}
$table->add_header('foldername', $this->plugin->gettext('folder'));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -71,6 +71,16 @@ div.subscriptionblock h3.note {
#foldersubscriptions thead th.alarm,
#foldersubscriptions thead th.subscription {
cursor: pointer;
overflow: hidden;
text-indent: -5000px;
background-image: url(synchronize.png);
background-position: center center;
background-repeat: no-repeat;
height: 16px;
}
#foldersubscriptions thead th.alarm {
background-image: url(alarm-clock.png);
}
#foldersubscriptions tbody td {
@ -79,6 +89,11 @@ div.subscriptionblock h3.note {
border-bottom: 2px solid #fff;
}
#foldersubscriptions tbody td.alarm,
#foldersubscriptions tbody td.subscription {
text-align: center;
}
#foldersubscriptions td label {
display: block;
}

View file

@ -16,7 +16,7 @@
</fieldset>
<fieldset>
<legend><roundcube:label name="kolab_activesync.folderstosync" /></legend>
<roundcube:object name="plugin.foldersubscriptions" form="configform" id="foldersubscriptions" syncicon="synchronize.png" alarmicon="alarm-clock.png" />
<roundcube:object name="plugin.foldersubscriptions" form="configform" id="foldersubscriptions" />
</fieldset>
</form>
</div>