Hubzilla issue #1022 - improve the usability
This commit is contained in:
parent
af125fbe4f
commit
1c3e669761
@ -284,7 +284,7 @@ class Wiki extends \Zotlabs\Web\Controller {
|
|||||||
$wikiheaderPage = urldecode($pageUrlName);
|
$wikiheaderPage = urldecode($pageUrlName);
|
||||||
|
|
||||||
$renamePage = (($wikiheaderPage === 'Home') ? '' : t('Rename page'));
|
$renamePage = (($wikiheaderPage === 'Home') ? '' : t('Rename page'));
|
||||||
$sharePage = t('Share page');
|
$sharePage = t('Share');
|
||||||
|
|
||||||
$p = [];
|
$p = [];
|
||||||
|
|
||||||
@ -357,7 +357,7 @@ class Wiki extends \Zotlabs\Web\Controller {
|
|||||||
'$wikiheaderPage' => $wikiheaderPage,
|
'$wikiheaderPage' => $wikiheaderPage,
|
||||||
'$renamePage' => $renamePage,
|
'$renamePage' => $renamePage,
|
||||||
'$sharePage' => $sharePage,
|
'$sharePage' => $sharePage,
|
||||||
'$shareLink' => urlencode('#^[zrl=' . z_root() . '/wiki/' . argv(1) . '/' . $wikiUrlName . '/' . $pageUrlName . ']' . $wikiheaderName . ' - ' . $wikiheaderPage . '[/zrl]'),
|
'$shareLink' => urlencode('#^[zrl=' . z_root() . '/wiki/' . argv(1) . '/' . $wikiUrlName . '/' . $pageUrlName . ']' . '[ ' . $owner['channel_name'] . ' ] - ' . $wikiheaderName . ' - ' . $wikiheaderPage . '[/zrl]'),
|
||||||
'$showPageControls' => $showPageControls,
|
'$showPageControls' => $showPageControls,
|
||||||
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
|
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
|
||||||
'$tools_label' => 'Page Tools',
|
'$tools_label' => 'Page Tools',
|
||||||
|
@ -11,13 +11,11 @@
|
|||||||
{{if $renamePage}}
|
{{if $renamePage}}
|
||||||
<a class="dropdown-item rename-page" href="#"><i class="fa fa-fw fa-edit"></i> {{$renamePage}}</a>
|
<a class="dropdown-item rename-page" href="#"><i class="fa fa-fw fa-edit"></i> {{$renamePage}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $sharePage}}
|
|
||||||
<a class="dropdown-item share-page" href="rpost?f=&body={{$shareLink}}"><i class="fa fa-fw fa-share"></i> {{$sharePage}}</a>
|
|
||||||
{{/if}}
|
|
||||||
<a id="embed-image" class="dropdown-item" href="#"><i class="fa fa-fw fa-picture-o"></i> Embed Image</a>
|
<a id="embed-image" class="dropdown-item" href="#"><i class="fa fa-fw fa-picture-o"></i> Embed Image</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$sharePage}}" onclick="window.location.href='rpost?f=&body={{$shareLink}}';"><i class="fa fa-fw fa-share"></i></button>
|
||||||
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(); adjustFullscreenEditorHeight();"><i class="fa fa-expand"></i></button>
|
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(); adjustFullscreenEditorHeight();"><i class="fa fa-expand"></i></button>
|
||||||
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false); adjustInlineEditorHeight()"><i class="fa fa-compress"></i></button>
|
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false); adjustInlineEditorHeight()"><i class="fa fa-compress"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user