OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
65
app/Domain/Goalcanvas/Templates/canvasComment.blade.php
Normal file
65
app/Domain/Goalcanvas/Templates/canvasComment.blade.php
Normal file
@@ -0,0 +1,65 @@
|
||||
@extends($layout)
|
||||
@section('content')
|
||||
|
||||
@php
|
||||
|
||||
/**
|
||||
* canvasComment.inc template - Generic template for comments
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@endphp
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onload = function() {
|
||||
if (!window.jQuery) {
|
||||
//It's not a modal
|
||||
location.href = "{{ BASE_URL }}/goalcanvas/showCanvas?showModal={{ $canvasItem['id'] }}";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="showDialogOnLoad" style="display:none;">
|
||||
|
||||
<h4 class="widgettitle title-light" style="padding-bottom: 0">
|
||||
<i class="fas {{ $canvasTypes[$canvasItem['box']]['icon'] }}"></i>
|
||||
{{ $canvasTypes[$canvasItem['box']]['title'] }}
|
||||
</h4>
|
||||
<hr style="margin-top: 5px; margin-bottom: 15px;">
|
||||
|
||||
<h5 style="padding-left: 40px"><strong>{{ $canvasItem['description'] }}</strong></h5>
|
||||
|
||||
@if ($id !== '')
|
||||
<br />
|
||||
<input type="hidden" name="comment" value="1" />
|
||||
<h4 class="widgettitle title-light">
|
||||
<span class="fa fa-comments"></span>{{ __('subtitles.discussion') }}
|
||||
</h4>
|
||||
@include('comments::submodules.generalComment', ['formUrl' => '/goalcanvas/editCanvasComment/' . $id])
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
if (window.leantime && window.leantime.tiptapController) {
|
||||
leantime.tiptapController.initSimpleEditor();
|
||||
}
|
||||
|
||||
@if(!$login::userIsAtLeast($roles::$editor))
|
||||
leantime.authController.makeInputReadonly(".nyroModalCont");
|
||||
|
||||
@endif;
|
||||
|
||||
@if($login::userHasRole([$roles::$commenter]))
|
||||
leantime.commentsController.enableCommenterForms();
|
||||
@endif;
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user