mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
Merge pull request #2036 from prototech/ticket/12201
[ticket/12201] Clean up ACP attachment management page * prototech/ticket/12201: [ticket/12201] Decreased pagination font size. [ticket/12201] Update select element to follow same design as prosilver. [ticket/12201] Increase sort font size just slightly. [ticket/12201] Add link to resync file stats after error. [ticket/12201] Fix typos in language pack. [ticket/12201] Display error and sorting options when there are no attachments [ticket/12201] Only the top pagination should be floated to the right. [ticket/12201] Rearrange pagination, sorting, and submit elements. [ticket/12201] Center the file size and mark columns. [ticket/12201] Separate pagination from table.
This commit is contained in:
commit
5b6a675399
@ -378,7 +378,7 @@
|
||||
<fieldset class="tabulated">
|
||||
<legend>{L_TITLE}</legend>
|
||||
|
||||
<div class="pagination">
|
||||
<div class="pagination top-pagination">
|
||||
<!-- IF .pagination or TOTAL_FILES -->
|
||||
{L_NUMBER_FILES}{L_COLON} {TOTAL_FILES} • {L_TOTAL_SIZE}{L_COLON} {TOTAL_SIZE}
|
||||
<!-- IF .pagination -->
|
||||
@ -389,13 +389,14 @@
|
||||
<!-- ENDIF -->
|
||||
</div>
|
||||
|
||||
<!-- IF .attachments -->
|
||||
<table class="table1 zebra-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{L_FILENAME}</th>
|
||||
<th>{L_POSTED}</th>
|
||||
<th>{L_FILESIZE}</th>
|
||||
<th>{L_DELETE}</th>
|
||||
<th class="centered-text">{L_FILESIZE}</th>
|
||||
<th class="centered-text">{L_MARK}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -406,25 +407,19 @@
|
||||
<!-- ELSE --><a href="{attachments.U_FILE}" style="font-weight: bold;">{attachments.REAL_FILENAME}</a><br /><!-- IF attachments.COMMENT -->{attachments.COMMENT}<br /><!-- ENDIF -->{attachments.L_DOWNLOAD_COUNT}<br />{L_TOPIC}{L_COLON} <a href="{attachments.U_VIEW_TOPIC}">{attachments.TOPIC_TITLE}</a><!-- ENDIF -->
|
||||
</td>
|
||||
<td>{attachments.FILETIME}<br />{L_POST_BY_AUTHOR} {attachments.ATTACHMENT_POSTER}</td>
|
||||
<td>{attachments.FILESIZE}</td>
|
||||
<td><input type="checkbox" class="radio" name="delete[{attachments.ATTACH_ID}]" /></td>
|
||||
<td class="centered-text">{attachments.FILESIZE}</td>
|
||||
<td class="centered-text"><input type="checkbox" class="radio" name="delete[{attachments.ATTACH_ID}]" /></td>
|
||||
</tr>
|
||||
<!-- END attachments -->
|
||||
<tr class="row4">
|
||||
<td colspan="3"> </td>
|
||||
<td class="small"><a href="#" onclick="marklist('attachments', 'delete', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('attachments', 'delete', false); return false;">{L_UNMARK_ALL}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- ELSE -->
|
||||
<div class="errorbox">
|
||||
<p>{L_NO_ATTACHMENTS}</p>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF TOTAL_FILES -->
|
||||
<fieldset class="display-options">
|
||||
{L_DISPLAY_LOG}{L_COLON} {S_LIMIT_DAYS} {L_SORT_BY}{L_COLON} {S_SORT_KEY} {S_SORT_DIR}
|
||||
<input class="button2" type="submit" value="{L_GO}" name="sort" />
|
||||
</fieldset>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="pagination">
|
||||
{L_NUMBER_FILES}{L_COLON} {TOTAL_FILES} • {L_TOTAL_SIZE}{L_COLON} {TOTAL_SIZE}
|
||||
<!-- IF .pagination -->
|
||||
@ -435,10 +430,22 @@
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<p class="submit-buttons">
|
||||
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
|
||||
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
|
||||
</p>
|
||||
<fieldset class="display-options">
|
||||
{L_DISPLAY_LOG}{L_COLON} {S_LIMIT_DAYS} {L_SORT_BY}{L_COLON} {S_SORT_KEY} {S_SORT_DIR}
|
||||
<input class="button2" type="submit" value="{L_GO}" name="sort" />
|
||||
</fieldset>
|
||||
|
||||
<hr />
|
||||
|
||||
<!-- IF .attachments -->
|
||||
<fieldset class="quick">
|
||||
<input class="button2" type="submit" name="submit" value="{L_DELETE_MARKED}" /><br />
|
||||
<p class="small">
|
||||
<a href="#" onclick="marklist('attachments', 'delete', true); return false;">{L_MARK_ALL}</a> •
|
||||
<a href="#" onclick="marklist('attachments', 'delete', false); return false;">{L_UNMARK_ALL}</a>
|
||||
</p>
|
||||
</fieldset>
|
||||
<!-- ENDIF -->
|
||||
{S_FORM_TOKEN}
|
||||
</fieldset>
|
||||
</form>
|
||||
|
@ -13,7 +13,7 @@
|
||||
</fieldset>
|
||||
|
||||
<!-- IF .pagination -->
|
||||
<div class="pagination" style="float: right; margin: 15px 0 2px 0">
|
||||
<div class="pagination top-pagination">
|
||||
<!-- INCLUDE pagination.html -->
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
@ -102,6 +102,10 @@ hr {
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.centered-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
@ -1126,11 +1130,14 @@ input.langvalue, textarea.langvalue {
|
||||
}
|
||||
|
||||
optgroup, select {
|
||||
background-color: #FAFAFA;
|
||||
border: 1px solid #666666;
|
||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||
font-size: 0.85em;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
cursor: pointer;
|
||||
padding: 1px;
|
||||
vertical-align: middle;
|
||||
width: auto;
|
||||
color: #000;
|
||||
@ -1238,7 +1245,7 @@ fieldset.display-options {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
font-size: 0.75em;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
fieldset.display-options select, fieldset.display-options input, fieldset.display-options label {
|
||||
@ -1663,11 +1670,16 @@ input.button1:focus, input.button2:focus {
|
||||
/* Pagination
|
||||
---------------------------------------- */
|
||||
.pagination {
|
||||
font-size: .85em;
|
||||
height: 1%; /* IE tweak (holly hack) */
|
||||
width: auto;
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.top-pagination {
|
||||
float: right;
|
||||
margin: 15px 0 2px 0;
|
||||
}
|
||||
|
||||
.rtl .pagination {
|
||||
|
@ -1115,11 +1115,6 @@ class acp_attachments
|
||||
if ($stats_error)
|
||||
{
|
||||
$error[] = $stats_error;
|
||||
|
||||
// Show option to resync stats
|
||||
$this->template->assign_vars(array(
|
||||
'S_ACTION_OPTIONS' => $auth->acl_get('a_board'),
|
||||
));
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
@ -1321,7 +1316,15 @@ class acp_attachments
|
||||
|
||||
if (($num_files != $stats['num_files']) || ($total_size != $stats['upload_dir_size']))
|
||||
{
|
||||
return $this->user->lang('FILES_STATS_WRONG', (int) $stats['num_files'], get_formatted_filesize($stats['upload_dir_size']));
|
||||
$u_resync = $this->u_action . '&action=stats';
|
||||
|
||||
return $this->user->lang(
|
||||
'FILES_STATS_WRONG',
|
||||
(int) $stats['num_files'],
|
||||
get_formatted_filesize($stats['upload_dir_size']),
|
||||
'<a href="' . $u_resync . '">',
|
||||
'</a>'
|
||||
);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -107,6 +107,9 @@ $lang = array_merge($lang, array(
|
||||
'EXT_GROUP_REAL_MEDIA' => 'Real Media',
|
||||
'EXT_GROUP_WINDOWS_MEDIA' => 'Windows Media',
|
||||
|
||||
'FILES_GONE' => 'Some of the attachments you selected for deletion do not exist. They may have been already deleted. Attachments that did exist were deleted.',
|
||||
'FILES_STATS_WRONG' => 'Your file statistics are likely inaccurate and need to be resynchronised. Actual values: number of attachments = %1$d, total size of attachments = %2$s.<br />Click %3$shere%4$s to resynchronise them.',
|
||||
|
||||
'GO_TO_EXTENSIONS' => 'Go to extension management screen',
|
||||
'GROUP_NAME' => 'Group name',
|
||||
|
||||
@ -130,6 +133,7 @@ $lang = array_merge($lang, array(
|
||||
'NOT_ALLOWED_IN_PM' => 'Only allowed in posts',
|
||||
'NOT_ALLOWED_IN_PM_POST' => 'Not allowed',
|
||||
'NOT_ASSIGNED' => 'Not assigned',
|
||||
'NO_ATTACHMENTS' => 'No attachments found for this period.',
|
||||
'NO_EXT_GROUP' => 'None',
|
||||
'NO_EXT_GROUP_NAME' => 'No group name entered',
|
||||
'NO_EXT_GROUP_SPECIFIED' => 'No extension group specified.',
|
||||
@ -143,8 +147,9 @@ $lang = array_merge($lang, array(
|
||||
'ORDER_ALLOW_DENY' => 'Allow',
|
||||
'ORDER_DENY_ALLOW' => 'Deny',
|
||||
|
||||
'REMOVE_ALLOWED_IPS' => 'Remove or un-exclude <em>allowed</em> IPs/hostnames',
|
||||
'REMOVE_DISALLOWED_IPS' => 'Remove or un-exclude <em>disallowed</em> IPs/hostnames',
|
||||
'REMOVE_ALLOWED_IPS' => 'Remove or un-exclude <em>allowed</em> IPs/hostnames',
|
||||
'REMOVE_DISALLOWED_IPS' => 'Remove or un-exclude <em>disallowed</em> IPs/hostnames',
|
||||
'RESYNC_FILES_STATS_CONFIRM' => 'Are you sure you wish to resynchronise file statistics?',
|
||||
|
||||
'SEARCH_IMAGICK' => 'Search for Imagemagick',
|
||||
'SECURE_ALLOW_DENY' => 'Allow/Deny list',
|
||||
|
@ -241,9 +241,6 @@ $lang = array_merge($lang, array(
|
||||
'EXPORT_DOWNLOAD' => 'Download',
|
||||
'EXPORT_STORE' => 'Store',
|
||||
|
||||
'FILES_GONE' => 'Some of the attachments you selected for deletion do not exist. They may have been already deleted. Attachments that did exist were deleted.',
|
||||
'FILES_STATS_WRONG' => 'Your files statistics are probably inaccurate and need to be resynchronised. Actual values: number of attachments = %1$d, total size of attachments = %2$s.',
|
||||
|
||||
'GENERAL_OPTIONS' => 'General options',
|
||||
'GENERAL_SETTINGS' => 'General settings',
|
||||
'GLOBAL_MASK' => 'Global permission mask',
|
||||
@ -286,8 +283,6 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'REMIND' => 'Remind',
|
||||
'RESYNC' => 'Resynchronise',
|
||||
'RESYNC_FILES_STATS' => 'Resynchronise files statistics',
|
||||
'RESYNC_FILES_STATS_EXPLAIN' => 'Recalculates the total number and size of files attached to posts and private messages.',
|
||||
|
||||
'SELECT_ANONYMOUS' => 'Select anonymous user',
|
||||
'SELECT_OPTION' => 'Select option',
|
||||
@ -388,7 +383,6 @@ $lang = array_merge($lang, array(
|
||||
'RESET_ONLINE' => 'Reset most users ever online',
|
||||
'RESET_ONLINE_CONFIRM' => 'Are you sure you wish to reset the most users ever online counter?',
|
||||
'RESET_ONLINE_SUCCESS' => 'Most users ever online reset',
|
||||
'RESYNC_FILES_STATS_CONFIRM' => 'Are you sure you wish to resynchronise files statistics?',
|
||||
'RESYNC_POSTCOUNTS' => 'Resynchronise post counts',
|
||||
'RESYNC_POSTCOUNTS_EXPLAIN' => 'Only existing posts will be taken into consideration. Pruned posts will not be counted.',
|
||||
'RESYNC_POSTCOUNTS_CONFIRM' => 'Are you sure you wish to resynchronise post counts?',
|
||||
@ -696,7 +690,7 @@ $lang = array_merge($lang, array(
|
||||
'LOG_REFERER_INVALID' => '<strong>Referer validation failed</strong><br />»Referer was “<em>%1$s</em>”. The request was rejected and the session killed.',
|
||||
'LOG_RESET_DATE' => '<strong>Board start date reset</strong>',
|
||||
'LOG_RESET_ONLINE' => '<strong>Most users online reset</strong>',
|
||||
'LOG_RESYNC_FILES_STATS' => '<strong>Files statistics resynchronised</strong>',
|
||||
'LOG_RESYNC_FILES_STATS' => '<strong>File statistics resynchronised</strong>',
|
||||
'LOG_RESYNC_POSTCOUNTS' => '<strong>User post counts resynchronised</strong>',
|
||||
'LOG_RESYNC_POST_MARKING' => '<strong>Dotted topics resynchronised</strong>',
|
||||
'LOG_RESYNC_STATS' => '<strong>Post, topic and user statistics resynchronised</strong>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user