Improved template
This commit is contained in:
parent
561ae12b02
commit
c45df0b964
|
@ -49,7 +49,6 @@ function discourse_settings(App $a, &$s)
|
||||||
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/discourse/');
|
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/discourse/');
|
||||||
$s .= Renderer::replaceMacros($t, [
|
$s .= Renderer::replaceMacros($t, [
|
||||||
'$title' => L10n::t('Discourse'),
|
'$title' => L10n::t('Discourse'),
|
||||||
'$css' => ($enabled ? '' : '-disabled'),
|
|
||||||
'$enabled' => ['enabled', L10n::t('Enable processing of Discourse mailing list mails'), $enabled, L10n::t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')],
|
'$enabled' => ['enabled', L10n::t('Enable processing of Discourse mailing list mails'), $enabled, L10n::t('If enabled, incoming mails from Discourse will be improved so they look much better. To make it work, you have to configure the e-mail settings in Friendica. You also have to enable the mailing list mode in Discourse. Then you have to add the Discourse mail account as contact.')],
|
||||||
'$submit' => L10n::t('Save Settings'),
|
'$submit' => L10n::t('Save Settings'),
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<span id="settings_discourse_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose('settings_discourse_expanded'); openClose('settings_discourse_inflated');">
|
<span id="settings_discourse_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose('settings_discourse_expanded'); openClose('settings_discourse_inflated');">
|
||||||
<img class="connector{{$css}}" src="images/discourse.png" /><h3 class="connector">{{$title}}</h3>
|
<img class="connector{{if ! $enabled.2}}-disabled{{/if}}" src="images/discourse.png" /><h3 class="connector">{{$title}}</h3>
|
||||||
</span>
|
</span>
|
||||||
<div id="settings_discourse_expanded" class="settings-block" style="display: none;">
|
<div id="settings_discourse_expanded" class="settings-block" style="display: none;">
|
||||||
<span class="fakelink" onclick="openClose('settings_discourse_expanded'); openClose('settings_discourse_inflated');">
|
<span class="fakelink" onclick="openClose('settings_discourse_expanded'); openClose('settings_discourse_inflated');">
|
||||||
<img class="connector{{$css}}" src="images/discourse.png" /><h3 class="connector">{{$title}}</h3>
|
<img class="connector{{if ! $enabled.2}}-disabled{{/if}}" src="images/discourse.png" /><h3 class="connector">{{$title}}</h3>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div id="discourse-wrapper">
|
<div id="discourse-wrapper">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user