-
-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…3225) * Working on #2972 Template Conversion to Twig Format (modcp_modqueue) * Added missing bracket
- Loading branch information
1 parent
217b05c
commit 5c76360
Showing
8 changed files
with
312 additions
and
70 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% set row = alt_trow() %} | ||
<tr> | ||
<td class="{{ row }}"> | ||
<a href="attachment.php?aid={{ attachment.aid }}" target="_blank">{{ attachment.filename }}</a> ({{ attachment.filesize }})<br /> | ||
<small class="modqueue_meta">{{ lang.post }}: <a href="{{ attachment.link }}">{{ attachment.postsubject }}</a></small> | ||
</td> | ||
<td class="{{ row }}" align="center">{{ attachment.profile_link|raw }}</td> | ||
<td align="center" class="{{ row }}">{{ attachment.attachdate|raw }}</td> | ||
<td class="{{ row }}" align="center"><label class="label_radio_ignore"><input type="radio" class="radio radio_ignore" name="attachments[{{ attachment.aid }}]" value="ignore" checked="checked" /> {{ lang.ignore }}</label></td> | ||
<td class="{{ row }}" align="center"><label class="label_radio_delete"><input type="radio" class="radio radio_delete" name="attachments[{{ attachment.aid }}]" value="delete" /> {{ lang.delete }}</label></td> | ||
<td class="{{ row }}" align="center"><label class="label_radio_approve"><input type="radio" class="radio radio_approve" name="attachments[{{ attachment.aid }}]" value="approve" /> {{ lang.approve }}</label></td> | ||
</tr> |
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,22 @@ | ||
{% set row = alt_trow() %} | ||
<tr> | ||
<td class="{{ row }}"><a href="{{ post.postlink|raw }}#pid{{ post.pid }}">{{ post.subject }}</a></td> | ||
<td class="{{ row }}" align="center">{{ post.profile_link|raw }}</td> | ||
<td align="center" class="{{ row }}">{{ post.postdate|raw }}</td> | ||
</tr> | ||
<tr> | ||
<td class="{{ row }}" colspan="3"> | ||
<div class="modqueue_message"> | ||
<div class="float_right modqueue_controls"> | ||
<label class="label_radio_ignore"><input type="radio" class="radio radio_ignore" name="posts[{{ post.pid }}]" value="ignore" checked="checked" /> {{ lang.ignore }}</label> | ||
<label class="label_radio_delete"><input type="radio" class="radio radio_delete" name="posts[{{ post.pid }}]" value="delete" /> {{ lang.delete }}</label> | ||
<label class="label_radio_approve"><input type="radio" class="radio radio_approve" name="posts[{{ post.pid }}]" value="approve" /> {{ lang.approve }}</label> | ||
</div> | ||
<div class="modqueue_meta"> | ||
<strong>{{ lang.meta_forum }} <a href="{{ post.forum_link }}">{{ post.forum_name }}</a></strong><br /> | ||
<strong>{{ lang.meta_thread }} <a href="{{ post.threadlink }}">{{ post.threadsubject }}</a></strong> | ||
</div> | ||
{{ post.message|nl2br }} | ||
</div> | ||
</td> | ||
</tr> |
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,21 @@ | ||
{% set row = alt_trow() %} | ||
<tr> | ||
<td class="{{ row }}"><a href="{{ thread.threadlink }}">{{ thread.subject }}</a></td> | ||
<td class="{{ row }}" align="center">{{ thread.profile_link|raw }}</td> | ||
<td align="center" class="{{ row }}">{{ thread.threaddate|raw }}</td> | ||
</tr> | ||
<tr> | ||
<td class="{{ row }}" colspan="3"> | ||
<div class="modqueue_message"> | ||
<div class="float_right modqueue_controls"> | ||
<label class="label_radio_ignore"><input type="radio" class="radio radio_ignore" name="threads[{{ thread.tid }}]" value="ignore" checked="checked" /> {{ lang.ignore }}</label> | ||
<label class="label_radio_delete"><input type="radio" class="radio radio_delete" name="threads[{{ thread.tid }}]" value="delete" /> {{ lang.delete }}</label> | ||
<label class="label_radio_approve"><input type="radio" class="radio radio_approve" name="threads[{{ thread.tid }}]" value="approve" /> {{ lang.approve }}</label> | ||
</div> | ||
<div class="modqueue_meta"> | ||
<strong>{{ lang.meta_forum }} <a href="{{ thread.forum_link }}">{{ thread.forum_name }}</a></strong><br /> | ||
</div> | ||
{{ thread.postmessage|nl2br }} | ||
</div> | ||
</td> | ||
</tr> |
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,58 @@ | ||
{% extends 'layouts/master.twig' %} | ||
|
||
{% block head %} | ||
<title>{{ mybb.settings.bbname }} - {{ lang.attachments_awaiting_moderation }}</title> | ||
{% endblock head %} | ||
|
||
{% block body %} | ||
<form action="modcp.php" method="post"> | ||
<input type="hidden" name="my_post_key" value="{{ mybb.post_code }}" /> | ||
<input type="hidden" name="action" value="do_modqueue" /> | ||
<table width="100%" border="0" align="center"> | ||
<tr> | ||
{# To do: modcp_nav #} | ||
<td valign="top"> | ||
<table border="0" cellspacing="{{ theme.borderwidth }}" cellpadding="{{ theme.tablespace }}" class="tborder"> | ||
<tr> | ||
<td class="thead" colspan="6"> | ||
<div class="float_right"> | ||
{% if navlink.thread %} | ||
<a href="modcp.php?action=modqueue&type=threads">{{ lang.threads }}</a> | | ||
{% endif %} | ||
{% if navlink.post %} | ||
<a href="modcp.php?action=modqueue&type=posts">{{ lang.posts }}</a> | | ||
{% endif %} | ||
<strong>{{ lang.attachments }}</strong> | ||
</div> | ||
<strong>{{ lang.attachments_awaiting_moderation }}</strong> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="tcat"><span class="smalltext"><strong>{{ lang.filename }}</strong></span></td> | ||
<td class="tcat" align="center" width="20%"><span class="smalltext"><strong>{{ lang.author }}</strong></span></td> | ||
<td class="tcat" align="center" width="20%"><span class="smalltext"><strong>{{ lang.date }}</strong></span></td> | ||
<td class="tcat" align="center" colspan="3"><span class="smalltext"><strong>{{ lang.controls }}</strong></span></td> | ||
</tr> | ||
{% for attachment in attachments %} | ||
{% include 'modcp/modqueue/attachment.twig' %} | ||
{% else %} | ||
<tr> | ||
<td class="trow1" align="center" colspan="6">{{ lang.mod_queue_attachments_empty }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{{ multipage|raw }} | ||
{% if attachments %} | ||
<ul class="modqueue_mass"> | ||
<li><a href="javascript:void(0)" class="mass_ignore" onclick="$('input.radio_ignore').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_ignored }}</a></li> | ||
<li><a href="javascript:void(0)" class="mass_delete" onclick="$('input.radio_delete').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_deletion }}</a></li> | ||
<li><a href="javascript:void(0)" class="mass_approve" onclick="$('input.radio_approve').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_approved }}</a></li> | ||
</ul> | ||
{% endif %} | ||
<br /> | ||
<div align="center"><input type="submit" class="button" name="reportsubmit" value="{{ lang.perform_actions }}" /></div> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
{% endblock body %} |
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,23 @@ | ||
{% extends 'layouts/master.twig' %} | ||
|
||
{% block head %} | ||
<title>{{ mybb.settings.bbname }} - {{ lang.mod_queue }}</title> | ||
{% endblock head %} | ||
|
||
{% block body %} | ||
<table width="100%" border="0" align="center"> | ||
<tr> | ||
{# To do: modcp_nav #} | ||
<td valign="top"> | ||
<table border="0" cellspacing="{{ theme.borderwidth }}" cellpadding="{{ theme.tablespace }}" class="tborder"> | ||
<tr> | ||
<td class="thead"><strong>{{ lang.mod_queue }}</strong></td> | ||
</tr> | ||
<tr> | ||
<td class="trow1" align="center">{{ lang.mod_queue_empty }}</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
{% endblock body %} |
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,57 @@ | ||
{% extends 'layouts/master.twig' %} | ||
|
||
{% block head %} | ||
<title>{{ mybb.settings.bbname }} - {{ lang.posts_awaiting_moderation }}</title> | ||
{% endblock head %} | ||
|
||
{% block body %} | ||
<form action="modcp.php" method="post"> | ||
<input type="hidden" name="my_post_key" value="{{ mybb.post_code }}" /> | ||
<input type="hidden" name="action" value="do_modqueue" /> | ||
<table width="100%" border="0" align="center"> | ||
<tr> | ||
{# To do: modcp_nav #} | ||
<td valign="top"> | ||
<table border="0" cellspacing="{{ theme.borderwidth }}" cellpadding="{{ theme.tablespace }}" class="tborder"> | ||
<tr> | ||
<td class="thead" colspan="3"> | ||
<div class="float_right"> | ||
{% if navlink.thread %} | ||
<a href="modcp.php?action=modqueue&type=threads">{{ lang.threads }}</a> | | ||
{% endif %} | ||
<strong>{{ lang.posts }}</strong> | ||
{% if navlink.attachment %} | ||
| <a href="modcp.php?action=modqueue&type=attachments">{{ lang.attachments }}</a> | ||
{% endif %} | ||
</div> | ||
<strong>{{ lang.posts_awaiting_moderation }}</strong> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="tcat" width="50%"><span class="smalltext"><strong>{{ lang.subject }}</strong></span></td> | ||
<td class="tcat" align="center" width="25%"><span class="smalltext"><strong>{{ lang.author }}</strong></span></td> | ||
<td class="tcat" align="center" width="25%"><span class="smalltext"><strong>{{ lang.date }}</strong></span></td> | ||
</tr> | ||
{% for post in posts %} | ||
{% include 'modcp/modqueue/post.twig' %} | ||
{% else %} | ||
<tr> | ||
<td class="trow1" align="center" colspan="3">{{ lang.mod_queue_posts_empty }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{{ multipage|raw }} | ||
{% if posts %} | ||
<ul class="modqueue_mass"> | ||
<li><a href="javascript:void(0)" class="mass_ignore" onclick="$('input.radio_ignore').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_ignored }}</a></li> | ||
<li><a href="javascript:void(0)" class="mass_delete" onclick="$('input.radio_delete').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_deletion }}</a></li> | ||
<li><a href="javascript:void(0)" class="mass_approve" onclick="$('input.radio_approve').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_approved }}</a></li> | ||
</ul> | ||
{% endif %} | ||
<br /> | ||
<div align="center"><input type="submit" class="button" name="reportsubmit" value="{{ lang.perform_actions }}" /></div> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
{% endblock body %} |
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,57 @@ | ||
{% extends 'layouts/master.twig' %} | ||
|
||
{% block head %} | ||
<title>{{ mybb.settings.bbname }} - {{ lang.threads_awaiting_moderation }}</title> | ||
{% endblock head %} | ||
|
||
{% block body %} | ||
<form action="modcp.php" method="post"> | ||
<input type="hidden" name="my_post_key" value="{{ mybb.post_code }}" /> | ||
<input type="hidden" name="action" value="do_modqueue" /> | ||
<table width="100%" border="0" align="center"> | ||
<tr> | ||
{# To do: modcp_nav #} | ||
<td valign="top"> | ||
<table border="0" cellspacing="{{ theme.borderwidth }}" cellpadding="{{ theme.tablespace }}" class="tborder"> | ||
<tr> | ||
<td class="thead" colspan="3"> | ||
<div class="float_right"> | ||
<strong>{{ lang.threads }}</strong> | ||
{% if navlink.post %} | ||
| <a href="modcp.php?action=modqueue&type=posts">{{ lang.posts }}</a> | ||
{% endif %} | ||
{% if navlink.attachment %} | ||
| <a href="modcp.php?action=modqueue&type=attachments">{{ lang.attachments }}</a> | ||
{% endif %} | ||
</div> | ||
<strong>{{ lang.threads_awaiting_moderation }}</strong> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="tcat" width="50%"><span class="smalltext"><strong>{{ lang.subject }}</strong></span></td> | ||
<td class="tcat" align="center" width="25%"><span class="smalltext"><strong>{{ lang.author }}</strong></span></td> | ||
<td class="tcat" align="center" width="25%"><span class="smalltext"><strong>{{ lang.date }}</strong></span></td> | ||
</tr> | ||
{% for thread in threads %} | ||
{% include 'modcp/modqueue/thread.twig' %} | ||
{% else %} | ||
<tr> | ||
<td class="trow1" align="center" colspan="3">{{ lang.mod_queue_threads_empty }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{{ multipage|raw }} | ||
{% if threads %} | ||
<ul class="modqueue_mass"> | ||
<li><a href="javascript:void(0)" class="mass_ignore" onclick="$('input.radio_ignore').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_ignored }}</a></li> | ||
<li><a href="javascript:void(0)" class="mass_delete" onclick="$('input.radio_delete').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_deletion }}</a></li> | ||
<li><a href="javascript:void(0)" class="mass_approve" onclick="$('input.radio_approve').each(function(){ $(this).prop('checked', true); }); return false;">{{ lang.mark_all_approved }}</a></li> | ||
</ul> | ||
{% endif %} | ||
<br /> | ||
<div align="center"><input type="submit" class="button" name="reportsubmit" value="{{ lang.perform_actions }}" /></div> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
{% endblock body %} |
Oops, something went wrong.