Minor improvements (#1715)

* Minor improvements

* Updated

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-12-14 15:38:33 +07:00 committed by GitHub
commit ce138921d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 25 additions and 25 deletions

View file

@ -9,8 +9,8 @@
- Show torrent's announcers list in `filelist.php` page [\#1708](https://github.com/torrentpier/torrentpier/pull/1708) ([belomaxorka](https://github.com/belomaxorka))
- [Configurable] Show magnet-links for guests [\#1712](https://github.com/torrentpier/torrentpier/pull/1712) ([belomaxorka](https://github.com/belomaxorka))
- Set `cursor: pointer;` for buttons, inputs (buttons) [\#1710](https://github.com/torrentpier/torrentpier/pull/1710), [\#1711](https://github.com/torrentpier/torrentpier/pull/1711) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713) ([belomaxorka](https://github.com/belomaxorka))
- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706) ([Exileum](https://github.com/Exileum))
- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715) ([belomaxorka](https://github.com/belomaxorka))
- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706), [\#1714](https://github.com/torrentpier/torrentpier/pull/1714) ([Exileum](https://github.com/Exileum))
## [v2.4.5-rc.1](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.1) (2024-12-08)
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.4...v2.4.5-rc.1)

View file

@ -84,11 +84,11 @@ if (isset($ffpInfo->streams)) {
'filesize' => sprintf($lang['FILESIZE'] . ': <b>%s</b>', humn_size($ffpInfo->format->size)),
'resolution' => (!$isAudio && isset($videoCodecInfo)) ? sprintf($lang['RESOLUTION'], $videoCodecInfo->width . 'x' . $videoCodecInfo->height) : '',
'video_codec' => (!$isAudio && isset($videoCodecInfo->codec_name)) ? sprintf($lang['VIDEO_CODEC'], $videoCodecInfo->codec_long_name, mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '',
'audio_dub' => implode('<hr>', $audioDub)
'audio_dub' => implode('<hr/>', $audioDub)
];
// Validate output data
$result = '<hr>';
$result = '<hr/>';
if (!empty($data['resolution'])) {
$result .= $data['resolution'] . '<br/>';
}
@ -99,7 +99,7 @@ if (isset($ffpInfo->streams)) {
$result .= $data['video_codec'];
}
if (!empty($data['audio_dub'])) {
$result .= '<hr>' . $data['audio_dub'];
$result .= '<hr/>' . $data['audio_dub'];
}
$this->response['ffprobe_data'] = $result;

View file

@ -179,7 +179,7 @@ switch ($this->request['type']) {
<input title="Alt+Enter" name="preview" type="submit" value="' . $lang['PREVIEW'] . '">
<input type="button" onclick="edit_post(' . $post_id . ');" value="' . $lang['CANCEL'] . '">
<input type="button" onclick="edit_post(' . $post_id . ', \'editor\', $(\'#message-' . $post_id . '\').val()); return false;" class="bold" value="' . $lang['SUBMIT'] . '">
</div><hr>
</div><hr/>
<script type="text/javascript">
var bbcode = new BBCode("message-' . $post_id . '");
var ctrl = "ctrl";

View file

@ -419,7 +419,7 @@ if (($delete || $mode == 'delete') && !$confirm) {
<div class="warnColor1">
<b>' . $lang['LOCKED_WARN'] . '</b>
</div>
<br /><hr /><br />
<br /><hr/><br />
';
$return_message = $locked_warn . $return_message;
}

View file

@ -164,7 +164,7 @@ class Dev
$this->whoops->pushHandler(function ($e) use ($bb_cfg) {
echo $bb_cfg['whoops']['error_message'];
echo "<hr>Error: {$e->getMessage()}.";
echo "<hr/>Error: {$e->getMessage()}.";
});
}

View file

@ -789,7 +789,7 @@ class Torrent
if (isset($reg_mode) && ($reg_mode == 'request' || $reg_mode == 'newtopic')) {
if (isset($return_message)) {
$msg .= $return_message . '<br /><br /><hr /><br />';
$msg .= $return_message . '<br /><br /><hr/><br />';
}
$msg .= '<b>' . $lang['BT_REG_FAIL'] . '</b><br /><br />';
}

View file

@ -315,7 +315,7 @@ Ajax.prototype = {
$('body').prepend(response.raw_output);
}
if (response.sql_log) {
$('#sqlLog').prepend(response.sql_log + '<hr />');
$('#sqlLog').prepend(response.sql_log + '<hr/>');
fixSqlLog();
}
if (response.update_ids) {

View file

@ -96,12 +96,12 @@
<div class="alert alert-danger" style="width: 95%;">
<h4 class="alert-heading">{L_INTEGRITY_CHECK_FAIL}</h4>
<h6>{integrity_check.INTEGRITY_CHECKED_FILES} {integrity_check.INTEGRITY_LAST_CHECK_TIME}</h6>
<hr>
<hr/>
<!-- IF integrity_check.INTEGRITY_WRONG_FILES_LIST -->
<ul style="max-height: 120px; overflow-x: auto;">
<li>{integrity_check.INTEGRITY_WRONG_FILES_LIST}</li>
</ul>
<hr>
<hr/>
<a href="#" id="restore_corrupt_files" onclick="ajax.manage_admin('restore_corrupt_files'); return false;">{L_INTEGRITY_RESTORE_ON_NEXT_RUN}</a>
<!-- ENDIF -->
</div>
@ -111,7 +111,7 @@
<!-- IF ADMIN_LOCK_CRON -->
<div class="alert alert-danger" style="width: 95%;">
<h4 class="alert-heading">{L_ADMIN_DISABLE_CRON_TITLE}</h4>
<hr>
<hr/>
<a href="#" id="unlock_cron" onclick="ajax.manage_admin('unlock_cron'); return false;">{L_ADMIN_UNLOCK_CRON}</a>
({L_ADMIN_DISABLE_CRON})
</div>
@ -120,7 +120,7 @@
<!-- IF ADMIN_LOCK -->
<div class="alert alert-danger" style="width: 95%;">
<h4 class="alert-heading">{L_ADMIN_DISABLE_TITLE}</h4>
<hr>
<hr/>
<a href="admin_board.php?mode=config">{L_ADMIN_UNLOCK}</a>
({L_ADMIN_DISABLE})
</div>

View file

@ -15,9 +15,9 @@
$('#ffprobe_' + data.file_index).html(data.ffprobe_data);
} else {
if ($('#ffprobe_' + data.file_index).find('span.warnColor2').length >= 3) {
$('#ffprobe_' + data.file_index).html('<hr><span class="warnColor2">{L_M3U_FFPROBE_NO_DATA}</span>');
$('#ffprobe_' + data.file_index).html('<hr/><span class="warnColor2">{L_M3U_FFPROBE_NO_DATA}</span>');
} else {
$('#ffprobe_' + data.file_index).append('<hr><span class="warnColor2">{L_PLEASE_TRY_AGAIN}</span>');
$('#ffprobe_' + data.file_index).append('<hr/><span class="warnColor2">{L_PLEASE_TRY_AGAIN}</span>');
}
}
}
@ -38,14 +38,14 @@
<td>{m3ulist.ROW_NUMBER}</td>
<td width="40%"><b>{m3ulist.TITLE}</b>
<div id="ffprobe_{m3ulist.FILE_INDEX}">
<hr>
<hr/>
<input onclick="ajax.ffprobe_info({m3ulist.FILE_INDEX}, '{m3ulist.IS_AUDIO}');" type="button" value="{L_SHOW_MORE_INFORMATION_FILE}">
</div>
</td>
<td>
<a href="#" onclick="return false;" class="copyElement" data-clipboard-text="{m3ulist.STREAM_LINK}">{L_COPY_STREAM_LINK}</a>&nbsp;&middot;
<a target="_blank" href="{m3ulist.M3U_DL_LINK}">{L_DOWNLOAD_M3U_FILE}</a>
<hr>
<hr/>
<!-- IF m3ulist.IS_VALID --><!-- IF m3ulist.IS_AUDIO -->
<audio preload="none" src="{m3ulist.STREAM_LINK}" controls></audio>
<!-- ELSE -->

View file

@ -159,7 +159,7 @@
<label>{L_SET_OWN_COUNTRY}
<input {CHECKED_MANUAL_COUNTRY} name="user_from_set_manual" type="checkbox">
</label>
<hr>
<hr/>
<div id="country_select_hide">{COUNTRY_SELECT}&nbsp;<span id="check_country">{COUNTRY_SELECTED}</span></div>
<div style="display: none;" id="country_manual_select"><input type="text" name="user_from" size="50" maxlength="150" value="{USER_FROM}"/></div>
</td>

View file

@ -34,7 +34,7 @@
ajax.callback.view_post = function (data) {
loadedText[data.post_id] = true;
$('#post_' + data.post_id + ' div.post_body').prepend(
'<div class="tCenter" id="ptx-' + data.post_id + '"><textarea style="width: 99%; height: 200px; line-height: 1.2;" readonly>' + data['post_text'] + '</textarea><hr></div>'
'<div class="tCenter" id="ptx-' + data.post_id + '"><textarea style="width: 99%; height: 200px; line-height: 1.2;" readonly>' + data['post_text'] + '</textarea><hr/></div>'
);
};
</script>
@ -448,16 +448,16 @@ function build_poll_add_form (src_el)
<div id="pg_{postrow.POST_ID}" class="alert alert-gray" style="width: 92%;">
<h4 class="alert-heading">{L_RELEASE_FROM_RG} — <a href="{postrow.RG_URL}">{postrow.RG_NAME}</a></h4>
<div id="pg_info_{postrow.POST_ID}">
<!-- IF postrow.RG_AVATAR --><hr /><a href="{postrow.RG_URL}">{postrow.RG_AVATAR}</a><!-- ENDIF -->
<!-- IF postrow.RG_AVATAR --><hr/><a href="{postrow.RG_URL}">{postrow.RG_AVATAR}</a><!-- ENDIF -->
<!-- IF postrow.RG_DESC --><div class="post-wrap">{L_DESCRIPTION}: {postrow.RG_DESC}</div><!-- ENDIF -->
<!-- IF postrow.RG_SIG and postrow.RG_SIG_ATTACH --><hr /><div id="rg_sig">{L_SIGNATURE}: {postrow.RG_SIG}</div><!-- ENDIF -->
<hr /><a href="{postrow.RG_FIND_URL}">{L_MORE_RELEASES}</a>
<!-- IF postrow.RG_SIG and postrow.RG_SIG_ATTACH --><hr/><div id="rg_sig">{L_SIGNATURE}: {postrow.RG_SIG}</div><!-- ENDIF -->
<hr/><a href="{postrow.RG_FIND_URL}">{L_MORE_RELEASES}</a>
</div>
</div>
<!-- ENDIF -->
<div id="pc_{postrow.POST_ID}" <!-- IF not postrow.MC_COMMENT -->style="display: none;"<!-- ENDIF -->>
<div id="mc_class_{postrow.POST_ID}" class="alert alert-{postrow.MC_CLASS}" style="width: 92%;">
<h4 class="alert-heading">{postrow.MC_TITLE}</h4><hr />
<h4 class="alert-heading">{postrow.MC_TITLE}</h4><hr/>
<div id="mc_comment_{postrow.POST_ID}">{postrow.MC_COMMENT}</div>
</div>
</div>

View file

@ -175,7 +175,7 @@
<p style="padding-top: 6px;"><input id="tor-filelist-btn" type="button" class="lite" value="{L_BT_FLIST}" /></p>
<!-- BEGIN tor_server -->
<!-- IF postrow.attach.tor_reged.tor_server.TORR_SERVER_M3U_LINK -->
<hr>
<hr/>
<a href="{postrow.attach.tor_reged.tor_server.TORR_SERVER_M3U_LINK}" target="_blank"><p><img alt="{L_PLAYBACK_M3U}" src="{postrow.attach.tor_reged.tor_server.TORR_SERVER_M3U_ICON}" width="21" height="21" border="0"></p>{L_PLAYBACK_M3U}</a>
<!-- ENDIF -->
<!-- END tor_server -->