mirror of
https://github.com/S2-/gitlit
synced 2025-08-02 20:30:05 +02:00
no notification if everything is allright
This commit is contained in:
@@ -27,10 +27,14 @@
|
||||
if (notification.event && notification.event === 'unlock') {
|
||||
$('[data-file="' + notification.file + '"].js-unlock').hide();
|
||||
$('[data-file="' + notification.file + '"].js-lock').show();
|
||||
let text = 'not locked';
|
||||
$('[data-file="' + notification.file + '"]').parent().prev().text(text);
|
||||
}
|
||||
if (notification.event && notification.event === 'lock') {
|
||||
$('[data-file="' + notification.file + '"].js-lock').hide();
|
||||
$('[data-file="' + notification.file + '"].js-unlock').show();
|
||||
let text = notification.data.owner.name + ' (id: ' + notification.data.id + ')';
|
||||
$('[data-file="' + notification.file + '"]').parent().prev().text(text);
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -33,7 +33,7 @@ gitlit.templates = {
|
||||
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<div class="float-right">
|
||||
<a class="btn btn-secondary js-refresh" href="javascript:///">
|
||||
Refresh
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user