diff options
| -rw-r--r-- | inc/mod/pages.php | 5 | ||||
| -rw-r--r-- | templates/mod/move_reply.html | 41 |
2 files changed, 45 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 35713c27..6a9f07c7 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1059,10 +1059,13 @@ function mod_move_reply($originBoard, $postID) { } } + // build index buildIndex(); + // build new thread + buildThread($newID); // trigger themes - rebuildThemes($post['op'] ? 'post-thread' : 'post'); + rebuildThemes('post'); // mod log modLog("Moved post #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard); diff --git a/templates/mod/move_reply.html b/templates/mod/move_reply.html new file mode 100644 index 00000000..bf7c2f75 --- /dev/null +++ b/templates/mod/move_reply.html @@ -0,0 +1,41 @@ +<form action="?/{{ board }}/move_reply/{{ post }}" method="post"> + <input type="hidden" name="token" value="{{ token }}"> + <table> + <tr> + <th> + {% trans 'Post ID' %} + </th> + <td> + >>>{{ config.board_abbreviation|sprintf(board) }}{{ post }} + </td> + </tr> + <tr> + <th>{% trans 'Target board' %}</th> + <td> + <ul style="list-style:none;padding:0"> + {% for targetboard in boards %} + <li> + <input type="radio" name="board" value="{{ targetboard.uri }}" id="ban-board-{{ targetboard.uri }}" {% if boards|count == 2 %}checked{% endif %}> + <label style="display:inline" for="ban-board-{{ targetboard.uri }}"> + {{ config.board_abbreviation|sprintf(targetboard.uri) }} - {{ targetboard.title|e }} + </label> + </li> + {% endfor %} + </ul> + </td> + <td> + </tr> + <tr> + <th>{% trans 'Target thread' %}</th> + <td> + <p>If you do not want to make the post into a new thread, please specify the thread you want to move the reply to:</p> + <input type="text" name="target_thread"/> + </td> + </tr> + </table> + + <ul style="padding:0;text-align:center;list-style:none"> + <li><input type="submit" value="{% trans 'Move reply' %}"></li> + </ul> +</form> + |
