mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +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>
|
||||
<div class="sidebar-content">
|
||||
<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" />
|
||||
|
||||
{{#if (eq sidebarTab "toc")}}
|
||||
{{document/sidebar-toc
|
||||
page=page
|
||||
roles=roles
|
||||
|
@ -51,13 +38,6 @@
|
|||
onShowPage=(action "onShowPage")
|
||||
onPageLevelChange=(action "onPageLevelChange")
|
||||
onPageSequenceChange=(action "onPageSequenceChange")}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq sidebarTab "feedback")}}
|
||||
{{enterprise/sidebar-feedback
|
||||
document=document
|
||||
permissions=permissions}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</Layout::Grid::Sidebar>
|
||||
|
||||
|
|
|
@ -31,8 +31,17 @@
|
|||
}
|
||||
|
||||
#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 {
|
||||
display: block;
|
||||
display: inline-block;
|
||||
color: map-get($gray-shades, 600);
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
|
|
|
@ -29,14 +29,16 @@
|
|||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{#if canEdit}}
|
||||
<li id="upload-document-files">
|
||||
<span>Upload</span>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
{{#if canEdit}}
|
||||
{{#unless hasAttachments}}
|
||||
<Ui::UiSpacer @size="100" />
|
||||
{{/unless}}
|
||||
<div id="upload-document-files">
|
||||
<span>Upload</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue