/
users_reports_view.tpl
154 lines (127 loc) · 6.73 KB
/
users_reports_view.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{include file='header.tpl'}
<body id="page-top">
<!-- Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
{include file='sidebar.tpl'}
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main content -->
<div id="content">
<!-- Topbar -->
{include file='navbar.tpl'}
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">{$REPORTS}</h1>
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{$PANEL_INDEX}">{$DASHBOARD}</a></li>
<li class="breadcrumb-item active">{$USER_MANAGEMENT}</li>
<li class="breadcrumb-item active">{$REPORTS}</li>
</ol>
</div>
<!-- Update Notification -->
{include file='includes/update.tpl'}
<!-- Success and Error Alerts -->
{include file='includes/alerts.tpl'}
<div class="card shadow mb-4">
<div class="card-body">
<div class="row">
<div class="col-md-9">
<h5 style="margin-top: 7px; margin-bottom: 7px;">{$VIEWING_REPORT} » <a
target="_blank" href="{$REPORTED_USER_PROFILE}"
style="{$REPORTED_USER_STYLE}">{$REPORTED_USER}</a> {if ($TYPE == 0)}|
<small><a href="{$CONTENT_LINK}" target="_blank">{$VIEW_CONTENT}</a>
</small>{/if}
</h5>
</div>
<div class="col-md-3">
<span class="float-md-right"><a href="{$REPORTS_LINK}"
class="btn btn-primary">{$BACK}</a></span>
</div>
</div>
<hr />
<div class="card shadow">
<div class="card-header">
<a href="{$REPORTER_USER_PROFILE}" style="{$REPORTER_USER_STYLE}"
target="_blank"><img src="{$REPORTER_USER_AVATAR}" class="rounded"
style="max-width:25px;max-height:25px;" alt="{$REPORTER_USER}" />
{$REPORTER_USER}</a>:
<span class="pull-right" data-toggle="tooltip"
data-original-title="{$REPORT_DATE}">{$REPORT_DATE_FRIENDLY}</span>
</div>
<div class="card-body">
{$REPORT_CONTENT}
</div>
</div>
</div>
</div>
<div class="card shadow mb-4">
<div class="card-body">
<h5>{$COMMENTS_TEXT}</h5>
<hr />
{if count($COMMENTS)}
{foreach from=$COMMENTS item=comment}
<div class="card shadow">
<div class="card-header">
<a href="{$comment.profile}" style="{$comment.style}" target="_blank"><img
src="{$comment.avatar}" class="rounded"
style="max-height:25px;max-width:25px;" alt="{$comment.username}" />
{$comment.username}</a>:
<span class="pull-right" data-toggle="tooltip"
data-original-title="{$comment.date}">{$comment.date_friendly}</span>
</div>
<div class="card-body">
{$comment.content}
</div>
</div>
<br />
{/foreach}
<hr />
{else}
{$NO_COMMENTS}
<br />
<br />
{/if}
<form action="" method="post">
<div class="form-group">
<textarea class="form-control" name="content" rows="5"
placeholder="{$NEW_COMMENT}"></textarea>
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" value="{$SUBMIT}" class="btn btn-primary">
<div class="float-md-right">
{if isset($CLOSE_REPORT)}
<button type="button" onclick="closeReport()" class="btn btn-danger">{$CLOSE_REPORT}</button>
{else}
<button type="button" onclick="reopenReport()" class="btn btn-danger">{$REOPEN_REPORT}</button>
{/if}
</div>
</div>
</form>
</div>
</div>
<!-- Spacing -->
<div style="height:1rem;"></div>
<!-- End Page Content -->
</div>
<!-- End Main Content -->
</div>
{include file='footer.tpl'}
<!-- End Content Wrapper -->
</div>
<!-- End Wrapper -->
</div>
{include file='scripts.tpl'}
<script type="text/javascript">
function closeReport() {
$.post("{$CLOSE_LINK}", { token: "{$TOKEN}" }).done(function () { window.location.reload(); });
}
function reopenReport() {
$.post("{$REOPEN_LINK}", { token: "{$TOKEN}" }).done(function () { window.location.reload(); });
}
</script>
</body>
</html>