forked from OPSnet/Gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reports to user page when viewed by staff
- Loading branch information
snufkin
authored and
Spine
committed
Aug 2, 2024
1 parent
705fdf1
commit 3e2f8f8
Showing
6 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div class="box" id="user-reports-box"> | ||
<div class="head"> | ||
User Reports | ||
{{- dom.click('#toggle-user-reports', "$('#user-reports').gtoggle(); return false;") -}} | ||
<a href="#" id="toggle-user-reports" class="brackets">Toggle</a> | ||
</div> | ||
<table width="100%" id="user-reports" class="user-reports"> | ||
{%- for report in list -%} | ||
<tr> | ||
<td width="15%" id="report-{{ report.id }}-created"> | ||
<a href='{{ report.location }}'>{{ report.created|time_diff(1) }}</a> | ||
</td> | ||
<td width="65%" id="report-{{ report.id }}-reason" class="user-report-reason user-report-truncate"> | ||
{%- if report.status == "Resolved" -%} | ||
<s> | ||
{%- endif -%} | ||
{{-report.reason-}} | ||
{%- if report.status == "Resolved" -%} | ||
</s> | ||
{%- endif -%} | ||
</td> | ||
<td width="10%" id="report-{{ report.id }}-status"> | ||
{%- if report.status == "New" -%} | ||
<b> | ||
{%- endif -%} | ||
{{- report.status -}} | ||
{%- if report.status == "New" -%} | ||
</b> | ||
{%- endif -%} | ||
</td> | ||
<td id="report-{{ report.id }}-staff"> | ||
{%- if report.resolver -%} | ||
{{- report.resolver.id|user_url -}} | ||
{%- elseif report.claimer -%} | ||
{{- report.claimer.id|user_url -}} | ||
{%- else -%} | ||
unclaimed | ||
{%- endif -%} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters