mirror of
https://github.com/documize/community.git
synced 2025-08-04 04:55:23 +02:00
Remove redundant comment/feedback feature
Enterprise edition contains the feedbacl/comment feature and Community edition should not show this. Closes #272
This commit is contained in:
parent
fe7548cd97
commit
91a3c59cd2
3 changed files with 15 additions and 24 deletions
|
@ -24,22 +24,9 @@
|
||||||
<Layout::Grid::Sidebar>
|
<Layout::Grid::Sidebar>
|
||||||
<div class="sidebar-content">
|
<div class="sidebar-content">
|
||||||
<Layout::Grid::SidebarGoTop />
|
<Layout::Grid::SidebarGoTop />
|
||||||
<div class="section">
|
|
||||||
<div class="text-center">
|
|
||||||
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Index color=constants.Color.Gray tooltip="Table of contents"
|
|
||||||
selected=(eq sidebarTab "toc") onClick=(action "onSidebarChange" "toc")}}
|
|
||||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
|
||||||
{{ui/ui-toolbar-icon icon=constants.Icon.Chat color=constants.Color.Gray tooltip="Comments & Feedback"
|
|
||||||
selected=(eq sidebarTab "feedback") onClick=(action "onSidebarChange" "feedback")}}
|
|
||||||
{{/if}}
|
|
||||||
{{/ui/ui-toolbar}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Ui::UiSpacer @size="200" />
|
<Ui::UiSpacer @size="200" />
|
||||||
|
|
||||||
{{#if (eq sidebarTab "toc")}}
|
|
||||||
{{document/sidebar-toc
|
{{document/sidebar-toc
|
||||||
page=page
|
page=page
|
||||||
roles=roles
|
roles=roles
|
||||||
|
@ -51,13 +38,6 @@
|
||||||
onShowPage=(action "onShowPage")
|
onShowPage=(action "onShowPage")
|
||||||
onPageLevelChange=(action "onPageLevelChange")
|
onPageLevelChange=(action "onPageLevelChange")
|
||||||
onPageSequenceChange=(action "onPageSequenceChange")}}
|
onPageSequenceChange=(action "onPageSequenceChange")}}
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if (eq sidebarTab "feedback")}}
|
|
||||||
{{enterprise/sidebar-feedback
|
|
||||||
document=document
|
|
||||||
permissions=permissions}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</Layout::Grid::Sidebar>
|
</Layout::Grid::Sidebar>
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#upload-document-files {
|
#upload-document-files {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
text-transform: uppercase;
|
||||||
|
vertical-align: super;
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
display: block;
|
display: inline-block;
|
||||||
color: map-get($gray-shades, 600);
|
color: map-get($gray-shades, 600);
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -29,14 +29,16 @@
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
{{#if canEdit}}
|
||||||
|
<li id="upload-document-files">
|
||||||
|
<span>Upload</span>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{#if canEdit}}
|
{{#if canEdit}}
|
||||||
{{#unless hasAttachments}}
|
{{#unless hasAttachments}}
|
||||||
<Ui::UiSpacer @size="100" />
|
<Ui::UiSpacer @size="100" />
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<div id="upload-document-files">
|
|
||||||
<span>Upload</span>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue